Packages

Code First GraphQL library for Gleam

Current section

Files

Jump to
mochi include mochi@query_Op.hrl
Raw

include/mochi@query_Op.hrl

-record(op, {
name :: binary(),
description :: gleam@option:option(binary()),
op_resolver :: mochi@query:internal_resolver(any()),
result_encoder :: fun((any()) -> gleam@dynamic:dynamic_()),
arg_definitions :: list(mochi@query:arg_def()),
return_type :: mochi@schema:field_type(),
guards :: list(fun((mochi@schema:execution_context()) -> {ok, nil} |
{error, binary()})),
kind :: any()
}).