-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This provides @deprecated on input fields and arguments #2186
Conversation
} else if (environment.getSource() instanceof GraphQLInputObjectField) { | ||
GraphQLInputObjectField inputField = environment.getSource(); | ||
} else if (type instanceof GraphQLInputObjectField) { | ||
GraphQLInputObjectField inputField = (GraphQLInputObjectField) type; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just tweaked it a little bit
filtered.remove(valueDefinition); | ||
} | ||
} | ||
return filtered; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tweaked the code to use .stream()
.type(newNonNullType(newTypeName().name("String").build()).build()) | ||
.build()) | ||
.build(); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed repeated definition and re-used the other ones
in my team we really need this! As soon as is merged I could provide testing and feedback |
Love this addition! |
See #1770
See also https://github.com/smitt04/graphql/blob/ac15638ac02ac88013d838785d907c24bbaeff6b/spec/Section%204%20--%20Introspection.md
This now allows @deprecated to be on input fields and arguments.