UNPKG

openapi-to-graphql-nullable

Version:

Fork of openapi-to-graphql that fixes nullable handling. Published to NPM since there's no other easy way to consume a Lerna package. Unmaintained.

17 lines (16 loc) 739 B
/** * Functions to create viewers that allow users to pass credentials to resolve * functions used by OpenAPI-to-GraphQL. */ import { GraphQLFieldConfig } from 'graphql'; import { GraphQLOperationType } from './types/graphql'; import { PreprocessingData } from './types/preprocessing_data'; /** * Load the field object in the appropriate root object * * i.e. inside either rootQueryFields/rootMutationFields or inside * rootQueryFields/rootMutationFields for further processing */ export declare function createAndLoadViewer<TSource, TContext, TArgs>(queryFields: object, operationType: GraphQLOperationType, data: PreprocessingData<TSource, TContext, TArgs>): { [key: string]: GraphQLFieldConfig<TSource, TContext, TArgs>; };