Package graphql.schema.visibility
Class DefaultGraphqlFieldVisibility
- java.lang.Object
-
- graphql.schema.visibility.DefaultGraphqlFieldVisibility
-
- All Implemented Interfaces:
GraphqlFieldVisibility
@PublicApi public class DefaultGraphqlFieldVisibility extends java.lang.Object implements GraphqlFieldVisibility
The default field visibility of graphql-java is that everything is visible
-
-
Field Summary
Fields Modifier and Type Field Description static DefaultGraphqlFieldVisibility
DEFAULT_FIELD_VISIBILITY
-
Constructor Summary
Constructors Constructor Description DefaultGraphqlFieldVisibility()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GraphQLFieldDefinition
getFieldDefinition(GraphQLFieldsContainer fieldsContainer, java.lang.String fieldName)
Called to get a named field from an object type or interfaceGraphQLInputObjectField
getFieldDefinition(GraphQLInputFieldsContainer fieldsContainer, java.lang.String fieldName)
Called to get a named field from an input object typejava.util.List<GraphQLFieldDefinition>
getFieldDefinitions(GraphQLFieldsContainer fieldsContainer)
Called to get the list of fields from an object type or interfacejava.util.List<GraphQLInputObjectField>
getFieldDefinitions(GraphQLInputFieldsContainer fieldsContainer)
Called to get the list of fields from an input object type
-
-
-
Field Detail
-
DEFAULT_FIELD_VISIBILITY
public static final DefaultGraphqlFieldVisibility DEFAULT_FIELD_VISIBILITY
-
-
Method Detail
-
getFieldDefinitions
public java.util.List<GraphQLFieldDefinition> getFieldDefinitions(GraphQLFieldsContainer fieldsContainer)
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)
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
-
getFieldDefinitions
public java.util.List<GraphQLInputObjectField> getFieldDefinitions(GraphQLInputFieldsContainer fieldsContainer)
Description copied from interface:GraphqlFieldVisibility
Called to get the list of fields from an input object type- Specified by:
getFieldDefinitions
in interfaceGraphqlFieldVisibility
- Parameters:
fieldsContainer
- the type in play- Returns:
- a non null list of
GraphQLInputObjectField
s
-
getFieldDefinition
public GraphQLInputObjectField getFieldDefinition(GraphQLInputFieldsContainer fieldsContainer, java.lang.String fieldName)
Description copied from interface:GraphqlFieldVisibility
Called to get a named field from an input object type- Specified by:
getFieldDefinition
in interfaceGraphqlFieldVisibility
- Parameters:
fieldsContainer
- the type in playfieldName
- the name of the desired field- Returns:
- a
GraphQLInputObjectField
or null if it's not visible
-
-