WrapQuery.d.ts 541 B

1234567891011
  1. import { SelectionNode, SelectionSetNode } from 'graphql';
  2. import { Transform, Request, Result } from '../Interfaces';
  3. export declare type QueryWrapper = (subtree: SelectionSetNode) => SelectionNode | SelectionSetNode;
  4. export default class WrapQuery implements Transform {
  5. private wrapper;
  6. private extractor;
  7. private path;
  8. constructor(path: Array<string>, wrapper: QueryWrapper, extractor: (result: any) => any);
  9. transformRequest(originalRequest: Request): Request;
  10. transformResult(originalResult: Result): Result;
  11. }