View Source argo_graphql_language_type_extension (argo v1.0.10)
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_extension:t() | argo_graphql_language_object_type_extension:t() | argo_graphql_language_interface_type_extension:t() | argo_graphql_language_union_type_extension:t() | argo_graphql_language_enum_type_extension:t() | argo_graphql_language_input_object_type_extension:t().
-type t() :: #argo_graphql_language_type_extension{location :: erl_anno:location(), inner :: argo_graphql_language_type_extension:inner()}.
Functions
-spec enum_type_extension(EnumTypeExtension, Location) -> TypeExtension when EnumTypeExtension :: argo_graphql_language_enum_type_extension:t(), Location :: erl_anno:location(), TypeExtension :: t().
-spec format(Formatter1, Type :: t()) -> Formatter2 when Formatter1 :: argo_graphql_formatter:t(), Formatter2 :: argo_graphql_formatter:t().
-spec input_object_type_extension(InputObjectTypeExtension, Location) -> TypeExtension when InputObjectTypeExtension :: argo_graphql_language_input_object_type_extension:t(), Location :: erl_anno:location(), TypeExtension :: t().
-spec interface_type_extension(InterfaceTypeExtension, Location) -> TypeExtension when InterfaceTypeExtension :: argo_graphql_language_interface_type_extension:t(), Location :: erl_anno:location(), TypeExtension :: t().
-spec object_type_extension(ObjectTypeExtension, Location) -> TypeExtension when ObjectTypeExtension :: argo_graphql_language_object_type_extension:t(), Location :: erl_anno:location(), TypeExtension :: t().
-spec scalar_type_extension(ScalarTypeExtension, Location) -> TypeExtension when ScalarTypeExtension :: argo_graphql_language_scalar_type_extension:t(), Location :: erl_anno:location(), TypeExtension :: t().
-spec union_type_extension(UnionTypeExtension, Location) -> TypeExtension when UnionTypeExtension :: argo_graphql_language_union_type_extension:t(), Location :: erl_anno:location(), TypeExtension :: t().