Skip to content

Native, BuckleScript 6 and required arguments validation

Compare
Choose a tag to compare
@baransu baransu released this 08 Oct 11:42
· 777 commits to master since this release

Installation

yarn add @baransu/[email protected] --dev
npm install @baransu/[email protected] --saveDev

Changes

  • Native Reason support (@baransu )
    Just update your esy.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 your bsconfig.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!