Skip to content

Conversation

@bbakerman
Copy link
Member

@bbakerman bbakerman commented Feb 5, 2021

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.

type Query {
    someField(someArg : Int @deprecated) : String
}

input InputType {
    someInputField : String @deprecated
}    

} else if (environment.getSource() instanceof GraphQLInputObjectField) {
GraphQLInputObjectField inputField = environment.getSource();
} else if (type instanceof GraphQLInputObjectField) {
GraphQLInputObjectField inputField = (GraphQLInputObjectField) type;
Copy link
Member Author

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;
Copy link
Member Author

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();
}
Copy link
Member Author

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

@dfa1
Copy link
Contributor

dfa1 commented Feb 6, 2021

in my team we really need this! As soon as is merged I could provide testing and feedback

@bbakerman bbakerman added this to the 17.0 milestone Feb 26, 2021
@vojtapol
Copy link

vojtapol commented Mar 3, 2021

Love this addition!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants