strapi-flatten-graphql
JSON →A utility library (version 0.1.0) that flattens nested Strapi v4 GraphQL responses, removing the 'attributes' wrapper and preserving 'id' at all levels. It includes TypeScript typings and is designed to work alongside graphql-codegen. Currently requires every level to request 'id'. This is an early-stage, single-contributor project with limited updates. Differentiators: focused solely on Strapi v4 GraphQL flattening with type safety, whereas alternatives like lodash/ramda require manual mapping.
Resources
packagestrapi-flatten-graphql ↗
API endpoints
full doc /v1/registry/strapi-flatten-graphql