Parses GraphQL queries and returns an array of flat path strings for each node, respecting fragments and aliases. v1.0.8 (latest), zero dependencies, ships TypeScript types. Differentiates by deduplicating merged fields while preserving aliased field multiplicity. Release cadence: infrequent, stable.
npm install gql-pathifyNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Parse a simple GraphQL query and log the resulting path array with depth limits.
Use string manipulation (e.g., .split('.')) to convert to array if needed.If deduplication is desired, apply Set or filter manually after calling gqlPathify.
Use dynamic import() or update project to ESM mode.
Use import gqlPathify from 'gql-pathify' instead of const gqlPathify = require('gql-pathify').Run npm install gql-pathify or yarn add gql-pathify.
No dependency data recorded yet.