Search in sources :

Example 1 with GraphQLAppliedDirective

use of graphql.schema.GraphQLAppliedDirective in project graphql-java by graphql-java.

the class IntrospectionWithDirectivesSupport method addAppliedDirectives.

private GraphQLObjectType addAppliedDirectives(GraphQLObjectType originalType, GraphQLCodeRegistry.Builder codeRegistry, GraphQLObjectType appliedDirectiveType, GraphQLObjectType directiveArgumentType) {
    GraphQLObjectType objectType = originalType.transform(bld -> bld.field(fld -> fld.name("appliedDirectives").type(nonNull(list(nonNull(appliedDirectiveType))))));
    DataFetcher<?> df = env -> {
        Object source = env.getSource();
        GraphQLSchema schema = env.getGraphQLSchema();
        if (source instanceof GraphQLDirectiveContainer) {
            GraphQLDirectiveContainer type = env.getSource();
            List<GraphQLAppliedDirective> appliedDirectives = DirectivesUtil.toAppliedDirectives(type);
            return filterAppliedDirectives(schema, false, type, appliedDirectives);
        }
        if (source instanceof GraphQLSchema) {
            List<GraphQLAppliedDirective> appliedDirectives = DirectivesUtil.toAppliedDirectives(schema.getSchemaAppliedDirectives(), schema.getSchemaDirectives());
            return filterAppliedDirectives(schema, true, null, appliedDirectives);
        }
        return assertShouldNeverHappen("What directive containing element have we not considered? - %s", originalType);
    };
    DataFetcher<?> argsDF = env -> {
        final GraphQLAppliedDirective directive = env.getSource();
        // we only show directive arguments that have values set on them
        return directive.getArguments().stream().filter(arg -> arg.getArgumentValue().isSet());
    };
    DataFetcher<?> argValueDF = env -> {
        final GraphQLAppliedDirectiveArgument argument = env.getSource();
        InputValueWithState value = argument.getArgumentValue();
        Node<?> literal = ValuesResolver.valueToLiteral(value, argument.getType());
        return AstPrinter.printAst(literal);
    };
    codeRegistry.dataFetcher(coordinates(objectType, "appliedDirectives"), df);
    codeRegistry.dataFetcher(coordinates(appliedDirectiveType, "args"), argsDF);
    codeRegistry.dataFetcher(coordinates(directiveArgumentType, "value"), argValueDF);
    return objectType;
}
Also used : GraphQLSchemaElement(graphql.schema.GraphQLSchemaElement) GraphQLCodeRegistry(graphql.schema.GraphQLCodeRegistry) Node(graphql.language.Node) SchemaTransformer(graphql.schema.SchemaTransformer) GraphQLString(graphql.Scalars.GraphQLString) GraphQLDirectiveContainer(graphql.schema.GraphQLDirectiveContainer) TraversalControl(graphql.util.TraversalControl) ValuesResolver(graphql.execution.ValuesResolver) Introspection.__Type(graphql.introspection.Introspection.__Type) GraphQLType(graphql.schema.GraphQLType) TraverserContext(graphql.util.TraverserContext) GraphQLList.list(graphql.schema.GraphQLList.list) GraphQLAppliedDirective(graphql.schema.GraphQLAppliedDirective) InputValueWithState(graphql.schema.InputValueWithState) Introspection.__EnumValue(graphql.introspection.Introspection.__EnumValue) Assert.assertShouldNeverHappen(graphql.Assert.assertShouldNeverHappen) GraphQLNonNull.nonNull(graphql.schema.GraphQLNonNull.nonNull) DataFetcher(graphql.schema.DataFetcher) GraphQLSchema(graphql.schema.GraphQLSchema) GraphQLAppliedDirectiveArgument(graphql.schema.GraphQLAppliedDirectiveArgument) DirectivesUtil(graphql.DirectivesUtil) GraphQLObjectType(graphql.schema.GraphQLObjectType) GraphQLDirective(graphql.schema.GraphQLDirective) ImmutableSet(com.google.common.collect.ImmutableSet) PublicSpi(graphql.PublicSpi) CONTINUE(graphql.util.TraversalControl.CONTINUE) Set(java.util.Set) GraphQLTypeVisitorStub(graphql.schema.GraphQLTypeVisitorStub) FieldCoordinates.coordinates(graphql.schema.FieldCoordinates.coordinates) Introspection.__Schema(graphql.introspection.Introspection.__Schema) AstPrinter(graphql.language.AstPrinter) Introspection.__InputValue(graphql.introspection.Introspection.__InputValue) List(java.util.List) Collectors.toList(java.util.stream.Collectors.toList) PublicApi(graphql.PublicApi) Assert.assertNotNull(graphql.Assert.assertNotNull) GraphQLObjectType.newObject(graphql.schema.GraphQLObjectType.newObject) Introspection.__Field(graphql.introspection.Introspection.__Field) NotNull(org.jetbrains.annotations.NotNull) GraphQLDirectiveContainer(graphql.schema.GraphQLDirectiveContainer) InputValueWithState(graphql.schema.InputValueWithState) Node(graphql.language.Node) GraphQLObjectType(graphql.schema.GraphQLObjectType) GraphQLAppliedDirectiveArgument(graphql.schema.GraphQLAppliedDirectiveArgument) GraphQLObjectType.newObject(graphql.schema.GraphQLObjectType.newObject) List(java.util.List) Collectors.toList(java.util.stream.Collectors.toList) GraphQLAppliedDirective(graphql.schema.GraphQLAppliedDirective) GraphQLSchema(graphql.schema.GraphQLSchema)

Example 2 with GraphQLAppliedDirective

use of graphql.schema.GraphQLAppliedDirective in project graphql-java by graphql-java.

the class SchemaGeneratorAppliedDirectiveHelper method buildAppliedDirectives.

static Pair<List<GraphQLDirective>, List<GraphQLAppliedDirective>> buildAppliedDirectives(SchemaGeneratorHelper.BuildContext buildCtx, Function<Type<?>, GraphQLInputType> inputTypeFactory, List<Directive> directives, List<Directive> extensionDirectives, Introspection.DirectiveLocation directiveLocation, Set<GraphQLDirective> runtimeDirectives, GraphqlTypeComparatorRegistry comparatorRegistry) {
    directives = Optional.ofNullable(directives).orElse(emptyList());
    extensionDirectives = Optional.ofNullable(extensionDirectives).orElse(emptyList());
    List<GraphQLDirective> output = new ArrayList<>();
    List<GraphQLAppliedDirective> outputApplied = new ArrayList<>();
    for (Directive directive : directives) {
        Pair<GraphQLDirective, GraphQLAppliedDirective> pair = buildAppliedDirective(buildCtx, inputTypeFactory, directive, runtimeDirectives, directiveLocation, comparatorRegistry);
        output.add(pair.first);
        outputApplied.add(pair.second);
    }
    for (Directive directive : extensionDirectives) {
        Pair<GraphQLDirective, GraphQLAppliedDirective> pair = buildAppliedDirective(buildCtx, inputTypeFactory, directive, runtimeDirectives, directiveLocation, comparatorRegistry);
        output.add(pair.first);
        outputApplied.add(pair.second);
    }
    return pair(output, outputApplied);
}
Also used : ArrayList(java.util.ArrayList) GraphQLDirective(graphql.schema.GraphQLDirective) GraphQLAppliedDirective(graphql.schema.GraphQLAppliedDirective) GraphQLAppliedDirective(graphql.schema.GraphQLAppliedDirective) GraphQLDirective(graphql.schema.GraphQLDirective) Directive(graphql.language.Directive)

Example 3 with GraphQLAppliedDirective

use of graphql.schema.GraphQLAppliedDirective in project graphql-java by graphql-java.

the class SchemaGeneratorAppliedDirectiveHelper method buildAppliedDirective.

// builds directives from a type and its extensions
private static Pair<GraphQLDirective, GraphQLAppliedDirective> buildAppliedDirective(SchemaGeneratorHelper.BuildContext buildCtx, Function<Type<?>, GraphQLInputType> inputTypeFactory, Directive directive, Set<GraphQLDirective> directiveDefinitions, Introspection.DirectiveLocation directiveLocation, GraphqlTypeComparatorRegistry comparatorRegistry) {
    GraphQLDirective.Builder builder = GraphQLDirective.newDirective().name(directive.getName()).description(buildDescription(buildCtx, directive, null)).comparatorRegistry(comparatorRegistry).validLocations(directiveLocation);
    GraphQLAppliedDirective.Builder builderAppliedDirective = GraphQLAppliedDirective.newDirective().name(directive.getName()).description(buildDescription(buildCtx, directive, null)).comparatorRegistry(comparatorRegistry);
    Optional<GraphQLDirective> directiveDefOpt = FpKit.findOne(directiveDefinitions, dd -> dd.getName().equals(directive.getName()));
    GraphQLDirective graphQLDirective = directiveDefOpt.orElseGet(() -> {
        return buildDirectiveDefinitionFromAst(buildCtx, buildCtx.getTypeRegistry().getDirectiveDefinition(directive.getName()).get(), inputTypeFactory);
    });
    builder.repeatable(graphQLDirective.isRepeatable());
    builder.definition(buildCtx.isCaptureAstDefinitions() ? graphQLDirective.getDefinition() : null);
    builderAppliedDirective.definition(buildCtx.isCaptureAstDefinitions() ? directive : null);
    List<GraphQLArgument> directiveArguments = new ArrayList<>();
    List<GraphQLAppliedDirectiveArgument> appliedArguments = new ArrayList<>();
    for (Argument arg : directive.getArguments()) {
        directiveArguments.add(buildDirectiveArg(buildCtx, arg, graphQLDirective));
        appliedArguments.add(buildAppliedArg(buildCtx, arg, graphQLDirective));
    }
    directiveArguments = transferMissingArguments(buildCtx, directiveArguments, graphQLDirective);
    directiveArguments.forEach(builder::argument);
    appliedArguments = transferMissingAppliedArguments(appliedArguments, graphQLDirective);
    appliedArguments.forEach(builderAppliedDirective::argument);
    return pair(builder.build(), builderAppliedDirective.build());
}
Also used : GraphQLAppliedDirectiveArgument(graphql.schema.GraphQLAppliedDirectiveArgument) GraphQLArgument(graphql.schema.GraphQLArgument) Argument(graphql.language.Argument) ArrayList(java.util.ArrayList) GraphQLArgument(graphql.schema.GraphQLArgument) GraphQLDirective(graphql.schema.GraphQLDirective) GraphQLAppliedDirective(graphql.schema.GraphQLAppliedDirective) GraphQLAppliedDirectiveArgument(graphql.schema.GraphQLAppliedDirectiveArgument)

Example 4 with GraphQLAppliedDirective

use of graphql.schema.GraphQLAppliedDirective in project graphql-java by graphql-java.

the class SchemaGeneratorHelper method buildObjectType.

GraphQLObjectType buildObjectType(BuildContext buildCtx, ObjectTypeDefinition typeDefinition) {
    GraphQLObjectType.Builder builder = GraphQLObjectType.newObject();
    builder.definition(buildCtx.isCaptureAstDefinitions() ? typeDefinition : null);
    builder.name(typeDefinition.getName());
    builder.description(buildDescription(buildCtx, typeDefinition, typeDefinition.getDescription()));
    builder.comparatorRegistry(buildCtx.getComparatorRegistry());
    List<ObjectTypeExtensionDefinition> extensions = objectTypeExtensions(typeDefinition, buildCtx);
    builder.extensionDefinitions(buildCtx.isCaptureAstDefinitions() ? extensions : emptyList());
    Pair<List<GraphQLDirective>, List<GraphQLAppliedDirective>> appliedDirectives = buildAppliedDirectives(buildCtx, inputTypeFactory(buildCtx), typeDefinition.getDirectives(), directivesOf(extensions), OBJECT, buildCtx.getDirectives(), buildCtx.getComparatorRegistry());
    buildAppliedDirectives(buildCtx, builder, appliedDirectives);
    typeDefinition.getFieldDefinitions().forEach(fieldDef -> {
        GraphQLFieldDefinition fieldDefinition = buildField(buildCtx, typeDefinition, fieldDef);
        builder.field(fieldDefinition);
    });
    extensions.forEach(extension -> extension.getFieldDefinitions().forEach(fieldDef -> {
        GraphQLFieldDefinition fieldDefinition = buildField(buildCtx, typeDefinition, fieldDef);
        if (!builder.hasField(fieldDefinition.getName())) {
            builder.field(fieldDefinition);
        }
    }));
    buildObjectTypeInterfaces(buildCtx, typeDefinition, builder, extensions);
    return directivesObserve(buildCtx, builder.build());
}
Also used : Value(graphql.language.Value) INPUT_FIELD_DEFINITION(graphql.introspection.Introspection.DirectiveLocation.INPUT_FIELD_DEFINITION) FIELD_DEFINITION(graphql.introspection.Introspection.DirectiveLocation.FIELD_DEFINITION) GraphQLInputObjectType(graphql.schema.GraphQLInputObjectType) GraphQLInterfaceType(graphql.schema.GraphQLInterfaceType) GraphQLUnionType(graphql.schema.GraphQLUnionType) DirectiveDefinition(graphql.language.DirectiveDefinition) GraphQLEnumValueDefinition(graphql.schema.GraphQLEnumValueDefinition) GraphQLAppliedDirective(graphql.schema.GraphQLAppliedDirective) INPUT_OBJECT(graphql.introspection.Introspection.DirectiveLocation.INPUT_OBJECT) TypeResolverProxy(graphql.schema.TypeResolverProxy) DataFetcherFactory(graphql.schema.DataFetcherFactory) Description(graphql.language.Description) EnumValueDefinition(graphql.language.EnumValueDefinition) ObjectTypeExtensionDefinition(graphql.language.ObjectTypeExtensionDefinition) OBJECT(graphql.introspection.Introspection.DirectiveLocation.OBJECT) Map(java.util.Map) SchemaGeneratorAppliedDirectiveHelper.buildDirectiveDefinitionFromAst(graphql.schema.idl.SchemaGeneratorAppliedDirectiveHelper.buildDirectiveDefinitionFromAst) SCALAR(graphql.introspection.Introspection.DirectiveLocation.SCALAR) Pair(graphql.util.Pair) SpecifiedByDirective(graphql.Directives.SpecifiedByDirective) GraphQLDirective(graphql.schema.GraphQLDirective) GraphQLNamedOutputType(graphql.schema.GraphQLNamedOutputType) SPECIFIED_BY_DIRECTIVE_DEFINITION(graphql.Directives.SPECIFIED_BY_DIRECTIVE_DEFINITION) FieldDefinition(graphql.language.FieldDefinition) GraphQLInputType(graphql.schema.GraphQLInputType) Set(java.util.Set) TypeDefinition(graphql.language.TypeDefinition) ENUM_VALUE(graphql.introspection.Introspection.DirectiveLocation.ENUM_VALUE) InterfaceTypeExtensionDefinition(graphql.language.InterfaceTypeExtensionDefinition) FieldCoordinates(graphql.schema.FieldCoordinates) GraphQLCodeRegistry(graphql.schema.GraphQLCodeRegistry) GraphqlDirectivesContainerTypeBuilder(graphql.schema.GraphqlDirectivesContainerTypeBuilder) Internal(graphql.Internal) DirectiveLocation(graphql.introspection.Introspection.DirectiveLocation) GraphQLScalarType(graphql.schema.GraphQLScalarType) GraphQLNamedInputType(graphql.schema.GraphQLNamedInputType) GraphQLType(graphql.schema.GraphQLType) ArrayList(java.util.ArrayList) LinkedHashMap(java.util.LinkedHashMap) InputObjectTypeExtensionDefinition(graphql.language.InputObjectTypeExtensionDefinition) ScalarTypeExtensionDefinition(graphql.language.ScalarTypeExtensionDefinition) LinkedHashSet(java.util.LinkedHashSet) AssertException(graphql.AssertException) StringValue(graphql.language.StringValue) Assert.assertNotNull(graphql.Assert.assertNotNull) ArrayDeque(java.util.ArrayDeque) GraphqlTypeComparatorRegistry(graphql.schema.GraphqlTypeComparatorRegistry) GraphQLDirectiveContainer(graphql.schema.GraphQLDirectiveContainer) GraphQLFieldDefinition(graphql.schema.GraphQLFieldDefinition) InputValueDefinition(graphql.language.InputValueDefinition) GraphQLInputObjectField(graphql.schema.GraphQLInputObjectField) ARGUMENT_DEFINITION(graphql.introspection.Introspection.DirectiveLocation.ARGUMENT_DEFINITION) UNION(graphql.introspection.Introspection.DirectiveLocation.UNION) EnumTypeDefinition(graphql.language.EnumTypeDefinition) Type(graphql.language.Type) GraphQLEnumValueDefinition.newEnumValueDefinition(graphql.schema.GraphQLEnumValueDefinition.newEnumValueDefinition) Collectors.toMap(java.util.stream.Collectors.toMap) TypeName(graphql.language.TypeName) TypeResolver(graphql.schema.TypeResolver) OperationTypeDefinition(graphql.language.OperationTypeDefinition) GraphQLObjectType(graphql.schema.GraphQLObjectType) NotAnInputTypeError(graphql.schema.idl.errors.NotAnInputTypeError) ObjectTypeDefinition(graphql.language.ObjectTypeDefinition) UnionTypeExtensionDefinition(graphql.language.UnionTypeExtensionDefinition) Collections.emptyList(java.util.Collections.emptyList) GraphQLArgument(graphql.schema.GraphQLArgument) Collectors(java.util.stream.Collectors) String.format(java.lang.String.format) Objects(java.util.Objects) NotAnOutputTypeError(graphql.schema.idl.errors.NotAnOutputTypeError) List(java.util.List) Comment(graphql.language.Comment) InterfaceTypeDefinition(graphql.language.InterfaceTypeDefinition) Optional(java.util.Optional) GraphQLEnumType(graphql.schema.GraphQLEnumType) PropertyDataFetcher(graphql.schema.PropertyDataFetcher) Node(graphql.language.Node) InputObjectTypeDefinition(graphql.language.InputObjectTypeDefinition) Deque(java.util.Deque) Function(java.util.function.Function) ENUM(graphql.introspection.Introspection.DirectiveLocation.ENUM) HashSet(java.util.HashSet) UnionTypeDefinition(graphql.language.UnionTypeDefinition) DataFetcherFactories(graphql.schema.DataFetcherFactories) DataFetcher(graphql.schema.DataFetcher) GraphQLSchema(graphql.schema.GraphQLSchema) ScalarTypeDefinition(graphql.language.ScalarTypeDefinition) SchemaGeneratorAppliedDirectiveHelper.buildAppliedDirectives(graphql.schema.idl.SchemaGeneratorAppliedDirectiveHelper.buildAppliedDirectives) DEPRECATED_DIRECTIVE_DEFINITION(graphql.Directives.DEPRECATED_DIRECTIVE_DEFINITION) EnumTypeExtensionDefinition(graphql.language.EnumTypeExtensionDefinition) GraphQLOutputType(graphql.schema.GraphQLOutputType) Directive(graphql.language.Directive) Argument(graphql.language.Argument) GraphQLTypeReference(graphql.schema.GraphQLTypeReference) FpKit(graphql.util.FpKit) GraphQLTypeReference.typeRef(graphql.schema.GraphQLTypeReference.typeRef) ObjectTypeExtensionDefinition(graphql.language.ObjectTypeExtensionDefinition) InputObjectTypeExtensionDefinition(graphql.language.InputObjectTypeExtensionDefinition) GraphQLObjectType(graphql.schema.GraphQLObjectType) GraphQLFieldDefinition(graphql.schema.GraphQLFieldDefinition) ArrayList(java.util.ArrayList) Collections.emptyList(java.util.Collections.emptyList) List(java.util.List)

Example 5 with GraphQLAppliedDirective

use of graphql.schema.GraphQLAppliedDirective in project graphql-java by graphql-java.

the class SchemaPrinter method directivesString.

private String directivesString(Class<? extends GraphQLSchemaElement> parentType, boolean isDeprecated, List<GraphQLAppliedDirective> directives) {
    if (isDeprecated) {
        directives = addDeprecatedDirectiveIfNeeded(directives);
    }
    directives = directives.stream().filter(directive -> options.getIncludeDirective().test(directive.getName()) || isDeprecatedDirective(directive)).filter(options.getIncludeSchemaElement()).collect(toList());
    if (directives.isEmpty()) {
        return "";
    }
    StringBuilder sb = new StringBuilder();
    if (parentType != GraphQLSchemaElement.class) {
        sb.append(" ");
    }
    Comparator<? super GraphQLSchemaElement> comparator = getComparator(parentType, GraphQLAppliedDirective.class);
    directives = directives.stream().sorted(comparator).collect(toList());
    for (int i = 0; i < directives.size(); i++) {
        GraphQLAppliedDirective directive = directives.get(i);
        sb.append(directiveString(directive));
        if (i < directives.size() - 1) {
            sb.append(" ");
        }
    }
    return sb.toString();
}
Also used : Arrays(java.util.Arrays) GraphqlTypeComparatorRegistry(graphql.schema.GraphqlTypeComparatorRegistry) GraphQLDirectiveContainer(graphql.schema.GraphQLDirectiveContainer) ValuesResolver(graphql.execution.ValuesResolver) GraphQLInputObjectType(graphql.schema.GraphQLInputObjectType) GraphQLFieldDefinition(graphql.schema.GraphQLFieldDefinition) GraphQLInterfaceType(graphql.schema.GraphQLInterfaceType) InputValueDefinition(graphql.language.InputValueDefinition) GraphQLInputObjectField(graphql.schema.GraphQLInputObjectField) GraphQLUnionType(graphql.schema.GraphQLUnionType) GraphQLEnumValueDefinition(graphql.schema.GraphQLEnumValueDefinition) GraphQLAppliedDirective(graphql.schema.GraphQLAppliedDirective) InputValueWithState(graphql.schema.InputValueWithState) EnumTypeDefinition(graphql.language.EnumTypeDefinition) Description(graphql.language.Description) EnumValueDefinition(graphql.language.EnumValueDefinition) Map(java.util.Map) DefaultGraphqlTypeComparatorRegistry(graphql.schema.DefaultGraphqlTypeComparatorRegistry) GraphQLObjectType(graphql.schema.GraphQLObjectType) PrintWriter(java.io.PrintWriter) GraphQLDirective(graphql.schema.GraphQLDirective) ObjectTypeDefinition(graphql.language.ObjectTypeDefinition) GraphQLNamedOutputType(graphql.schema.GraphQLNamedOutputType) Predicate(java.util.function.Predicate) GraphqlFieldVisibility(graphql.schema.visibility.GraphqlFieldVisibility) FieldDefinition(graphql.language.FieldDefinition) GraphQLInputType(graphql.schema.GraphQLInputType) TypeDefinition(graphql.language.TypeDefinition) GraphQLArgument(graphql.schema.GraphQLArgument) Collectors(java.util.stream.Collectors) Collectors.joining(java.util.stream.Collectors.joining) AstPrinter(graphql.language.AstPrinter) List(java.util.List) Stream(java.util.stream.Stream) InterfaceTypeDefinition(graphql.language.InterfaceTypeDefinition) GraphQLEnumType(graphql.schema.GraphQLEnumType) GraphqlTypeComparatorEnvironment(graphql.schema.GraphqlTypeComparatorEnvironment) GraphQLSchemaElement(graphql.schema.GraphQLSchemaElement) GraphQLNamedType(graphql.schema.GraphQLNamedType) GraphQLScalarType(graphql.schema.GraphQLScalarType) InputObjectTypeDefinition(graphql.language.InputObjectTypeDefinition) GraphQLType(graphql.schema.GraphQLType) ArrayList(java.util.ArrayList) LinkedHashMap(java.util.LinkedHashMap) UnionTypeDefinition(graphql.language.UnionTypeDefinition) GraphQLSchema(graphql.schema.GraphQLSchema) GraphQLTypeUtil(graphql.schema.GraphQLTypeUtil) DeprecatedDirective(graphql.Directives.DeprecatedDirective) GraphQLAppliedDirectiveArgument(graphql.schema.GraphQLAppliedDirectiveArgument) Assert(graphql.Assert) DirectivesUtil(graphql.DirectivesUtil) ScalarTypeDefinition(graphql.language.ScalarTypeDefinition) EscapeUtil.escapeJsonString(graphql.util.EscapeUtil.escapeJsonString) DEFAULT_FIELD_VISIBILITY(graphql.schema.visibility.DefaultGraphqlFieldVisibility.DEFAULT_FIELD_VISIBILITY) Optional.ofNullable(java.util.Optional.ofNullable) StringWriter(java.io.StringWriter) GraphQLOutputType(graphql.schema.GraphQLOutputType) Document(graphql.language.Document) Collectors.toList(java.util.stream.Collectors.toList) PublicApi(graphql.PublicApi) Comparator(java.util.Comparator) GraphQLAppliedDirective(graphql.schema.GraphQLAppliedDirective)

Aggregations

GraphQLAppliedDirective (graphql.schema.GraphQLAppliedDirective)12 GraphQLDirective (graphql.schema.GraphQLDirective)12 ArrayList (java.util.ArrayList)11 GraphQLArgument (graphql.schema.GraphQLArgument)10 GraphQLObjectType (graphql.schema.GraphQLObjectType)10 GraphQLSchema (graphql.schema.GraphQLSchema)10 GraphQLType (graphql.schema.GraphQLType)10 List (java.util.List)10 GraphQLEnumType (graphql.schema.GraphQLEnumType)9 GraphQLEnumValueDefinition (graphql.schema.GraphQLEnumValueDefinition)9 GraphQLFieldDefinition (graphql.schema.GraphQLFieldDefinition)9 GraphQLInputObjectField (graphql.schema.GraphQLInputObjectField)9 GraphQLInputObjectType (graphql.schema.GraphQLInputObjectType)9 GraphQLInputType (graphql.schema.GraphQLInputType)9 GraphQLInterfaceType (graphql.schema.GraphQLInterfaceType)9 GraphQLNamedOutputType (graphql.schema.GraphQLNamedOutputType)9 GraphQLScalarType (graphql.schema.GraphQLScalarType)9 GraphQLUnionType (graphql.schema.GraphQLUnionType)9 LinkedHashMap (java.util.LinkedHashMap)9 Map (java.util.Map)9