12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- import type { Maybe } from './jsutils/Maybe';
- import type { Source } from './language/source';
- import type {
- GraphQLFieldResolver,
- GraphQLTypeResolver,
- } from './type/definition';
- import type { GraphQLSchema } from './type/schema';
- import type { ExecutionResult } from './execution/execute';
- export interface GraphQLArgs {
- schema: GraphQLSchema;
- source: string | Source;
- rootValue?: unknown;
- contextValue?: unknown;
- variableValues?: Maybe<{
- readonly [variable: string]: unknown;
- }>;
- operationName?: Maybe<string>;
- fieldResolver?: Maybe<GraphQLFieldResolver<any, any>>;
- typeResolver?: Maybe<GraphQLTypeResolver<any, any>>;
- }
- export declare function graphql(args: GraphQLArgs): Promise<ExecutionResult>;
- export declare function graphqlSync(args: GraphQLArgs): ExecutionResult;
|