graphql-js
graphql-js copied to clipboard
A reference implementation of GraphQL for JavaScript
In the full example, `const root` should be _outside_ the `const schema` section, else there's a bunch of errors thrown. On the upside, I had to study the code more...
alternative solution to #4357 in which we add the new deferred fragments to the wrapped graphql result
After an execution group "fails," i.e. a null has bubbled up too far, it fails the entire associated deferred fragment. But if the query includes a shared execution group between...
continue work with #4313 Fixes the types for Subsequent Execution Results. Currently, the generic argument for subsequent results is passed to deferred and streamed results. By providing two different generic...
implements https://github.com/graphql/graphql-spec/pull/1127 1. akin to a request error, without any data field 2. and close the response event stream ensuring no further events are sent
## Problem The util function `isPromise` has a type guard to guarantee that return value is `Promise`, but it's just checking if it has`then` function, so I think `PromiseLike` type...
The implementation for the [Spec RFC PR 879](https://github.com/graphql/graphql-spec/pull/879), adding a new meta field `__fulfilled(label: String): Boolean!` that always returns `true` if a selection set is included in the response.
Initial exploratory work to expose user-defined directives via introspection. This is unfinished and once complete should be used to create an experimental branch rather than merge into master as this...