View Source argo_graphql_directives (argo v1.0.4)
Summary
Types
-type t() :: #argo_graphql_directives{directives :: [argo_graphql_directive:t()]}.
Functions
-spec add_directive(Directives, Directive) -> Directives when Directives :: t(), Directive :: argo_graphql_directive:t().
-spec find_directive_non_repeatable(Directives, DirectiveName) -> {ok, Directive} | error when Directives :: t(), DirectiveName :: argo_types:name(), Directive :: argo_graphql_directive:t().
-spec find_directive_repeatable(Directives, DirectiveName) -> {ok, DirectiveList} | error when Directives :: t(), DirectiveName :: argo_types:name(), DirectiveList :: [Directive], Directive :: argo_graphql_directive:t().
-spec format(Formatter1, Type :: t()) -> Formatter2 when Formatter1 :: argo_graphql_formatter:t(), Formatter2 :: argo_graphql_formatter:t().
-spec from_language(LanguageDirectives) -> Directives when LanguageDirectives :: argo_graphql_language_directives:t(), Directives :: t().
-spec get_directive_list(Directives, DirectiveName) -> DirectiveList when Directives :: t(), DirectiveName :: argo_types:name(), DirectiveList :: [Directive], Directive :: argo_graphql_directive:t().
-spec get_directive_non_repeatable(Directives, DirectiveName) -> Directive when Directives :: t(), DirectiveName :: argo_types:name(), Directive :: argo_graphql_directive:t().
-spec get_directive_repeatable(Directives, DirectiveName) -> DirectiveList when Directives :: t(), DirectiveName :: argo_types:name(), DirectiveList :: [Directive], Directive :: argo_graphql_directive:t().
-spec new() -> Directives when Directives :: t().