graphql-spec
graphql-spec copied to clipboard
GraphQL is a query language and execution engine tied to any backend service.
Fix wording on Leaf Field Selections
There's no other reference to "result types" on the specification and the same idea is given the name "return type" on IsValidImplementation, SameResponseShape and ExecuteSelectionSet. As an aside: Should this...
Discussion: Generic error codes in the spec
**Abstract** I am researching and planning to build a generic test suite to check the compliance of the various GraphQL libraries The [project idea](https://github.com/graphql/foundation/tree/master/mentorship/2020/gsoc#1-graphql-compatibility-acceptance-tests-medium) is given by the GraphQL Foundation...
Consider allowing use of '-' & '/' characters in names, enums if possible
Currently name regex only allows limited characters, it would be good if it can add support for `-` & `/` characters. ```gql data { "application/json": "test", "en-GB": "test", "C-AR/A": "test...
Literal types support
Consider adding literal types support to be able to express a union with more than a single discriminator: ```graphql type Sword { weaponType: "melee"! aptitude: "neutral"! damage: Float! } type...
Add support for directives on directives
I suggest allowing to specify directives on directives with the following syntax: ``` directive @foo on DIRECTIVE_DEFINITION directive @bar on FIELD @foo ``` ## Motivation Allow applying directive-exclusive features (e.g....
[RFC] Collections / CollectionTypeDefinition
# TL;DR: This RFC introduces a new variant of Lists/Arrays that has named entries key-value pairs. Which can be queried exactly like arrays, but a result is an object. ##...
Polymorphic name
Hi, I haven't found a way to give an alias to a type, so I was wondering if we could have alias for type only on polymorph fragments. Consider we...
Named Lists
# Named Lists ## Motivation Since GraphQL has only one type (List) for collections, we cannot represent collections with certain constraints. examples of constrained lists: - Set: no duplicated elements...
GraphQL can be less strict and complicated
I'm a software engineer for almost 20 years and I recently started using GraphQL extensively. While I understand the original thoughts of making GraphQL as simple as possible, we end...
Allow recursive references in fragments selection subsets
## Problem statement GraphQL spec currently forbids recursive references in fragments - section 5.5.2.2: > 5.5.2.2 Fragment spreads must not form cycles The reasoning given is that reference cycles result...