graphql-fields-to-relations

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

A GraphQL utility that extracts relation strings from GraphQL query fields for use with MikroORM's populate feature. Version 1.0.5 is the latest stable release; the package is maintained but sees infrequent updates. It specifically targets MikroORM users who need to dynamically populate relations based on client queries, reducing over-fetching. Unlike generic graphql-fields packages, this one outputs nested relation paths in the format MikroORM expects.