mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
9 lines
343 B
TypeScript
9 lines
343 B
TypeScript
import { GraphQLResolveInfo } from 'graphql';
|
|
import graphqlFields = require('graphql-fields');
|
|
|
|
const info = ({} as any) as GraphQLResolveInfo;
|
|
|
|
const fieldsWithSubFieldsArgs = graphqlFields(info, {}, { processArguments: true });
|
|
const fieldsWithoutTypeName = graphqlFields(info, {}, { excludedFields: ['__typename'] });
|
|
graphqlFields(info);
|