Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@contractql/cli

franleweb7MIT2.0.5

ContractQL | Creator ===

readme

ContractQL | Creator

Sync

Syncs a schema to its relative files:

  • a Typescript file with all the Graphql definitions translated to Typescript
  • resolver files in typescript resolving Graphql definitions
  • client queries and mutation files
  • React files with Apollo
contractql sync schema.graphql

Sync options

--resolvers-dir=STRING
--schema-dir=STRING
--ts-file=STRING
--plugins=STRING(separated by comas)