0.0.5 • Published 2 years ago
@doseofted/strapi-graphql-flatten v0.0.5
Strapi GraphQL Flatten
Turn a Strapi V4 GraphQL response into a simpler structure resembling Strapi V3.
Usage Notes
const simplifiedResponse = strapiGraphqlFlatten(myStrapiV4Response, true)Some issues that are not resolved:
- Tests have not been written for this tool.
- If given a type
Tfor a response (i.e.strapiGraphqlFlatten<T>), transformations are not reflected in TypeScript.
Development
Develop the project like so:
corepack enablepnpm installpnpm dev
Test the project with pnpm test (or pnpm testing to watch/rerun tests).