File tree Expand file tree Collapse file tree 1 file changed +21
-2
lines changed Expand file tree Collapse file tree 1 file changed +21
-2
lines changed Original file line number Diff line number Diff line change @@ -49,13 +49,32 @@ collection with ``Canada`` in the ``countries`` field.
49
49
50
50
.. include:: /includes/connect-guide-note.rst
51
51
52
- .. literalinclude:: /code-snippets/usage-examples/count.js
53
- :language: javascript
52
+ .. tabs::
53
+
54
+ .. tab:: JavaScript
55
+ :tabid: javascript
56
+
57
+ .. literalinclude:: /code-snippets/usage-examples/count.js
58
+ :language: javascript
59
+ :linenos:
60
+
61
+ .. tab:: TypeScript
62
+ :tabid: typescript
63
+
64
+ .. literalinclude:: /code-snippets/usage-examples/count.js
65
+ :language: javascript
66
+ :linenos:
67
+
68
+ .. note:: Identical Code Snippets
69
+
70
+ The JavaScript and TypeScript code snippets above are identical. There are no
71
+ TypeScript specific features of the driver relevant to this use case.
54
72
55
73
If you run the sample code above, you should see output that resembles the
56
74
following:
57
75
58
76
.. code-block:: none
77
+ :copyable: false
59
78
60
79
Estimated number of documents in the movies collection: 23541
61
80
Number of movies from Canada: 1349
You can’t perform that action at this time.
0 commit comments