graphql-mocks
Version:
Tools for setting up graphql test resolvers
16 lines (15 loc) • 515 B
TypeScript
import { GraphQLResolveInfo } from 'graphql';
declare type ResolverStash = {
parent: unknown;
args: Record<string, unknown>;
context: Record<string, unknown>;
info: GraphQLResolveInfo;
result: unknown;
};
export declare const stashKey: unique symbol;
export declare function stashFor(ref: {
[key: string]: unknown;
[stashKey]: ResolverStash | undefined;
}): ResolverStash | undefined;
export declare const stashStateWrapper: import("../resolver/types").NamedWrapper<"FIELD">;
export {};