1 | import { GraphQLSchema, GraphQLObjectType } from 'graphql';
|
2 | import { IResolvers, Operation } from '../Interfaces';
|
3 | import { Transform } from '../transforms/index';
|
4 | export declare type Mapping = {
|
5 | [typeName: string]: {
|
6 | [fieldName: string]: {
|
7 | name: string;
|
8 | operation: Operation;
|
9 | };
|
10 | };
|
11 | };
|
12 | export declare function generateProxyingResolvers(targetSchema: GraphQLSchema, transforms: Array<Transform>, mapping: Mapping): IResolvers;
|
13 | export declare function generateSimpleMapping(targetSchema: GraphQLSchema): Mapping;
|
14 | export declare function generateMappingFromObjectType(type: GraphQLObjectType, operation: Operation): {
|
15 | [fieldName: string]: {
|
16 | name: string;
|
17 | operation: Operation;
|
18 | };
|
19 | };
|