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 java.lang.Object implements GraphqlFieldVisibility
Deprecated.This is no longer the best way to prevent Introspection -Introspection.enabledJvmWide(boolean)
can be used insteadThis 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
Fields Modifier and Type Field Description static NoIntrospectionGraphqlFieldVisibility
NO_INTROSPECTION_FIELD_VISIBILITY
Deprecated.
-
Constructor Summary
Constructors Constructor Description NoIntrospectionGraphqlFieldVisibility()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description GraphQLFieldDefinition
getFieldDefinition(GraphQLFieldsContainer fieldsContainer, java.lang.String fieldName)
Deprecated.Called to get a named field from an object type or interfacejava.util.List<GraphQLFieldDefinition>
getFieldDefinitions(GraphQLFieldsContainer fieldsContainer)
Deprecated.Called to get the list of fields from an object type or interface-
Methods 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 Detail
-
NO_INTROSPECTION_FIELD_VISIBILITY
@Deprecated(since="2024-03-16") public static NoIntrospectionGraphqlFieldVisibility NO_INTROSPECTION_FIELD_VISIBILITY
Deprecated.
-
-
Method Detail
-
getFieldDefinitions
public java.util.List<GraphQLFieldDefinition> getFieldDefinitions(GraphQLFieldsContainer fieldsContainer)
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, java.lang.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
-
-