Package graphql.schema.visibility
Class DefaultGraphqlFieldVisibility
java.lang.Object
graphql.schema.visibility.DefaultGraphqlFieldVisibility
- All Implemented Interfaces:
GraphqlFieldVisibility
@PublicApi
public class DefaultGraphqlFieldVisibility
extends Object
implements GraphqlFieldVisibility
The default field visibility of graphql-java is that everything is visible
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetFieldDefinition(GraphQLFieldsContainer fieldsContainer, String fieldName) Called to get a named field from an object type or interfacegetFieldDefinition(GraphQLInputFieldsContainer fieldsContainer, String fieldName) Called to get a named field from an input object typegetFieldDefinitions(GraphQLFieldsContainer fieldsContainer) Called to get the list of fields from an object type or interfacegetFieldDefinitions(GraphQLInputFieldsContainer fieldsContainer) Called to get the list of fields from an input object type
-
Field Details
-
DEFAULT_FIELD_VISIBILITY
-
-
Constructor Details
-
DefaultGraphqlFieldVisibility
public DefaultGraphqlFieldVisibility()
-
-
Method Details
-
getFieldDefinitions
Description copied from interface:GraphqlFieldVisibilityCalled to get the list of fields from an object type or interface- Specified by:
getFieldDefinitionsin interfaceGraphqlFieldVisibility- Parameters:
fieldsContainer- the type in play- Returns:
- a non null list of
GraphQLFieldDefinitions
-
getFieldDefinition
public GraphQLFieldDefinition getFieldDefinition(GraphQLFieldsContainer fieldsContainer, String fieldName) Description copied from interface:GraphqlFieldVisibilityCalled to get a named field from an object type or interface- Specified by:
getFieldDefinitionin interfaceGraphqlFieldVisibility- Parameters:
fieldsContainer- the type in playfieldName- the name of the desired field- Returns:
- a
GraphQLFieldDefinitionor null if it's not visible
-
getFieldDefinitions
public List<GraphQLInputObjectField> getFieldDefinitions(GraphQLInputFieldsContainer fieldsContainer) Description copied from interface:GraphqlFieldVisibilityCalled to get the list of fields from an input object type- Specified by:
getFieldDefinitionsin interfaceGraphqlFieldVisibility- Parameters:
fieldsContainer- the type in play- Returns:
- a non null list of
GraphQLInputObjectFields
-
getFieldDefinition
public GraphQLInputObjectField getFieldDefinition(GraphQLInputFieldsContainer fieldsContainer, String fieldName) Description copied from interface:GraphqlFieldVisibilityCalled to get a named field from an input object type- Specified by:
getFieldDefinitionin interfaceGraphqlFieldVisibility- Parameters:
fieldsContainer- the type in playfieldName- the name of the desired field- Returns:
- a
GraphQLInputObjectFieldor null if it's not visible
-