graphql-field-mask

JSON →
library 0.2.1 ·javascript
verified Jun 7, 2026

Generate google.protobuf.FieldMask paths from a GraphQL resolve info object. Version 0.2.1 (as of early 2025), limited release history. Converts the requested GraphQL fields into a list of dot-notation paths that can be used with FieldMask. Supports custom field name mapping (e.g., camelCase to snake_case), custom scalars (e.g., Date fields expanded to day/month/year), extra dependent fields, and abstract types (e.g., oneof). Integrates with ProtoNexus for protobuf-aware GraphQL schemas. Requires GraphQL ^15.0.0 || ^16.0.0 as a peer dependency. Ships TypeScript definitions.