Fork me on GitHub
#graphql
<
2019-08-29
>
hiredman22:08:54

in lacinia the changelog entry for the scalar breaking change in 0.33.0 mentions the possibility of overriding the behavior for scalars if you want the old behavior back, but doesn't give an example of how to do this, does anyone have an example or any pointers of where to look?

hiredman22:08:24

ah, found the custom scalars sections in the docs

hiredman22:08:46

bah, trying to attach scalar transforms like the docs seem to show gives spec errors

hiredman22:08:40

it looks like the docs are maybe outdated, they show parse and serialize as functions, but it looks like the spec is expecting something that returns true for spec?

hiredman22:08:39

the error message doesn't include the namespace spec? is coming from

hiredman22:08:54

I tell a lie, it does clojure.spec.alpha/spec?

hiredman22:08:25

ah, I just haven't pulled my own master so am still depending on the old version of lacinia