1.0.3 • Published 5 years ago
@ovidb/graphql-to-yup v1.0.3
Plugin for graphql-codegen to Generate Yup schema from GraphQL
Currently only works with input types
##Usage
Install
If you want to run it from your project:
npm install --save-dev @ovidb/graphql-to-yupyou could also install it globally:
npm install -g @ovidb/graphql-to-yupSetup using codegen.yml
You will need to create a codegen.yml file
schema: point/to/your/schema.graphql
generates:
the-output-file.js:
plugins:
- @ovidb/graphql-to-yup
config:
inputTypeNames:
- TheTypesYouWantToGenerateSchemaFor
- AnotherInputType