Package graphql.schema.visibility
Class NoIntrospectionGraphqlFieldVisibility
java.lang.Object
graphql.schema.visibility.NoIntrospectionGraphqlFieldVisibility
- All Implemented Interfaces:
GraphqlFieldVisibility
@PublicApi
@Deprecated(since="2024-03-16")
public class NoIntrospectionGraphqlFieldVisibility
extends Object
implements GraphqlFieldVisibility
Deprecated.
This field visibility will prevent Introspection queries from being performed. Technically this puts your
system in contravention of the specification
but some production systems want this lock down in place.
-
Field Summary
FieldsModifier and TypeFieldDescriptionDeprecated. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetFieldDefinition
(GraphQLFieldsContainer fieldsContainer, String fieldName) Deprecated.Called to get a named field from an object type or interfacegetFieldDefinitions
(GraphQLFieldsContainer fieldsContainer) Deprecated.Called to get the list of fields from an object type or interfaceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface graphql.schema.visibility.GraphqlFieldVisibility
getFieldDefinition, getFieldDefinitions
-
Field Details
-
NO_INTROSPECTION_FIELD_VISIBILITY
@Deprecated(since="2024-03-16") public static NoIntrospectionGraphqlFieldVisibility NO_INTROSPECTION_FIELD_VISIBILITYDeprecated.
-
-
Constructor Details
-
NoIntrospectionGraphqlFieldVisibility
public NoIntrospectionGraphqlFieldVisibility()Deprecated.
-
-
Method Details
-
getFieldDefinitions
Deprecated.Description copied from interface:GraphqlFieldVisibility
Called to get the list of fields from an object type or interface- Specified by:
getFieldDefinitions
in interfaceGraphqlFieldVisibility
- Parameters:
fieldsContainer
- the type in play- Returns:
- a non null list of
GraphQLFieldDefinition
s
-
getFieldDefinition
public GraphQLFieldDefinition getFieldDefinition(GraphQLFieldsContainer fieldsContainer, String fieldName) Deprecated.Description copied from interface:GraphqlFieldVisibility
Called to get a named field from an object type or interface- Specified by:
getFieldDefinition
in interfaceGraphqlFieldVisibility
- Parameters:
fieldsContainer
- the type in playfieldName
- the name of the desired field- Returns:
- a
GraphQLFieldDefinition
or null if it's not visible
-
Introspection.enabledJvmWide(boolean)
can be used instead