-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update snapshots for
graphql@15
's preservation of user-type sortation.
The order of types returned by, e.g. `getImplementation`, will now be dependent on the order that those types first appear in the schema. See the referenced issues, the first of which implemented the change and the second which indicates the motivation. Ref: graphql/graphql-js#2410 Ref: graphql/graphql-js#2362
- Loading branch information
Showing
1 changed file
with
80 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -709,10 +709,10 @@ describe('buildQueryPlan', () => { | |
{ | ||
topProducts { | ||
__typename | ||
... on Book { | ||
... on Furniture { | ||
price | ||
} | ||
... on Furniture { | ||
... on Book { | ||
price | ||
} | ||
} | ||
|
@@ -747,38 +747,38 @@ describe('buildQueryPlan', () => { | |
{ | ||
topProducts { | ||
__typename | ||
... on Book { | ||
... on Furniture { | ||
price | ||
__typename | ||
isbn | ||
upc | ||
} | ||
... on Furniture { | ||
... on Book { | ||
price | ||
__typename | ||
upc | ||
isbn | ||
} | ||
} | ||
} | ||
}, | ||
Flatten(path: "topProducts.@") { | ||
Fetch(service: "reviews") { | ||
{ | ||
... on Book { | ||
__typename | ||
isbn | ||
} | ||
... on Furniture { | ||
__typename | ||
upc | ||
} | ||
... on Book { | ||
__typename | ||
isbn | ||
} | ||
} => | ||
{ | ||
... on Book { | ||
... on Furniture { | ||
reviews { | ||
body | ||
} | ||
} | ||
... on Furniture { | ||
... on Book { | ||
reviews { | ||
body | ||
} | ||
|
@@ -861,12 +861,12 @@ describe('buildQueryPlan', () => { | |
{ | ||
product(upc: "") { | ||
__typename | ||
... on Book { | ||
... on Furniture { | ||
details { | ||
country | ||
} | ||
} | ||
... on Furniture { | ||
... on Book { | ||
details { | ||
country | ||
} | ||
|
@@ -919,17 +919,46 @@ describe('buildQueryPlan', () => { | |
} | ||
fragment __QueryPlanFragment_0__ on Product { | ||
__typename | ||
... on Book { | ||
__typename | ||
isbn | ||
} | ||
... on Furniture { | ||
__typename | ||
upc | ||
} | ||
... on Book { | ||
__typename | ||
isbn | ||
} | ||
} | ||
}, | ||
Parallel { | ||
Flatten(path: "[email protected]") { | ||
Fetch(service: "product") { | ||
{ | ||
... on Furniture { | ||
__typename | ||
upc | ||
} | ||
... on Book { | ||
__typename | ||
isbn | ||
} | ||
} => | ||
{ | ||
... on Furniture { | ||
name | ||
price | ||
details { | ||
country | ||
} | ||
} | ||
... on Book { | ||
price | ||
details { | ||
country | ||
} | ||
} | ||
} | ||
}, | ||
}, | ||
Sequence { | ||
Flatten(path: "[email protected]") { | ||
Fetch(service: "books") { | ||
|
@@ -967,35 +996,6 @@ describe('buildQueryPlan', () => { | |
}, | ||
}, | ||
}, | ||
Flatten(path: "[email protected]") { | ||
Fetch(service: "product") { | ||
{ | ||
... on Furniture { | ||
__typename | ||
upc | ||
} | ||
... on Book { | ||
__typename | ||
isbn | ||
} | ||
} => | ||
{ | ||
... on Furniture { | ||
name | ||
price | ||
details { | ||
country | ||
} | ||
} | ||
... on Book { | ||
price | ||
details { | ||
country | ||
} | ||
} | ||
} | ||
}, | ||
}, | ||
}, | ||
}, | ||
} | ||
|
@@ -1105,17 +1105,46 @@ describe('buildQueryPlan', () => { | |
} | ||
fragment __QueryPlanFragment_0__ on Product { | ||
__typename | ||
... on Book { | ||
__typename | ||
isbn | ||
} | ||
... on Furniture { | ||
__typename | ||
upc | ||
} | ||
... on Book { | ||
__typename | ||
isbn | ||
} | ||
} | ||
}, | ||
Parallel { | ||
Flatten(path: "[email protected]") { | ||
Fetch(service: "product") { | ||
{ | ||
... on Furniture { | ||
__typename | ||
upc | ||
} | ||
... on Book { | ||
__typename | ||
isbn | ||
} | ||
} => | ||
{ | ||
... on Furniture { | ||
name | ||
cost: price | ||
details { | ||
origin: country | ||
} | ||
} | ||
... on Book { | ||
cost: price | ||
details { | ||
origin: country | ||
} | ||
} | ||
} | ||
}, | ||
}, | ||
Sequence { | ||
Flatten(path: "[email protected]") { | ||
Fetch(service: "books") { | ||
|
@@ -1153,35 +1182,6 @@ describe('buildQueryPlan', () => { | |
}, | ||
}, | ||
}, | ||
Flatten(path: "[email protected]") { | ||
Fetch(service: "product") { | ||
{ | ||
... on Furniture { | ||
__typename | ||
upc | ||
} | ||
... on Book { | ||
__typename | ||
isbn | ||
} | ||
} => | ||
{ | ||
... on Furniture { | ||
name | ||
cost: price | ||
details { | ||
origin: country | ||
} | ||
} | ||
... on Book { | ||
cost: price | ||
details { | ||
origin: country | ||
} | ||
} | ||
} | ||
}, | ||
}, | ||
}, | ||
}, | ||
} | ||
|