View Source argo_graphql_value (argo v1.0.6)
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{inner :: argo_graphql_value:inner()}.
Functions
-spec enum(EnumValue) -> Value when EnumValue :: argo_types:name(), Value :: t().
-spec format(Formatter1, Type :: t()) -> Formatter2 when Formatter1 :: argo_graphql_formatter:t(), Formatter2 :: argo_graphql_formatter:t().
-spec from_language(LanguageValue) -> Value when LanguageValue :: argo_graphql_language_value:t(), 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().