View Source argo_graphql_directive_definition (argo v1.0.1)
Summary
Types
-type directive_location() :: argo_graphql_language_executable_directive_location:name() | argo_graphql_language_type_system_directive_location:name().
-type t() :: #argo_graphql_directive_definition{}.
Functions
Link to this function
add_argument_definition(DirectiveDefinition, InputValueDefinition)
View Source-spec add_argument_definition(DirectiveDefinition, InputValueDefinition) -> DirectiveDefinition when DirectiveDefinition :: t(), InputValueDefinition :: argo_graphql_input_value_definition:t().
Link to this function
add_argument_definitions(DirectiveDefinition, InputValueDefinitionList)
View Source-spec add_argument_definitions(DirectiveDefinition, InputValueDefinitionList) -> DirectiveDefinition when DirectiveDefinition :: t(), InputValueDefinitionList :: [InputValueDefinition], InputValueDefinition :: argo_graphql_input_value_definition:t().
-spec add_directive_location(DirectiveDefinition, DirectiveLocation) -> DirectiveDefinition when DirectiveDefinition :: t(), DirectiveLocation :: directive_location().
Link to this function
add_directive_locations(DirectiveDefinition, DirectiveLocationList)
View Source-spec add_directive_locations(DirectiveDefinition, DirectiveLocationList) -> DirectiveDefinition when DirectiveDefinition :: t(), DirectiveLocationList :: [DirectiveLocation], DirectiveLocation :: directive_location().
-spec builtin(DirectiveName) -> {ok, DirectiveDefinition} | error when DirectiveName :: argo_types:name(), DirectiveDefinition :: t().
-spec format(Formatter1, Type :: t()) -> Formatter2 when Formatter1 :: argo_graphql_formatter:t(), Formatter2 :: argo_graphql_formatter:t().
-spec from_language(LanguageDirectiveDefinition) -> DirectiveDefinition when LanguageDirectiveDefinition :: argo_graphql_language_directive_definition:t(), DirectiveDefinition :: t().
-spec new(Name, Repeatable) -> DirectiveDefinition when Name :: argo_types:name(), Repeatable :: boolean(), DirectiveDefinition :: t().
-spec set_description(DirectiveDefinition, OptionDescription) -> DirectiveDefinition when DirectiveDefinition :: t(), OptionDescription :: none | {some, unicode:unicode_binary()}.