This repository was archived by the owner on Oct 23, 2024. It is now read-only.
v4.0.0
·
3 commits
to master
since this release
4.0.0 (2019-09-30)
Features
- complete implementation (fragments, introspection...) (ccfa24b)
BREAKING CHANGES
-
- Removed support for Observable rootValue
- Removed the support for Observable variables: If necessary, it can be done by the user with a simple:
variables$.pipe(
switchMap(variables => graphql({ schema, source: query, variables }))
)- Removed support for query as Document in graphql():
// previously ok:
graphql(schema, gql`query {}`)
// now use:
execute(schema, gql`query {}`)
// or
graphql(schema, `query {}`)- Error handling: every expected errors (validation, syntax error, throwing resolver...) are pushed in the error field of the ExecutionResult, the RxJS stream does not throw in these cases anymore