Closed bonham000 closed 5 years ago
Hi @bonham000 Thanks for your contribution, the code looks good to me.
Can you also add a new test case for this feature here? https://github.com/modelo/gql-generator/blob/master/test/index.js
Sure, @timqian no problem - I'll add a test for it!
Hi @timqian I added some tests to cover a deprecated query, mutation, and a deprecated field and tested the default behavior and also the behavior of opting in to include the deprecated fields with the --includeDeprecatedFields
flag.
Thanks, @bonham000 I will test it with more complicated schemas and release soon today
Great, thanks @timqian!
This PR:
@deprecated
fields from gql-generator output and an optional command line argument to include@deprecated
fields if the user wants to opt out of this behavior.Notes:
isDeprecated
flag. If not I'm happy to adjust the code!