UNPKG

openapi-to-graphql-lxwang2

Version:

Generates a GraphQL schema for a given OpenAPI Specification (OAS)

21 lines (20 loc) 717 B
import { Operation } from './types/operation'; import { ResolveFunction } from './types/graphql'; import { PreprocessingData } from './types/preprocessing_data'; import * as NodeRequest from 'request'; declare type GetResolverParams = { operation: Operation; argsFromLink?: { [key: string]: string; }; payloadName?: string; data: PreprocessingData; baseUrl?: string; requestOptions?: NodeRequest.OptionsWithUrl; }; /** * Creates and returns a resolver function that performs API requests for the * given GraphQL query */ export declare function getResolver({ operation, argsFromLink, payloadName, data, baseUrl, requestOptions }: GetResolverParams): ResolveFunction; export {};