graphql-js icon indicating copy to clipboard operation
graphql-js copied to clipboard

A reference implementation of GraphQL for JavaScript

Results 342 graphql-js issues
Sort by recently updated
recently updated
newest added

Implements the changes proposed in https://github.com/graphql/graphql-spec/pull/1015

Fixes #2241 Added support to add comments in lexer itself. Modified the tests as the root structure of the response is changed. Added some tests. Please comment if more test...

PR: feature 🚀

(I thought I'd filed this a while ago but apparently not! Came from https://github.com/apollographql/apollo-server/issues/4472#issuecomment-1083734981) `graphql-js` doesn't proactively short-circuit executions when they are guaranteed to end up ignored by a null-bubbling,...

Once execution begins, there's no way to stop it from running until completion. However, servers may want to be able to stop execution. For example: - Servers may have a...

Depends on #3115 Implements https://github.com/graphql/graphql-spec/pull/794/ Adds: * DOT punctuator in lexer * Improvements to lexer errors around misuse of `.` * Minor improvement to parser core which simplified this addition...

spec RFC
PR: feature 🚀

Re-implements #4386 with a configurable function variable initialized to a no-op function in production builds. This is apparently optimizable by v8, as it has no performance hit when setEnv('development') is...

This PR is adding utility of merge AST by simply migrating it from [graphiql](https://github.com/graphql/graphiql/blob/8fbac78ae43a2b245aad0203cb8269f38e0c105f/packages/graphiql-toolkit/src/graphql-helpers/merge-ast.ts#L109) As first step to resolve this issue https://github.com/graphql/graphql-js/issues/1428#issuecomment-2676341366

Adding some suggestions to the subscriptions section: As mentioned in [this comment](https://github.com/graphql/graphql-js/pull/4406#discussion_r2115674774), the `graphql-subscriptions` library is not maintained ([reference](https://github.com/apollographql/graphql-subscriptions/issues/240)) I've made a change to recommend another library for the solution....

The option of passing a thunk was made available by: https://github.com/graphql/graphql-js/pull/4018 . Always passing the thunk helps contribute to a "lazy" build process, which gives the following performance boost: ![image](https://github.com/user-attachments/assets/569b9b79-e6d9-44b6-b073-045d2df72c3c)

See https://github.com/graphql/graphql-spec/pull/1037#discussion_r2026533747