Native, BuckleScript 6 and required arguments validation
Installation
yarn add @baransu/[email protected] --dev
npm install @baransu/[email protected] --saveDev
Changes
- Native Reason support (@baransu )
Just update youresy.json
file with
{
"dependencies": {
"@baransu/graphql_ppx_re": "*"
},
"resolutions": {
"@baransu/graphql_ppx_re": "baransu/graphql_ppx_re:esy.json#<use latest stable commit from master>"
}
}
and add
(preprocess (pps graphql_ppx))
to your dune
file. Now you're ready to go!
- BuckleScript 6 support (@baransu @Schmavery)
Required binaries are distributed alongsite BuckleScript 5 binaries. Just update yourbsconfig.json
with:
"ppx-flags": ["@baransu/graphql_ppx_re/ppx6"]
- Validate required arguments on any field (@baransu)
All fields are validated for all required are provided in a query. Slightly reduces the chance of runtime error when query is sent to the server!