@pothos/plugin-tracing
Version:
A Pothos plugin for tracing and logging resolver invocations
6 lines (5 loc) • 725 B
TypeScript
import type { PothosOutputFieldConfig, SchemaTypes } from '@pothos/core';
import type { GraphQLFieldResolver, GraphQLResolveInfo } from 'graphql';
export type TracingFieldWrapper<Types extends SchemaTypes> = (resolver: GraphQLFieldResolver<unknown, Types["Context"], Record<string, unknown>>, options: Exclude<Types["Tracing"], false | null>, fieldConfig: PothosOutputFieldConfig<Types>) => GraphQLFieldResolver<unknown, Types["Context"], Record<string, unknown>>;
export type TracingFieldOptions<Types extends SchemaTypes, ParentShape, Args extends object> = Types["Tracing"] | ((parent: ParentShape, Args: Args, context: Types["Context"], info: GraphQLResolveInfo) => Types["Tracing"]);
//# sourceMappingURL=types.d.ts.map