graphql.nadel.engine.execution.transformation.ApplyEnvironment Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nadel-engine Show documentation
Show all versions of nadel-engine Show documentation
Nadel is a Java library that combines multiple GrahpQL services together into one API.
The newest version!
package graphql.nadel.engine.execution.transformation;
import graphql.Internal;
import graphql.language.Field;
import graphql.language.FragmentDefinition;
import graphql.language.Node;
import graphql.nadel.engine.NadelContext;
import graphql.nadel.normalized.NormalizedQueryField;
import graphql.schema.GraphQLFieldDefinition;
import graphql.schema.GraphQLFieldsContainer;
import graphql.schema.GraphQLSchema;
import graphql.util.TraverserContext;
import org.jetbrains.annotations.Nullable;
import java.util.List;
import java.util.Map;
@Internal
public class ApplyEnvironment {
private final Field field;
private final GraphQLFieldDefinition fieldDefinitionOverall;
private final GraphQLFieldsContainer fieldsContainerOverall;
private final TraverserContext traverserContext;
private List normalizedQueryFieldsOverall;
private final Map> metadataByFieldId;
private Map fragmentDefinitionMap;
private final GraphQLSchema underlyingSchema;
private final NadelContext nadelContext;
public ApplyEnvironment(Field field,
GraphQLFieldDefinition fieldDefinitionOverall,
GraphQLFieldsContainer fieldsContainerOverall,
TraverserContext traverserContext,
List normalizedQueryFieldsOverall,
Map> metadataByFieldId,
Map fragmentDefinitionMap,
@Nullable GraphQLSchema underlyingSchema,
NadelContext nadelContext
) {
this.field = field;
this.fieldDefinitionOverall = fieldDefinitionOverall;
this.fieldsContainerOverall = fieldsContainerOverall;
this.traverserContext = traverserContext;
this.normalizedQueryFieldsOverall = normalizedQueryFieldsOverall;
this.metadataByFieldId = metadataByFieldId;
this.fragmentDefinitionMap = fragmentDefinitionMap;
this.underlyingSchema = underlyingSchema;
this.nadelContext = nadelContext;
}
public Field getField() {
return field;
}
public GraphQLFieldDefinition getFieldDefinitionOverall() {
return fieldDefinitionOverall;
}
public GraphQLFieldsContainer getFieldsContainerOverall() {
return fieldsContainerOverall;
}
public TraverserContext getTraverserContext() {
return traverserContext;
}
public List getNormalizedQueryFieldsOverall() {
return normalizedQueryFieldsOverall;
}
public Map> getMetadataByFieldId() {
return metadataByFieldId;
}
public Map getFragmentDefinitionMap() {
return fragmentDefinitionMap;
}
public NadelContext getNadelContext() {
return nadelContext;
}
public GraphQLSchema getUnderlyingSchema() {
return underlyingSchema;
}
}