juancastillo0/leto

Default scalar type coercion cannot be changed for "primitive" types

warrenisarobot opened this issue · 1 comments

Default scalar type coercion cannot be changed when it is one of the leto_generator "primitive" types.

We are using graph "stitching" via a graphql proxy. Our other graph servers expose "Datetime" and "Date" types. Leto uses "Date" as a DateTime (dart does not have a Date type). I want to expose our custom Date type as a Graphql "Date" type, and the dart DateTime as "Datetime".

Using customTypes with leto_builder does not override the primitive types.

I have included a PR that move the primitive types logic below customTypes so that it will use a primitive type only if no customType was defined

#12

This has been merged, closing the issue