graphql-mongodb-projection

JSON →
library 1.1.1 ·javascript maintenance
verified Jun 5, 2026

Generates MongoDB projection objects from GraphQL resolve info, enabling automatic field selection based on GraphQL queries. Version 1.1.1 (latest) is a mature, stable package with no recent releases. It supports fields, inline fragments, fragment spreads, and the Relay Edge Node pattern. Differentiators include lightweight zero-dependency implementation (only peer dependency on graphql) and simple integration with MongoDB find operations. The package is unmaintained since 2017 but remains functional for projects using older GraphQL versions.