graphql.schema.visibility.DefaultGraphqlFieldVisibility Maven / Gradle / Ivy
package graphql.schema.visibility;
import graphql.schema.GraphQLFieldDefinition;
import graphql.schema.GraphQLFieldsContainer;
import java.util.List;
/**
* The default field visibility of graphql-java is that everything is visible
*/
public class DefaultGraphqlFieldVisibility implements GraphqlFieldVisibility {
public static 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);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy