Skip to content

Servers must preserve lexical ordering between SDL and introspection #673

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions spec/Section 4 -- Introspection.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,23 @@ in any defined type.
Note: `__typename` may not be included as a root field in a subscription
operation.

## Ordering

Servers must preserve lexical ordering between SDL and introspection.

For the given SDL:

```graphql
type MyType {
field1(arg1: String, arg2: Int): Boolean
field2: Boolean
}
```

The introspection result must produce an ordered array of fields `[field1, field2]` for `MyType`
and an ordered array of arguments `[arg1, arg2]` for `MyType.field1`.


## Schema Introspection

The schema introspection system is accessible from the meta-fields `__schema`
Expand Down