We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1be07ca commit f61c9f1Copy full SHA for f61c9f1
source/fundamentals/typescript.txt
@@ -111,8 +111,7 @@ The following code snippet uses the preceding recursive type:
111
112
.. code-block:: typescript
113
114
- const database = client.db("<your database>");
115
- const col = database.collection<RecursiveType>("<your collection>");
+ const col = client.db("<your database>").collection<RecursiveType>("<your collection>");
116
const document = await col.findOne({ i: 1 });
117
118
The preceding code snippet raises the following error at compile time:
0 commit comments