graphql-client icon indicating copy to clipboard operation
graphql-client copied to clipboard

Skip default scalars

Open jvliwanag opened this issue 3 years ago • 1 comments

Currently, default scalars are hardcoded on the generated code -- Int, Float, String, Boolean, and ID. Requesting a feature to skip defining this scalars.

My particular use case is I wish to override ID, since the ID I'm receiving follows a certain format which would be better off represented as a custom struct with its own serde serializer, deserializer.

Perhaps introducing a skip_default_scalars option makes sense.

jvliwanag avatar Aug 19 '22 01:08 jvliwanag

Any progress on this?

bbigras avatar Mar 01 '23 16:03 bbigras