View Source argo_graphql_language_value (argo v1.0.1)

Summary

Types

-type inner() ::
    {variable, argo_graphql_language_variable:t()} |
    null |
    {float, float()} |
    {int, integer()} |
    {string, argo_graphql_language_string_value:t()} |
    {boolean, boolean()} |
    {enum, argo_graphql_language_enum_value:t()} |
    {list, argo_graphql_language_list_value:t()} |
    {object, argo_graphql_language_object_value:t()}.
-type t() :: #argo_graphql_language_value{}.

Functions

Link to this function

boolean(Boolean, Location)

View Source
-spec boolean(Boolean, Location) -> Value
           when Boolean :: boolean(), Location :: erl_anno:location(), Value :: t().
Link to this function

enum(EnumValue, Location)

View Source
-spec enum(EnumValue, Location) -> Value
        when
            EnumValue :: argo_graphql_language_enum_value:t(),
            Location :: erl_anno:location(),
            Value :: t().
-spec float(Float, Location) -> Value
         when Float :: float(), Location :: erl_anno:location(), Value :: 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 int(Int, Location) -> Value when Int :: integer(), Location :: erl_anno:location(), Value :: t().
Link to this function

list(ListValue, Location)

View Source
-spec list(ListValue, Location) -> Value
        when
            ListValue :: argo_graphql_language_list_value:t(),
            Location :: erl_anno:location(),
            Value :: t().
-spec null(Location) -> Value when Location :: erl_anno:location(), Value :: t().
Link to this function

object(ObjectValue, Location)

View Source
-spec object(ObjectValue, Location) -> Value
          when
              ObjectValue :: argo_graphql_language_object_value:t(),
              Location :: erl_anno:location(),
              Value :: t().
Link to this function

string(String, Location)

View Source
-spec string(String, Location) -> Value
          when String :: unicode:unicode_binary(), Location :: erl_anno:location(), Value :: t().
Link to this function

variable(Variable, Location)

View Source
-spec variable(Variable, Location) -> Value
            when
                Variable :: argo_graphql_language_variable:t(),
                Location :: erl_anno:location(),
                Value :: t().