UNPKG

graphql-map-selections

Version:

A package to map selections from graphql resolver info object

5 lines (4 loc) 230 B
import { GraphQLResolveInfo } from "graphql"; declare type MapSelectionsReturnType = Record<string, boolean | any>; declare const mapSelections: (info: GraphQLResolveInfo) => MapSelectionsReturnType; export default mapSelections;