graphql.schema.visibility.DefaultGraphqlFieldVisibility Maven / Gradle / Ivy
package graphql.schema.visibility;
import graphql.PublicApi;
import graphql.schema.GraphQLFieldDefinition;
import graphql.schema.GraphQLFieldsContainer;
import graphql.schema.GraphQLInputFieldsContainer;
import graphql.schema.GraphQLInputObjectField;
import java.util.List;
/**
* The default field visibility of graphql-java is that everything is visible
*/
@PublicApi
public class DefaultGraphqlFieldVisibility implements GraphqlFieldVisibility {
public static final DefaultGraphqlFieldVisibility DEFAULT_FIELD_VISIBILITY = new DefaultGraphqlFieldVisibility();
@Override
public List getFieldDefinitions(GraphQLFieldsContainer fieldsContainer) {
return fieldsContainer.getFieldDefinitions();
}
@Override
public GraphQLFieldDefinition getFieldDefinition(GraphQLFieldsContainer fieldsContainer, String fieldName) {
return fieldsContainer.getFieldDefinition(fieldName);
}
@Override
public List getFieldDefinitions(GraphQLInputFieldsContainer fieldsContainer) {
return fieldsContainer.getFieldDefinitions();
}
@Override
public GraphQLInputObjectField getFieldDefinition(GraphQLInputFieldsContainer fieldsContainer, String fieldName) {
return fieldsContainer.getFieldDefinition(fieldName);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy