All Downloads are FREE. Search and download functionalities are using the official Maven repository.

graphql.schema.GraphQLFieldsContainer Maven / Gradle / Ivy

package graphql.schema;

import graphql.PublicApi;

import java.util.List;


/**
 * Types that can contain output fields are marked with this interface
 *
 * @see graphql.schema.GraphQLObjectType
 * @see graphql.schema.GraphQLInterfaceType
 */
@PublicApi
public interface GraphQLFieldsContainer extends GraphQLCompositeType {

    GraphQLFieldDefinition getFieldDefinition(String name);

    List getFieldDefinitions();

    default GraphQLFieldDefinition getField(String name) {
        return getFieldDefinition(name);
    }

    default List getFields() {
        return getFieldDefinitions();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy