View Source argo_graphql_directives (argo v1.0.4)

Summary

Types

-type t() :: #argo_graphql_directives{directives :: [argo_graphql_directive:t()]}.

Functions

Link to this function

add_directive(Directives, Directive)

View Source
-spec add_directive(Directives, Directive) -> Directives
                 when Directives :: t(), Directive :: argo_graphql_directive:t().
Link to this function

find_directive_non_repeatable(Directives, DirectiveName)

View Source
-spec find_directive_non_repeatable(Directives, DirectiveName) -> {ok, Directive} | error
                                 when
                                     Directives :: t(),
                                     DirectiveName :: argo_types:name(),
                                     Directive :: argo_graphql_directive:t().
Link to this function

find_directive_repeatable(Directives, DirectiveName)

View Source
-spec find_directive_repeatable(Directives, DirectiveName) -> {ok, DirectiveList} | error
                             when
                                 Directives :: t(),
                                 DirectiveName :: argo_types:name(),
                                 DirectiveList :: [Directive],
                                 Directive :: argo_graphql_directive:t().
Link to this function

format(Formatter1, Type)

View Source
-spec format(Formatter1, Type :: t()) -> Formatter2
          when Formatter1 :: argo_graphql_formatter:t(), Formatter2 :: argo_graphql_formatter:t().
-spec format_error(dynamic(), dynamic()) -> dynamic().
Link to this function

from_language(LanguageDirectives)

View Source
-spec from_language(LanguageDirectives) -> Directives
                 when
                     LanguageDirectives :: argo_graphql_language_directives:t(), Directives :: t().
Link to this function

get_directive_list(Directives, DirectiveName)

View Source
-spec get_directive_list(Directives, DirectiveName) -> DirectiveList
                      when
                          Directives :: t(),
                          DirectiveName :: argo_types:name(),
                          DirectiveList :: [Directive],
                          Directive :: argo_graphql_directive:t().
Link to this function

get_directive_non_repeatable(Directives, DirectiveName)

View Source
-spec get_directive_non_repeatable(Directives, DirectiveName) -> Directive
                                when
                                    Directives :: t(),
                                    DirectiveName :: argo_types:name(),
                                    Directive :: argo_graphql_directive:t().
Link to this function

get_directive_repeatable(Directives, DirectiveName)

View Source
-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().