graphql-projection
JSON →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.
Traffic · last 30 days stale · no recent hits
total hits 12
actors 4 distinct systems
last hit 16d ago AhrefsBot
top countries 🇺🇸 United States · 🇸🇬 Singapore · 🇬🇧 United Kingdom · 🇨🇦 Canada · 🇫🇷 France
Resources
packagegraphql-projection ↗
API endpoints
full doc /v1/registry/graphql-projection