graphql-js
graphql-js copied to clipboard
A reference implementation of GraphQL for JavaScript
Using symbol keys is a useful approach when composing error handlers as symbol keys are omitted when the error is finally stringified. It allows middlewares to read extensions without having...
Using TS conditional types, when `enableExperimental` is set to true, return type of `execute` will correspond to the new types; otherwise, `execute` will return the old types. When the option...
Follow up to my comment on https://github.com/graphql/graphql-js/pull/3691 this will automatically optimize cases where arrays are destructured. Demo: https://astexplorer.net/#/gist/54f452efefc94d565223d4296a91172e/cd6121f8ee2a7d974f7e8ccecb4933ad70e82bdb
The basic idea behind this PR is that graphql-js should not export something with type signature of an async generator that sometimes does not behave like an async generator. Repeaters...
## Feature We’d like to be able to modify input field values programmatically, not just defaulting them to some specific value. ## Example use case A clear use case would...
When I connect my other module to the main application using npm link, an error appears: "Cannot use GraphQLObjectType "Query" from another module or realm." - Graphql versions are the...
Fixes #3528 in the `16.x.x` branch.
Fixes #3528 in the `15.x.x` branch
Fixes #3528 Ensures that if `executeFields` encounters a mix of promises and thrown errors, the promises will be awaited before throwing the error.
Hello, As per GraphQL spec `If the value passed as an input to a list type is not a list and not the null value, then the result of input...