Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGet more information about @deprecated fields from SchemaDiff #1610
Conversation
|
@andimarek @bbakerman Sorry for the bump, my organization has been looking for this feature for a while. Could you spend a moment taking a look at this? |
|
Thanks very much for this PR. In general I think its an improvment I wonder aloud if we should not have 2 enums for depreacted
To distinguish that which was deprecated and then removed versus that which is newly deprecated ?? |
Addresses #1504
Let me know your thoughts on this. My strategy was to just add another category, which can provide the extra information and keep the
DangerandBreakinglevels untouched.The two new combinations of level and category are:
DANGER, category:DEPRECATEDfor fields that become deprecatedBREAKING, category:DEPRECATEDfor fields that were deprecated and now missingTodo:
@deprecatedin the new schema@deprecatedin the old schemaRemarks:
It's actually interesting to note that
@deprecatedon anything butFIELD_DEFINITION | ENUM_VALUEis not currently a valid spec-compliant use of the directive.See: https://graphql.github.io/graphql-spec/June2018/#sec--deprecated
and the corresponding implementation proposed on graphql-js: https://github.com/graphql/graphql-js/pull/1560/files