Skip to content

Commit 7fbb948

Browse files
committed
wordsmithing
1 parent ba3fc17 commit 7fbb948

File tree

2 files changed

+10
-16
lines changed

2 files changed

+10
-16
lines changed

spec/Appendix B -- Notation Conventions.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -248,10 +248,7 @@ entry has a unique key, and can be directly referenced by that key.
248248
ordered map, which does not have an entry with that key, is ordered after
249249
existing entries.
250250

251-
**Preserving order**
252-
253-
To improve legibility, when possible implementations should preserve observable
254-
order for unordered data collections. For example, if applying a grammar to an
255-
input string produces an unordered set, serializing that set (to a string or
256-
other observable output) should produce the same order found in the original
257-
input string.
251+
Note: Ordered data collection are only specified when strictly necessary. To
252+
improve legibility and stability of outputs it is recommended to preserve
253+
observable order. For example if applying a grammar to an input string produces
254+
a set, serializing that set should reproduce the original order.

spec/Section 4 -- Introspection.md

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -117,16 +117,13 @@ Tools built using GraphQL introspection should respect deprecation by
117117
discouraging deprecated use through information hiding or developer-facing
118118
warnings.
119119

120-
**Ordering**
120+
**Stable Ordering**
121121

122-
When possible, implementations should preserve observable order for unordered
123-
data collections. For example, if a schema was produced from a source
124-
{TypeSystemDocument} then introspection of fields, input fields, arguments, enum
125-
values, directives, union members, implemented interfaces and so on should
126-
produce the same order as found in the source.
127-
128-
Note: This recommendation is to improve legibility and stability of schema
129-
representations.
122+
To improve legibility and stability of schema representations, it is recommended
123+
to preserve observable order for all data collections. For example, if a schema
124+
was produced from a source {TypeSystemDocument} then introspection of fields,
125+
input fields, arguments, enum values, directives, union members, implemented
126+
interfaces and so on should reproduce the original order.
130127

131128
**Schema Introspection Schema**
132129

0 commit comments

Comments
 (0)