graphql-js
graphql-js copied to clipboard
A reference implementation of GraphQL for JavaScript
Sorry about the title but it's a pretty specific scenario. It looks like this error occurs because of how errors are handled for non-nullable fields. (I saw this with the...
As discussed on `graphql-js-wg`, we decided to run the "GraphQL Review Team" initiative. ## Goal Previously, we had a lot of PRs that stuck for months (sometimes for years) without...
Hi, I recently came across this issue while trying to create a DB transaction per request. The reason for using a DB transaction per request (which means 1 connection per...
Implementation of https://github.com/graphql/graphql-spec/issues/867 along with the suggested `?` syntax. [Here's a doc with a list of some of the important test cases and the justifications for their behavior.](https://docs.google.com/document/d/1relgXUdhJrlaSR70lrITQKmcIHXjIVyWxDCKRuzMEvs/edit#heading=h.gm7m1frqgtc4) This PR...
fieldNodes will never be an empty array. ```ts // Before const node = info.fieldNodes[0] // undefined | FieldNode // After const node = info.fieldNodes[0] // FieldNode ``` This is helpful...
Both `parse` and `validate` do 100% sync logic, so this request might seem obscure. Please let me try to break this down and propose why we might want to consider...
We don't have any dependency for `graphql-js` but as we are setting up the site and just in general it is a good idea to keep things up to date....
Currently it is possible to have unhandled promise rejections that arise from a mix of sync and async isTypeOf checks. This should fix that issue.
I also just re-published [email protected] as [email protected] https://npm.im/graphql-esm, tested it in an example project using libraries with full ESM support https://github.com/PabloSzx/test-graphql-esm, everything works perfectly 👌 It can be tested right...