UNPKG

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