You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 23, 2024. It is now read-only.
BREAKING CHANGE:
- Removed support for Observable rootValue
- Removed the support for Observable variables: If necessary, it can be done by the user with a simple:
```js
variables$.pipe(
switchMap(variables => graphql({ schema, source: query, variables }))
)
```
- Removed support for query as Document in graphql():
```js
// 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
The first argument you pass into `reactive-graphql` is a GraphQL query, either parsed or as string, the second one is an executable schema. You can pass in the root context as an object as a third parameter. The variables can be passed as 4th parameter.
76
-
77
-
The implementation will always return an Observable.
78
-
If any of the resolvers returns an error the implementation will emit the error on the stream.
79
-
Otherwise the data will be wrapped in a `{ data }` object, like most implementations handle this.
80
-
81
70
## Caveats
82
-
83
-
Unsupported GraphQL features:
84
-
85
-
- fragments of all kinds
86
-
- subscriptions (as everything is treated as a subscription)
71
+
GraphQL Subscriptions are not supported (see [issue #27](https://github.com/mesosphere/reactive-graphql/issues/27)) as everything is treated as subscriptions.
0 commit comments