graphql-fields-list

JSON →
library 2.3.0 ·javascript
verified Jun 7, 2026

Utility library for extracting requested field names from GraphQL resolver info objects. Version 2.3.0 is current stable; released actively with semver. It parses GraphQLResolveInfo to return lists, maps (including nested), or MongoDB-like projection objects. Differentiators: simple API, built-in TypeScript types, and support for directives and field aliases. Alternatives like graphql-fields and graphql-parse-resolve-info have different APIs or are less maintained.