@graphql-mesh/transport-rest
Version:
13 lines (12 loc) • 518 B
text/typescript
import { GraphQLSchema } from 'graphql';
import { Logger, MeshFetch, MeshPubSub } from '@graphql-mesh/types';
export interface ProcessDirectiveArgs {
pubsub?: MeshPubSub;
logger?: Logger;
globalFetch?: MeshFetch;
endpoint?: string;
timeout?: number;
operationHeaders?: Record<string, string>;
queryParams?: Record<string, any>;
}
export declare function processDirectives(schema: GraphQLSchema, { globalFetch, logger, pubsub, ...extraGlobalOptions }?: ProcessDirectiveArgs): GraphQLSchema;