Skip to content

Commit 9811480

Browse files
authored
Update README.md
1 parent ebb7291 commit 9811480

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,18 +43,18 @@ This means all field instances are inherently batched as a function of the engin
4343

4444
**Scenario:** we resolve five fields (_depth_) across a list of 1000 objects (_breadth_).
4545

46-
* In depth-first execution, we call 5000 field resolvers (_depth × breadth_) and incur `5s` of cost.
47-
* In breadth-first execution, we call 5 field resolvers (_depth-only_) and incur only `5ms`.
46+
* depth-first: we call 5000 field resolvers (_depth × breadth_) and incur `5s` of cost.
47+
* breadth-first: we call 5 field resolvers (_depth-only_) and incur only `5ms`.
4848

4949
Now assume each field operates lazily and returns a promise:
5050

51-
* In depth-first execution, we build and resolve 5000 intermediary promises (_depth × breadth_).
52-
* In breadth-first execution, we build and resolve 5 intermediary promises (_depth-only_).
51+
* depth-first: we build and resolve 5000 intermediary promises (_depth × breadth_).
52+
* breadth-first: we build and resolve 5 intermediary promises (_depth-only_).
5353

5454
Now assume we chain a `.then` onto the lazy promise resolution:
5555

56-
* In depth-first execution, we build and resolve 10,000 intermediary promises (_depth × breadth × 2_).
57-
* In breadth-first execution, we build and resolve 10 intermediary promises (_depth × 2_).
56+
* depth-first: we build and resolve 10,000 intermediary promises (_depth × breadth × 2_).
57+
* breadth-first: we build and resolve 10 intermediary promises (_depth × 2_).
5858

5959
## Prototype usage
6060

0 commit comments

Comments
 (0)