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

Always normalize type/field names

Open tomhoule opened this issue 5 years ago • 4 comments
trafficstars

The normalization feature is a burden to maintain, we should always normalize field names to snake case and type names to camel case to respect rust conventions.

tomhoule avatar Mar 26 '20 21:03 tomhoule

Currently, using the rust normalization feature, fields of type ID get normalized to Id and can't resolve. That makes it annoying to use.

Ten0 avatar Jun 30 '20 14:06 Ten0

It's indeed something that shouldn't happen, can you open a separate issue? It will probably get forgotten if it stays as a comment here.

tomhoule avatar Jun 30 '20 15:06 tomhoule

It seems my issue should be linked to this issue. Any news?

acelot avatar Sep 10 '20 13:09 acelot

No news on this — I do not have time to work on graphql-client at the moment, but PRs are welcome and I'm always happy to provide feedback :)

tomhoule avatar Sep 10 '20 13:09 tomhoule