graphql-ppx

GraphQL language primitives for ReScript/ReasonML written in ReasonML

MIT License

Stars
257
Committers
31

Bot releases are hidden (Show)

graphql-ppx - Latest Release

Published by jfrolich about 4 years ago

  • ๐Ÿ› remove @ppxConfig directive from query output (b697b83)

  • ๐Ÿ› do not strengthen module type of extended module to prevent type errors like below when the the definition is being extended (546e15f)

This has type:
  MyQuery.t_variables
But somewhere wanted:
  MyQuery.MyQuery_inner.t_variables
graphql-ppx -

Published by jfrolich about 4 years ago

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.

Large changes

  • ๐Ÿš€ ๐Ÿ’ฅ New API, no definition, first class modules and clients can
    extend definitions
  • ๐Ÿš€ ๐Ÿ’ฅ Using records instead of objects
  • ๐Ÿš€ Generating types
  • ๐Ÿš€ Serialization

Other features

  • ๐Ÿš€ Generating a module signature
  • ๐Ÿš€ Support for recursive modules
  • ๐Ÿš€ ๐Ÿ’ฅ Raw types
  • ๐Ÿš€ Leaner parse
  • ๐Ÿš€ ๐Ÿ’ฅ ppxCustom instead of bsDecoder
  • ๐Ÿš€ ppxAs
  • ๐Ÿš€ Better editor support
  • ๐Ÿš€ Better errors
  • ๐Ÿš€ Docstrings
  • ๐Ÿš€ Multiple fragments or operations per extension point
  • ๐Ÿš€ Configuration in bsconfig.json
  • ๐Ÿš€ Tagged template literal support
  • ๐Ÿš€ graphql extension points in interface files
  • ๐Ÿ  Snapshot and compile testing
graphql-ppx -

Published by jfrolich over 4 years ago

graphql-ppx -

Published by jfrolich over 4 years ago

graphql-ppx - 1.0 Beta 6

Published 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.

graphql-ppx - Native, BuckleScript 6 and required arguments validation

Published by baransu about 5 years ago

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!
graphql-ppx - https://github.com/teamwalnut/graphql-ppx/releases/tag/0.1.0-beta.2

Published by baransu about 5 years ago

graphql-ppx - https://github.com/teamwalnut/graphql-ppx/releases/tag/0.1.0-beta.1

Published by baransu about 5 years ago

graphql-ppx - https://github.com/teamwalnut/graphql-ppx/releases/tag/0.0.12

Published by baransu about 5 years ago

graphql-ppx - https://github.com/teamwalnut/graphql-ppx/releases/tag/0.0.11

Published by baransu about 5 years ago

graphql-ppx - https://github.com/teamwalnut/graphql-ppx/releases/tag/0.0.10

Published by baransu about 5 years ago

graphql-ppx - https://github.com/teamwalnut/graphql-ppx/releases/tag/0.0.9

Published by baransu about 5 years ago

graphql-ppx - https://github.com/teamwalnut/graphql-ppx/releases/tag/0.0.7

Published by baransu about 5 years ago

graphql-ppx - https://github.com/teamwalnut/graphql-ppx/releases/tag/0.0.6

Published by baransu about 5 years ago

graphql-ppx - https://github.com/teamwalnut/graphql-ppx/releases/tag/0.0.5

Published by baransu about 5 years ago

graphql-ppx - https://github.com/teamwalnut/graphql-ppx/releases/tag/0.0.4

Published by baransu about 5 years ago

graphql-ppx - https://github.com/teamwalnut/graphql-ppx/releases/tag/0.0.1

Published by baransu about 5 years ago