1 | import type { FieldNode, FragmentDefinitionNode, InlineFragmentNode, GraphQLResolveInfo, GraphQLOutputType } from '../graphql';
|
2 | export declare type ProjectionType = {
|
3 | [fieldName: string]: any;
|
4 | };
|
5 | export declare type ProjectionNode = {
|
6 | [fieldName: string]: any;
|
7 | };
|
8 | export declare function getProjectionFromAST(info: GraphQLResolveInfo, fieldNode?: FieldNode | InlineFragmentNode | FragmentDefinitionNode): ProjectionType;
|
9 | export declare function getProjectionFromASTQuery(info: GraphQLResolveInfo, fieldNode?: FieldNode | InlineFragmentNode | FragmentDefinitionNode): ProjectionType;
|
10 | export declare const getProjectionFromASTquery: typeof getProjectionFromASTQuery;
|
11 | export declare function getFlatProjectionFromAST(info: GraphQLResolveInfo, fieldNodes?: FieldNode | InlineFragmentNode | FragmentDefinitionNode): Record<any, any>;
|
12 | export declare function extendByFieldProjection(returnType: GraphQLOutputType, projection: ProjectionType): ProjectionType;
|
13 |
|
\ | No newline at end of file |