View Source argo_graphql_value (argo v1.0.3)

Summary

Types

-type inner() ::
    {variable, argo_types:name()} |
    null |
    {float, float()} |
    {int, integer()} |
    {string, unicode:unicode_binary()} |
    {boolean, boolean()} |
    {enum, argo_types:name()} |
    {list, list_value()} |
    {object, object_value()}.
-type list_value() :: [argo_graphql_value:t()].
-type object_value() :: argo_index_map:t(argo_types:name(), argo_graphql_value:t()).
-type t() :: #argo_graphql_value{}.

Functions

-spec boolean(Boolean) -> Value when Boolean :: boolean(), Value :: t().
-spec enum(EnumValue) -> Value when EnumValue :: argo_types:name(), Value :: t().
-spec float(Float) -> Value when Float :: float(), 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().
Link to this function

from_language(LanguageValue)

View Source
-spec from_language(LanguageValue) -> Value
                 when LanguageValue :: argo_graphql_language_value:t(), Value :: t().
-spec int(Int) -> Value when Int :: integer(), Value :: t().
-spec list(ListValue) -> Value when ListValue :: list_value(), Value :: t().
-spec null() -> Value when Value :: t().
-spec object(ObjectValue) -> Value when ObjectValue :: object_value(), Value :: t().
-spec string(StringValue) -> Value when StringValue :: unicode:unicode_binary(), Value :: t().
-spec variable(Variable) -> Value when Variable :: argo_types:name(), Value :: t().