Skip to content

Commit 3a52ce2

Browse files
committed
Change 'original' to 'previous' to clarify behavior of multiple extensions
1 parent 7073e3a commit 3a52ce2

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed

spec/Section 3 -- Type System.md

+24-24
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ TypeSystemExtension :
4242
- TypeExtension
4343

4444
Type system extensions are used to represent a GraphQL type system which has
45-
been extended from some original type system. For example, this might be used by
45+
been extended from some previous type system. For example, this might be used by
4646
a local service to represent data a GraphQL client only accesses locally, or by
4747
a GraphQL service which is itself an extension of another GraphQL service.
4848

@@ -266,8 +266,8 @@ SchemaExtension :
266266
- extend schema Directives[Const]? { RootOperationTypeDefinition+ }
267267
- extend schema Directives[Const] [lookahead != `{`]
268268

269-
Schema extensions are used to represent a schema which has been extended from an
270-
original schema. For example, this might be used by a GraphQL service which adds
269+
Schema extensions are used to represent a schema which has been extended from a
270+
previous schema. For example, this might be used by a GraphQL service which adds
271271
additional operation types, or additional directives to an existing schema.
272272

273273
Note: Schema extensions without additional operation type definitions must not
@@ -279,7 +279,7 @@ The same limitation applies to the type definitions and extensions below.
279279
Schema extensions have the potential to be invalid if incorrectly defined.
280280

281281
1. The Schema must already be defined.
282-
2. Any non-repeatable directives provided must not already apply to the original
282+
2. Any non-repeatable directives provided must not already apply to the previous
283283
Schema.
284284

285285
## Types
@@ -377,7 +377,7 @@ TypeExtension :
377377
- InputObjectTypeExtension
378378

379379
Type extensions are used to represent a GraphQL type which has been extended
380-
from some original type. For example, this might be used by a local service to
380+
from some previous type. For example, this might be used by a local service to
381381
represent additional fields a GraphQL client only accesses locally.
382382

383383
## Scalars
@@ -640,15 +640,15 @@ ScalarTypeExtension :
640640
- extend scalar Name Directives[Const]
641641

642642
Scalar type extensions are used to represent a scalar type which has been
643-
extended from some original scalar type. For example, this might be used by a
643+
extended from some previous scalar type. For example, this might be used by a
644644
GraphQL tool or service which adds directives to an existing scalar.
645645

646646
**Type Validation**
647647

648648
Scalar type extensions have the potential to be invalid if incorrectly defined.
649649

650650
1. The named type must already be defined and must be a Scalar type.
651-
2. Any non-repeatable directives provided must not already apply to the original
651+
2. Any non-repeatable directives provided must not already apply to the previous
652652
Scalar type.
653653

654654
## Objects
@@ -1048,7 +1048,7 @@ ObjectTypeExtension :
10481048
- extend type Name ImplementsInterfaces [lookahead != `{`]
10491049

10501050
Object type extensions are used to represent a type which has been extended from
1051-
some original type. For example, this might be used to represent local data, or
1051+
some previous type. For example, this might be used to represent local data, or
10521052
by a GraphQL service which is itself an extension of another GraphQL service.
10531053

10541054
In this example, a local data field is added to a `Story` type:
@@ -1076,10 +1076,10 @@ Object type extensions have the potential to be invalid if incorrectly defined.
10761076
2. The fields of an Object type extension must have unique names; no two fields
10771077
may share the same name.
10781078
3. Any fields of an Object type extension must not be already defined on the
1079-
original Object type.
1080-
4. Any non-repeatable directives provided must not already apply to the original
1079+
previous Object type.
1080+
4. Any non-repeatable directives provided must not already apply to the previous
10811081
Object type.
1082-
5. Any interfaces provided must not be already implemented by the original
1082+
5. Any interfaces provided must not be already implemented by the previous
10831083
Object type.
10841084
6. The resulting extended object type must be a super-set of all interfaces it
10851085
implements.
@@ -1288,7 +1288,7 @@ InterfaceTypeExtension :
12881288
- extend interface Name ImplementsInterfaces [lookahead != `{`]
12891289

12901290
Interface type extensions are used to represent an interface which has been
1291-
extended from some original interface. For example, this might be used to
1291+
extended from some previous interface. For example, this might be used to
12921292
represent common local data on many types, or by a GraphQL service which is
12931293
itself an extension of another GraphQL service.
12941294

@@ -1328,11 +1328,11 @@ defined.
13281328
2. The fields of an Interface type extension must have unique names; no two
13291329
fields may share the same name.
13301330
3. Any fields of an Interface type extension must not be already defined on the
1331-
original Interface type.
1332-
4. Any Object or Interface type which implemented the original Interface type
1331+
previous Interface type.
1332+
4. Any Object or Interface type which implemented the previous Interface type
13331333
must also be a super-set of the fields of the Interface type extension (which
13341334
may be due to Object type extension).
1335-
5. Any non-repeatable directives provided must not already apply to the original
1335+
5. Any non-repeatable directives provided must not already apply to the previous
13361336
Interface type.
13371337
6. The resulting extended Interface type must be a super-set of all Interfaces
13381338
it implements.
@@ -1443,7 +1443,7 @@ UnionTypeExtension :
14431443
- extend union Name Directives[Const]
14441444

14451445
Union type extensions are used to represent a union type which has been extended
1446-
from some original union type. For example, this might be used to represent
1446+
from some previous union type. For example, this might be used to represent
14471447
additional local data, or by a GraphQL service which is itself an extension of
14481448
another GraphQL service.
14491449

@@ -1457,8 +1457,8 @@ Union type extensions have the potential to be invalid if incorrectly defined.
14571457
Similarly, wrapping types must not be member types of a Union.
14581458
3. All member types of a Union type extension must be unique.
14591459
4. All member types of a Union type extension must not already be a member of
1460-
the original Union type.
1461-
5. Any non-repeatable directives provided must not already apply to the original
1460+
the previous Union type.
1461+
5. Any non-repeatable directives provided must not already apply to the previous
14621462
Union type.
14631463

14641464
## Enums
@@ -1520,7 +1520,7 @@ EnumTypeExtension :
15201520
- extend enum Name Directives[Const] [lookahead != `{`]
15211521

15221522
Enum type extensions are used to represent an enum type which has been extended
1523-
from some original enum type. For example, this might be used to represent
1523+
from some previous enum type. For example, this might be used to represent
15241524
additional local data, or by a GraphQL service which is itself an extension of
15251525
another GraphQL service.
15261526

@@ -1531,8 +1531,8 @@ Enum type extensions have the potential to be invalid if incorrectly defined.
15311531
1. The named type must already be defined and must be an Enum type.
15321532
2. All values of an Enum type extension must be unique.
15331533
3. All values of an Enum type extension must not already be a value of the
1534-
original Enum.
1535-
4. Any non-repeatable directives provided must not already apply to the original
1534+
previous Enum.
1535+
4. Any non-repeatable directives provided must not already apply to the previous
15361536
Enum type.
15371537

15381538
## Input Objects
@@ -1712,7 +1712,7 @@ InputObjectTypeExtension :
17121712
- extend input Name Directives[Const] [lookahead != `{`]
17131713

17141714
Input object type extensions are used to represent an input object type which
1715-
has been extended from some original input object type. For example, this might
1715+
has been extended from some previous input object type. For example, this might
17161716
be used by a GraphQL service which is itself an extension of another GraphQL
17171717
service.
17181718

@@ -1724,8 +1724,8 @@ defined.
17241724
1. The named type must already be defined and must be a Input Object type.
17251725
2. All fields of an Input Object type extension must have unique names.
17261726
3. All fields of an Input Object type extension must not already be a field of
1727-
the original Input Object.
1728-
4. Any non-repeatable directives provided must not already apply to the original
1727+
the previous Input Object.
1728+
4. Any non-repeatable directives provided must not already apply to the previous
17291729
Input Object type.
17301730

17311731
## List

0 commit comments

Comments
 (0)