Skip to content

Commit 31183a6

Browse files
authored
DOCSP-38397 Remove FindMany (#327)
1 parent e6cbee0 commit 31183a6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

source/includes/fact-call-limitations.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,11 @@ The following generator functions do not work:
7676
7777
// This code will fail
7878
function* FindResults() {
79-
yield db.students.findMany();
79+
yield db.students.findOne();
8080
}
8181
8282
// This code will fail
83-
function listEntries() { return db.students.findMany(); }
83+
function listEntries() { return db.students.findOne(); }
8484
function* findResults() {
8585
yield listEntries();
8686
}
@@ -89,7 +89,7 @@ Use an ``async generator function`` instead:
8989

9090
.. code-block:: javascript
9191
92-
function listEntries() { return db.students.findMany(); }
92+
function listEntries() { return db.students.findOne(); }
9393
async function* findResults() {
9494
yield listEntries();
9595
}

0 commit comments

Comments
 (0)