1 | import { GraphQLSchema } from 'graphql';
|
2 | import { Request } from '../Interfaces';
|
3 | import { Transform } from './transforms';
|
4 | export default class ReplaceFieldWithFragment implements Transform {
|
5 | private targetSchema;
|
6 | private mapping;
|
7 | constructor(targetSchema: GraphQLSchema, fragments: Array<{
|
8 | field: string;
|
9 | fragment: string;
|
10 | }>);
|
11 | transformRequest(originalRequest: Request): Request;
|
12 | }
|