steamclock / netable

A Swift library for encapsulating network APIs using Codable in a type-oriented way.
MIT License
99 stars 3 forks source link

Improve Encoding of GraphQLMutation Inputs #98

Closed brendanlensink closed 2 years ago

brendanlensink commented 2 years ago

I may have merged #97 a little early, I missed some feedback @sakuraehikaru had provided highlighting concerns with the encoding for mutation inputs.

After looking at the code some more, I think we can actually simplify things further as the input is just JSON encoded to a string.

Also fixes the example mutation to match the proper naming, etc for other requests.