Current section
Files
Jump to
Current section
Files
src/apollo@t.erl
-module(apollo@t).
-compile([no_auto_import, nowarn_unused_vars]).
-export([int/0, string/0, float/0, bool/0]).
-export_type([value/0, schema/1]).
-type value() :: any().
-type schema(FDM) :: any() | {gleam_phantom, FDM}.
-spec int() -> value().
int() ->
apollo_t:new_value(<<"Int"/utf8>>).
-spec string() -> value().
string() ->
apollo_t:new_value(<<"String"/utf8>>).
-spec float() -> value().
float() ->
apollo_t:new_value(<<"Float"/utf8>>).
-spec bool() -> value().
bool() ->
apollo_t:new_value(<<"Bool"/utf8>>).