GraphQLFieldResolver<Value, P> typedef

GraphQLFieldResolver<Value, P> = FutureOr<Value?> Function(P parent, Ctx<P> ctx)

Typedef for a function that resolves the value of a GraphQLObjectField, whether asynchronously or not.

Implementation

typedef GraphQLFieldResolver<Value, P> = FutureOr<Value?> Function(
    P parent, Ctx<P> ctx);