timqian / gql-generator

Generate queries from graphql schema, used for writing api test.
MIT License
374 stars 93 forks source link

Feature Exclude Deprecated Fields #18

Closed bonham000 closed 5 years ago

bonham000 commented 5 years ago

This PR:

Notes:

timqian commented 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

bonham000 commented 5 years ago

Sure, @timqian no problem - I'll add a test for it!

bonham000 commented 5 years ago

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.

timqian commented 5 years ago

Thanks, @bonham000 I will test it with more complicated schemas and release soon today

bonham000 commented 5 years ago

Great, thanks @timqian!