- experimental Allow payloadless variant cases in input unions.
- Fix bug when input objects and input unions were mixed.
- Bundle
cli
so it doesn't interfere unecessarily with other ReScript things.
- Disallow inferring input objects. It's not worth the complexity right now.
- Add support for subscriptions.
- Experimental. Allow inferring polyvariants and objects to unions, enums, input objects and object types in certain cases.
- Emit all types into the generated
GraphQLSchema
explicity. - Also allow
Null.t
to be used as is, in addition toNullable.t
. - Don't validate the number of fields in types, let the GraphQL server do that instead.
- Up
graphql-yoga
to5.3.0
andgraphql
package to16.8.1
.
- Include
rescript.json
in package.
- Depend on ReScript v11.
- Ship
arm64
binary.
- Update/improve
graphql-yoga
bindings. - Upgrade
@rescript/core
. - Bind
GraphQLError
. - Remove support for "type creators" since it's now natively supported in ReScript via type spreads.
- First class support for input unions.
- Support
rescript.json
in addition tobsconfig.json
.
- Up to latest
rescript@next
and remove dependency on (now removed) legacy compiler Node bindings.
- Fix infinite rebuild loop with interface files being always re-added.
- Depend on latest
@rescript/core
.
- breaking
ResGraphSchemaAssets.res
is no more, and you can remove it. Instead, all interfaces will have their own generated files emitted likeInterface_<interfaceName>.res
. The contents are also slightly restructured to help with type inference and reduce likelihood of circular dependencies. #27
- Ensure project folders exist before we try to build.
- [LSP] Add autocompletion for
ctx: ResGraphContext.context
to make using context easier. - [LSP] Context aware snippets for inserting new query fields and full mutations.
- [LSP] Support showing info about the backing ReScript code when hovering in
schema.graphql
. - [LSP] Support jump-to-definition to the backing ReScript code from items in
schema.graphql
.
- Print variants properly in debug SDL.
- Inline records are now allowed on unions. Using inline records will create a "synthetic" type for that particular payload.
- Variant constructor names for union members are now allowed to be anything.
- Ship (opinionated) bindings to
DataLoader
by default. #21
- Ensure build is triggered directly when starting watch mode.
- Print errors in watch mode.
- Hovering on
@gql
types now show what GraphQL they yield directly in the hover. #12 - Allow injecting current
typename
for "general" field functions on interfaces. #9 - Add snippets for boilerplate for connections and field functions. #8
- Ensure schema SDL file is dumped also on build by default. This will eventually be configurable.
- Fix bug where some interface spreads wouldn't be picked up if the type definition had single line comments.
- Escape descriptions in GraphQL schema.
- Include full ReScript src dir.
- Fix issue calling generated binary (that didn't account for the bin location properly).
Initial release!