zod-to-gql
v0.1.0
Published
Zod to GraphQL converter
Downloads
3
Readme
Zod to GraphQL converter
Current limitations:
- many unsupported type mappings
- query does not yet contain any parameters
- no mutations generated
- order of types are according to mapping provided
Install Package
yarn install zod-to-gql
Run tests
yarn install
yarn test
Usage example
Run the minimal example:
yarn run ts-node ./src/examples/minimal.ts
Run an example where the types are used in a simple Apollo server:
yarn run ts-node ./src/examples/apolloServer.ts