Packages

Code First GraphQL library for Gleam

Current section

Files

Jump to
mochi include mochi@types_TypeFieldWithArgs.hrl
Raw

include/mochi@types_TypeFieldWithArgs.hrl

-record(type_field_with_args, {
name :: binary(),
description :: gleam@option:option(binary()),
field_type :: mochi@schema:field_type(),
args :: list(mochi@schema:argument_definition()),
resolver :: fun((any(), mochi@args:args(), mochi@schema:execution_context()) -> {ok,
gleam@dynamic:dynamic_()} |
{error, binary()}),
is_deprecated :: boolean(),
deprecation_reason :: gleam@option:option(binary())
}).