@doseofted/strapi-graphql-flatten
TypeScript icon, indicating that this package has built-in type declarations

0.0.5 • Public • Published

Strapi GraphQL Flatten

Turn a Strapi V4 GraphQL response into a simpler structure resembling Strapi V3.

See discussion

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 T for a response (i.e. strapiGraphqlFlatten<T>), transformations are not reflected in TypeScript.

Development

Develop the project like so:

  • corepack enable
  • pnpm install
  • pnpm dev

Test the project with pnpm test (or pnpm testing to watch/rerun tests).

Readme

Keywords

none

Package Sidebar

Install

npm i @doseofted/strapi-graphql-flatten

Weekly Downloads

3

Version

0.0.5

License

MIT

Unpacked Size

16.7 kB

Total Files

7

Last publish

Collaborators

  • doseofted