Preparing for system design interviews?  Try bugzed.com →

graphql-projection

JSON →
library 0.1.2 ·javascript maintenance
verified Jun 7, 2026

A utility that creates a MongoDB projection object from a GraphQL query's resolve info, enabling efficient MongoDB queries by selecting only the fields requested in the GraphQL query. Version 0.1.2 is the latest and likely final release, with no recent updates. It supports custom projections for computed fields via a `projection` property in GraphQL type definitions. Differentiators include a simple API (one function), support for custom projections as arrays or space-separated strings, and no runtime dependencies aside from graphql peer. However, it is not actively maintained and lacks TypeScript definitions or modern ESM support.

total hits 12
actors 4 distinct systems
last hit 16d ago AhrefsBot
GPTBot
3
Amazonbot
3
Humans
4

top countries 🇺🇸 United States · 🇸🇬 Singapore · 🇬🇧 United Kingdom · 🇨🇦 Canada · 🇫🇷 France