Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/main/java/graphql/Directives.java
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public class Directives {
.argument(newArgument()
.name("reason")
.type(GraphQLString)
.defaultValue(NO_LONGER_SUPPORTED)
.defaultValueProgrammatic(NO_LONGER_SUPPORTED)
.description("The reason for the deprecation"))
.validLocations(FIELD_DEFINITION, ENUM_VALUE, ARGUMENT_DEFINITION, INPUT_FIELD_DEFINITION)
.definition(DEPRECATED_DIRECTIVE_DEFINITION)
Expand Down
9 changes: 4 additions & 5 deletions src/main/java/graphql/introspection/Introspection.java
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ private static String printDefaultValue(InputValueWithState inputValueWithState,
.argument(newArgument()
.name("includeDeprecated")
.type(GraphQLBoolean)
.defaultValue(false)))
.defaultValueProgrammatic(false)))
.field(newFieldDefinition()
.name("type")
.type(nonNull(typeRef("__Type"))))
Expand Down Expand Up @@ -353,7 +353,7 @@ private static String printDefaultValue(InputValueWithState inputValueWithState,
.argument(newArgument()
.name("includeDeprecated")
.type(GraphQLBoolean)
.defaultValue(false)))
.defaultValueProgrammatic(false)))
.field(newFieldDefinition()
.name("interfaces")
.type(list(nonNull(typeRef("__Type")))))
Expand All @@ -366,14 +366,14 @@ private static String printDefaultValue(InputValueWithState inputValueWithState,
.argument(newArgument()
.name("includeDeprecated")
.type(GraphQLBoolean)
.defaultValue(false)))
.defaultValueProgrammatic(false)))
.field(newFieldDefinition()
.name("inputFields")
.type(list(nonNull(__InputValue)))
.argument(newArgument()
.name("includeDeprecated")
.type(GraphQLBoolean)
.defaultValue(false)))
.defaultValueProgrammatic(false)))
.field(newFieldDefinition()
.name("ofType")
.type(typeRef("__Type")))
Expand Down Expand Up @@ -631,7 +631,6 @@ public static boolean isIntrospectionTypes(GraphQLNamedType type) {
* @param schema the schema to use
* @param parentType the type of the parent object
* @param fieldName the field to look up
*
* @return a field definition otherwise throws an assertion exception if its null
*/
public static GraphQLFieldDefinition getFieldDef(GraphQLSchema schema, GraphQLCompositeType parentType, String fieldName) {
Expand Down