View Source argo_graphql_language_type_definition (argo v1.0.2)
Summary
Functions
Schema extensions without additional operation type definitions must not be followed by a { (such as a query shorthand) to avoid parsing ambiguity. The same limitation applies to the type definitions and extensions below.
Types
-type inner() :: argo_graphql_language_scalar_type_definition:t() | argo_graphql_language_object_type_definition:t() | argo_graphql_language_interface_type_definition:t() | argo_graphql_language_union_type_definition:t() | argo_graphql_language_enum_type_definition:t() | argo_graphql_language_input_object_type_definition:t().
-type t() :: #argo_graphql_language_type_definition{}.
Functions
-spec enum_type_definition(EnumTypeDefinition, Location) -> TypeDefinition when EnumTypeDefinition :: argo_graphql_language_enum_type_definition:t(), Location :: erl_anno:location(), TypeDefinition :: t().
-spec format(Formatter1, Type :: t()) -> Formatter2 when Formatter1 :: argo_graphql_formatter:t(), Formatter2 :: argo_graphql_formatter:t().
-spec input_object_type_definition(InputObjectTypeDefinition, Location) -> TypeDefinition when InputObjectTypeDefinition :: argo_graphql_language_input_object_type_definition:t(), Location :: erl_anno:location(), TypeDefinition :: t().
-spec interface_type_definition(InterfaceTypeDefinition, Location) -> TypeDefinition when InterfaceTypeDefinition :: argo_graphql_language_interface_type_definition:t(), Location :: erl_anno:location(), TypeDefinition :: t().
-spec is_ambiguous(Definition) -> boolean() when Definition :: t().
-spec object_type_definition(ObjectTypeDefinition, Location) -> TypeDefinition when ObjectTypeDefinition :: argo_graphql_language_object_type_definition:t(), Location :: erl_anno:location(), TypeDefinition :: t().
-spec scalar_type_definition(ScalarTypeDefinition, Location) -> TypeDefinition when ScalarTypeDefinition :: argo_graphql_language_scalar_type_definition:t(), Location :: erl_anno:location(), TypeDefinition :: t().
-spec union_type_definition(UnionTypeDefinition, Location) -> TypeDefinition when UnionTypeDefinition :: argo_graphql_language_union_type_definition:t(), Location :: erl_anno:location(), TypeDefinition :: t().