@PublicApi public class DefaultGraphqlFieldVisibility extends java.lang.Object implements GraphqlFieldVisibility
Modifier and Type | Field and Description |
---|---|
static DefaultGraphqlFieldVisibility |
DEFAULT_FIELD_VISIBILITY |
Constructor and Description |
---|
DefaultGraphqlFieldVisibility() |
Modifier and Type | Method and Description |
---|---|
GraphQLFieldDefinition |
getFieldDefinition(GraphQLFieldsContainer fieldsContainer,
java.lang.String fieldName)
Called to get a named field from an object type or interface
|
GraphQLInputObjectField |
getFieldDefinition(GraphQLInputFieldsContainer fieldsContainer,
java.lang.String fieldName)
Called to get a named field from an input object type
|
java.util.List<GraphQLFieldDefinition> |
getFieldDefinitions(GraphQLFieldsContainer fieldsContainer)
Called to get the list of fields from an object type or interface
|
java.util.List<GraphQLInputObjectField> |
getFieldDefinitions(GraphQLInputFieldsContainer fieldsContainer)
Called to get the list of fields from an input object type
|
public static final DefaultGraphqlFieldVisibility DEFAULT_FIELD_VISIBILITY
public java.util.List<GraphQLFieldDefinition> getFieldDefinitions(GraphQLFieldsContainer fieldsContainer)
GraphqlFieldVisibility
getFieldDefinitions
in interface GraphqlFieldVisibility
fieldsContainer
- the type in playGraphQLFieldDefinition
spublic GraphQLFieldDefinition getFieldDefinition(GraphQLFieldsContainer fieldsContainer, java.lang.String fieldName)
GraphqlFieldVisibility
getFieldDefinition
in interface GraphqlFieldVisibility
fieldsContainer
- the type in playfieldName
- the name of the desired fieldGraphQLFieldDefinition
or null if it's not visiblepublic java.util.List<GraphQLInputObjectField> getFieldDefinitions(GraphQLInputFieldsContainer fieldsContainer)
GraphqlFieldVisibility
getFieldDefinitions
in interface GraphqlFieldVisibility
fieldsContainer
- the type in playGraphQLInputObjectField
spublic GraphQLInputObjectField getFieldDefinition(GraphQLInputFieldsContainer fieldsContainer, java.lang.String fieldName)
GraphqlFieldVisibility
getFieldDefinition
in interface GraphqlFieldVisibility
fieldsContainer
- the type in playfieldName
- the name of the desired fieldGraphQLInputObjectField
or null if it's not visible