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

This allows for a better configuration in case the server restricts the maximum query depth. --- Added by @benjie: - Fixes #4321

PR: feature 🚀

Takes the no-op trick from #4426, but responding in a small way to feedback from @glasser in terms of discoverability, uses the development condition to enable this behavior by default....

Resolves this feedback: https://github.com/graphql/graphql.github.io/pull/2005#pullrequestreview-2900857524 Moving Migrate from express graphQL guide to graphQL-js

Enhance GraphQL parser and printer to support descriptions for operations, variables, and fragments This commit is based on https://github.com/graphql/graphql-js/pull/3402 , rebased onto graphql-js 16 and with added tests Implements https://github.com/graphql/graphql-spec/pull/1170

The `validateName` function that is used to validate lots of schema parts is currently only checking that names are not reserved: https://github.com/graphql/graphql-js/blob/6b253e7159a6a6c64c05bcc6bb863fef5a42eeb7/src/type/validate.ts#L206-L217 It should also check that the `name` complies...

Motivation: - Improve known-valid schema construction time as much as possible. Background: - All schema validation except name validation is currently performed separately in the `validateSchema(...)`, which optimizes schema construction...

context: https://github.com/graphql/graphql-js/issues/4362 ![image](https://github.com/user-attachments/assets/61dee0c4-b38b-4ac7-915f-cce1664fcdab)

See discussion in #4362. As noted by @ab-pm, this is a reversion of #3288 which itself reverted some of #1132. We might need some more context on the motivation behind...

While working on #4360, I felt myself trying to reach for opportunity to remove the CollectFieldsContext type/object that I previously introduced; this is accomplished in this separate PR. Benchmarking on...

PR: polish 💅

GraphQL JS has a function to validate a user schema, [`validateSchema()`](https://github.com/graphql/graphql-js/blob/b0f467d6d00da71d182e50280ac180b694f1cd63/src/type/validate.ts#L75). This works well if the schema is a user schema not containing any of the builtin types. In some...