GraphQL language primitives for ReScript/ReasonML written in ReasonML
MIT License
Bot releases are hidden (Show)
There has been a lot of new features in version 1.0 of graphql-ppx
. Below some
of the main changes. After 1.0 we are going to record a more detailed changelog.
ppxCustom
instead of bsDecoder
ppxAs
bsconfig.json
graphql
extension points in interface filesPublished by jfrolich over 4 years ago
This is a further breaking change because it introduces a "raw" type (Query.Raw.t
). This is the type of the GraphQL response that is compatible with the raw JSON response. This is a milestone towards a serialize function (converting between Query.t
and Query.Raw.t
, basically the opposite of parse
).
If you want to try this out with Apollo check out this PR on reason-apollo-hooks
; https://github.com/Astrocoders/reason-apollo-hooks/pull/117.
Published by baransu about 5 years ago
yarn add @baransu/[email protected] --dev
npm install @baransu/[email protected] --saveDev
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!
bsconfig.json
with:"ppx-flags": ["@baransu/graphql_ppx_re/ppx6"]
Published by baransu about 5 years ago
Published by baransu about 5 years ago
Published by baransu about 5 years ago
Published by baransu about 5 years ago
Published by baransu about 5 years ago
Published by baransu about 5 years ago
Published by baransu about 5 years ago
Published by baransu about 5 years ago
Published by baransu about 5 years ago
Published by baransu about 5 years ago
Published by baransu about 5 years ago