graphql-js
graphql-js copied to clipboard
A reference implementation of GraphQL for JavaScript
This issue is to track a set of goals for type safety in TypeScript. In experiments, I have confirmed that all of these should be possible. While the increased verboseness...
首先,非常感谢你们开源了这么好的项目供广大开发者使用,其次,我有一些小的建议是关于官方文档的 我是一名来自中国的开发者,当然我的英文不是很好,而官方又没有提供中文版的文档,所以我只能使用谷歌浏览器的翻译功能把英文翻译成中文,供自己阅读,但是在翻译过程中,出现了一个问题,谷歌浏览器会把案例的代码块也一并翻译成中文,经过查阅发现,谷歌浏览器也有对应的解决方法,就是谷歌浏览器不会把HTML中``标签包裹起来的部分进行翻译,所以我希望官方可以把文档中代码块部分使用``标签包裹起来,这样也可以方便我们这些来自其他国家的开发者,最后,我十分希望作者可以采纳我的意见对官方文档进行修改。 -来自中国的开发者 coder Y
https://github.com/graphql/graphql-js/blob/e1726dfea66979bfe7ad1c0b0834613e4b6ce4b4/src/validation/validate.ts#L44-L45 https://github.com/graphql/graphql-js/blob/e1726dfea66979bfe7ad1c0b0834613e4b6ce4b4/src/utilities/TypeInfo.ts#L66-L67 From what I understand, by preserving these options, we add the ability for a server to add custom meta fields such as `__fulfilled` or `__directive` and still validate...
This PR introduces a new property `didYouMean` on the `ValidationContext`, that can be used by validation rules for determining whether suggestions should be added to the error message. **Example Usage:**...
```graphql type GlobalCinemaVenue implements Node @preLoad { # @todo Refactor into a dynamic set of identifiers, i.e. """ https://webediamoviespro.com identifier. """ foreignWebediaId: String } ``` Currently when using `parse`, the...
Add support to serialize BigInt for String and ID scalar.
https://github.com/graphql/graphql-js/blob/main/src/validation/rules/ProvidedRequiredArgumentsRule.ts#L50-L52 ```javascript new GraphQLError( `Field "${fieldDef.name}" argument "${argDef.name}" of type "${argTypeStr}" is required, but it was not provided.`, { nodes: fieldNode }, ), ``` The error messages should, in some...
Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6. Commits 7efb22a 1.2.6 ef88b93 security notice for additional prototype pollution issue c2b9819 isConstructorOrProto adapted from PR bc8ecee test from prototype pollution PR See full...
It does not seem like this library supports 4d arrays. I have this type defined on my server ```graphql type MultiPolygon { type: GeometryType! coordinates: [[[[Float!]!]!]!]! bbox: [Float!] } ```...