View Source argo_graphql_value_const (argo v1.0.1)

Summary

Types

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

Functions

-spec boolean(Boolean) -> ValueConst when Boolean :: boolean(), ValueConst :: t().
-spec enum(EnumValue) -> ValueConst when EnumValue :: argo_types:name(), ValueConst :: t().
-spec float(Float) -> ValueConst when Float :: float(), ValueConst :: 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_const:t(), Value :: t().
-spec int(Int) -> ValueConst when Int :: integer(), ValueConst :: t().
-spec list(ListValueConst) -> ValueConst when ListValueConst :: list_value_const(), ValueConst :: t().
-spec null() -> ValueConst when ValueConst :: t().
Link to this function

object(ObjectValueConst)

View Source
-spec object(ObjectValueConst) -> ValueConst
          when ObjectValueConst :: object_value_const(), ValueConst :: t().
-spec string(StringValue) -> ValueConst when StringValue :: unicode:unicode_binary(), ValueConst :: t().