File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -44,12 +44,14 @@ For more information on object types, see the
44
44
Extend Document
45
45
~~~~~~~~~~~~~~~
46
46
47
- The following classes accept all :ref:`non-recursive <node-driver-limitations>`
48
- types that extends the ``Document`` interface :
47
+ The following classes accept all types that extends the ``Document`` interface
48
+ and that are not recursive :
49
49
50
50
- `Collection <{+api+}/classes/Collection.html>`__
51
51
- `ChangeStream <{+api+}/classes/ChangeStream.html>`__
52
52
53
+ To view an example of a recursive type, see the :ref:`<node-driver-limitations>` section.
54
+
53
55
You can pass a type parameter that extends the ``Document`` interface like this:
54
56
55
57
.. literalinclude:: /code-snippets/typescript/extend-document.ts
@@ -71,11 +73,13 @@ Any Type
71
73
~~~~~~~~
72
74
73
75
The following classes accept any :ref:`non-recursive <node-driver-limitations>`
74
- type parameter:
76
+ type parameter that is not recursive :
75
77
76
78
- `FindCursor <{+api+}/classes/FindCursor.html>`__
77
79
- `AggregationCursor <{+api+}/classes/AggregationCursor.html>`__
78
80
81
+ To view an example of a recursive type, see the :ref:`<node-driver-limitations>` section.
82
+
79
83
You can find a code snippet that shows how to specify a type for the ``FindCursor``
80
84
class in the
81
85
:ref:`Find Multiple Documents Usage Example <node-driver-find-usage-example-code-snippet>`.
You can’t perform that action at this time.
0 commit comments