context() = #{atom() => any()}
defer_map() = #{worker => pid(), timeout => non_neg_integer(), apply => [function()]}
directive() = #directive{id = graphql:name(), args = #{binary() => term()} | [{any(), any()}], schema = any()}
document() = #document{definitions = [any()]}
enum_type() = #enum_type{id = binary(), description = binary(), resolve_module = mod(), directives = [graphql:directive()], values = #{integer() => enum_value()}}
enum_value() = #enum_value{val = binary(), description = binary(), directives = [graphql:directive()], deprecation = undefined | binary()}
json() = number() | binary() | true | false | null | #{binary() | atom() => json()} | [json()]
mod() = atom()
param_context() = json()
resolver() = fun((ctx, term(), binary(), resolver_args()) -> term())
resolver_args() = #{binary() => term()}
result() = {ok, term()} | {error, term()} | {defer, token()} | {defer, token(), defer_map()}
scalar_type() = #scalar_type{id = binary(), description = binary(), directives = [graphql:directive()], resolve_module = mod()}
schema_arg() = #schema_arg{ty = schema_type(), default = any(), description = binary(), directives = [graphql:directive()]}
schema_base_type() = scalar_type() | enum_type() | binary()
schema_definition() = {atom(), #{atom() => term()}}
schema_field() = #schema_field{ty = schema_type(), description = binary() | undefined, resolve = undefined | resolver(), deprecation = undefined | binary(), directives = [graphql:directive()], args = #{binary() => schema_arg()}}
schema_type() = {non_null, schema_base_type()} | {non_null, {list, schema_base_type()}} | {list, schema_base_type()} | schema_base_type()
token() = {'$graphql_token', pid(), reference(), reference()}
| execute/1 | |
| execute/2 | |
| format_errors/2 | |
| insert_root/1 | |
| insert_schema_definition/1 | insert_schema_definition/1 loads a schema definition into the Graph Schema. |
| load_schema/2 | |
| map/2 | |
| monitor/2 | |
| parse/1 | |
| reply_cast/2 | |
| sync/3 | |
| throw/1 | |
| token/1 | |
| type_check/1 | |
| type_check_params/3 | |
| validate/1 | |
| validate_schema/0 |
execute(AST::document()) -> #{atom() => json()}
execute(Ctx::context(), AST::document()) -> #{atom() => json()}
format_errors(Ctx, Errs) -> any()
insert_root(Defn::schema_definition()) -> ok
insert_schema_definition/1 loads a schema definition into the Graph Schema
load_schema(Mapping, Input) -> any()
map(F, X2) -> any()
parse(Input::binary() | string()) -> {ok, document()} | {error, {scanner_error | parser_error, term()}}
reply_cast(X1::token(), Data::term()) -> ok
sync(X1, Pid, Msg) -> any()
throw(Msg) -> any()
token(X1::#{defer_process := pid(), defer_request_id := reference()}) -> token()
type_check(AST::document()) -> {ok, #{atom() => term()}}
type_check_params(FunEnv::any(), OpName::any(), Vars::any()) -> param_context()
validate(AST::document()) -> ok | {error, term()}
validate_schema() -> ok | {error, any()}
Generated by EDoc