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

graphql.schema.GraphQLFieldsContainer Maven / Gradle / Ivy

There is a newer version: 230521-nf-execution
Show newest version
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