Skip to content

Commit 3ed8273

Browse files
Update dataloader.rst
1 parent a5fbb2e commit 3ed8273

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

docs/execution/dataloader.rst

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,9 @@ Create loaders by providing a batch loading function.
2828
A batch loading function accepts a list of keys, and returns a ``Promise``
2929
which resolves to a list of ``values``.
3030

31-
Then load individual values from the loader. ``DataLoader`` will coalesce all
32-
individual loads which occur within a single frame of execution (executed once
33-
the wrapping promise is resolved) and then call your batch function with all
34-
requested keys.
31+
``DataLoader`` will coalesce all individual loads which occur within a
32+
single frame of execution (executed once the wrapping promise is resolved)
33+
and then call your batch function with all requested keys.
3534

3635

3736
.. code:: python
@@ -96,7 +95,7 @@ Consider the following GraphQL request:
9695
}
9796
9897
99-
Naively, if ``me``, ``bestFriend`` and ``friends`` each need to request the backend,
98+
If ``me``, ``bestFriend`` and ``friends`` each need to send a request to the backend,
10099
there could be at most 13 database requests!
101100

102101

0 commit comments

Comments
 (0)