Module graphql_err

Data Types

field()

field() = #field{id = graphql:name(), args = [#{type := graphql_type(), value := value(), default := undefined | value()}], directives = [any()], selection_set = [any()], alias = undefined | graphql:name(), schema = any()}

frag()

frag() = #frag{id = '...' | graphql:name(), ty = undefined | graphql_base_type(), directives = [graphql:directive()], selection_set = [#field{id = graphql:name(), args = [#{type := graphql_type(), value := value(), default := undefined | value()}], directives = [any()], selection_set = [any()], alias = undefined | graphql:name(), schema = any()}], schema = undefined | any()}

graphql_base_type()

graphql_base_type() = graphql:name() | binary()

graphql_type()

graphql_type() = {non_null, graphql_type()} | {list, graphql_type()} | graphql_base_type()

op()

op() = #op{ty = undefined | operation_type(), id = graphql:name() | 'ROOT', vardefs = [#vardef{id = graphql:name(), ty = graphql_type(), default = undefined | value()}] | #{binary() => #vardef{id = graphql:name(), ty = graphql_type(), default = undefined | value()}}, directives = [graphql:directive()], selection_set = [#field{id = graphql:name(), args = [#{type := graphql_type(), value := value(), default := undefined | value()}], directives = [any()], selection_set = [any()], alias = undefined | graphql:name(), schema = any()} | #frag_spread{id = graphql:name(), directives = [graphql:directive()]}], schema = undefined | any()}

operation_type()

operation_type() = {query, pos_integer()} | {mutation, pos_integer()} | {subscription, pos_integer()}

value()

value() = graphql:name() | null | {int, integer(), pos_integer()} | {float, float(), pos_integer()} | {string, binary(), pos_integer()} | {bool, true | false, pos_integer()} | {enum, binary()} | {list, value()} | {object, [value()]}

Function Index

abort/2
abort/3
crash/2
err/2
format_errors/2
format_ty/1
mk/3
mk/4
path/1

Function Details

abort/2

abort(Path, Msg) -> any()

abort/3

abort(Path::[any()], Phase::any(), Msg::any()) -> no_return()

crash/2

crash(Ctx, Err) -> any()

err/2

err(Ctx, Err) -> any()

format_errors/2

format_errors(Ctx, Errs) -> any()

format_ty/1

format_ty(Enum_type) -> any()

mk/3

mk(Path, Phase, Term) -> any()

mk/4

mk(Path, Phase, Term, Stack) -> any()

path/1

path(Path::Input | [Input]) -> [binary()]


Generated by EDoc