forked from mongodb/docs-node
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.txt
More file actions
232 lines (162 loc) · 7.28 KB
/
index.txt
File metadata and controls
232 lines (162 loc) · 7.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
===================
MongoDB Node Driver
===================
.. facet::
:name: genre
:values: reference
.. meta::
:description: Learn how to connect to and interact with data stored in MongoDB by using JavaScript or TypeScript with the Node.js driver.
:keywords: node.js, object-relational, object-document
.. _node-driver-landing:
.. toctree::
:titlesonly:
:maxdepth: 1
Get Started <get-started>
Connect </connect>
Databases & Collections </databases-collections>
CRUD Operations </crud>
Promises </promises>
Aggregation </aggregation>
Data Formats </data-formats>
Indexes </indexes>
Run a Database Command </run-command>
Atlas Search </atlas-search>
Atlas Vector Search </atlas-vector-search>
Monitoring and Logging </monitoring-and-logging>
Security </security>
Third-Party Integrations </integrations>
Reference </reference>
TypeScript </typescript>
API Documentation <{+api+}>
Issues & Help </issues-and-help>
View the Source <https://github.com/mongodb/node-mongodb-native/>
Introduction
------------
Welcome to the documentation site for the official {+driver-long+}.
You can add the driver to your application to work with MongoDB
in JavaScript or TypeScript. For more information about downloading and
installing the {+driver-short+}, see
:ref:`Download and Install <node-get-started-download-and-install>` in the
Get Started guide.
You can connect using the {+driver-short+} for
deployments hosted in the following environments:
.. include:: /includes/fact-environments.rst
Get Started
-----------
Learn how to establish a connection to MongoDB Atlas and begin
working with data in the step-by-step :doc:`Get Started </get-started>` tutorial.
Connect to MongoDB
------------------
Learn how to create and configure a connection to a MongoDB deployment in the
:ref:`<node-connect>` section.
Databases and Collections
-------------------------
Learn how to interact wth MongoDB databases and collections in the
:ref:`<node-databases-collections>` section.
Read and Write Data
-------------------
Learn how to find, update, and delete data in the :ref:`<node-crud-operations>` section.
Transform Your Data with Aggregation
-------------------------------------
Learn how to use the {+driver-short+} to perform aggregation operations in the
:ref:`<node-aggregation>` section.
Data Formats
------------
Learn how to work with BSON and other data formats in the
:ref:`<node-data-formats>` section.
Optimize Queries with Indexes
-----------------------------
Learn how to work with common types of indexes in the :ref:`<node-indexes>` section.
Run a Database Command
----------------------
Learn how to run a database command in the :ref:`<node-run-command>` section.
Atlas Search
------------
Learn how to run Atlas Search queries in the :ref:`<node-atlas-search>` section.
Atlas Vector Search
-------------------
Learn how to run Atlas Vector Search queries in the :ref:`<node-atlas-vector-search>` section.
Monitoring and Logging
----------------------
Learn how to monitor changes to your application and write them to logs in the
:ref:`<node-monitoring-logging>` section.
Secure Your Data
----------------
Learn about ways you can authenticate your application and encrypt your data in
the :ref:`<node-security>` section.
Reference
---------
Find more information about {+driver-short+} versions, compatibility, and third-party tools in the
:ref:`Reference <node-release-notes>` section.
API Documentation
-----------------
For detailed information about classes and methods in the MongoDB
Node.js driver, see the `{+driver-long+} API documentation
<{+api+}>`__.
Issues & Help
-------------
Learn how to report bugs, contribute to the driver, and to find help in the
:doc:`Issues & Help </issues-and-help>` section.
Related Tools and Libraries
---------------------------
Object Document Mappers
~~~~~~~~~~~~~~~~~~~~~~~
MongoDB and our partners provide several object-document mappers (ODMs) for Node.js that
let developers work with MongoDB data as objects. One popular ODM is **Mongoose**,
which helps enforce a semi-rigid schema at the application level and provides features
to assist with data modeling and manipulation. **Prisma**, another ODM, helps
ensure data consistency by offering a type-safe database client and an intuitive schema.
For more information about using ODMs with MongoDB, see the following resources:
- :website:`MongoDB ORMs, ODMs, and Libraries </developer/products/mongodb/mongodb-orms-odms-libraries/>`
- `Mongoose <https://mongoosejs.com/docs/guide.html>`__ official documentation
- :ref:`Get Started with Mongoose <node-mongoose-get-started>` tutorial
- `Prisma <https://www.prisma.io/docs>`__ official documentation
Packages
~~~~~~~~
You can install the following packages to expand the functionality of the {+driver-short+}:
.. list-table::
:header-rows: 1
:stub-columns: 1
:widths: 1 2
* - Package
- Description
* - | `bson <https://www.npmjs.com/package/bson>`__
- | BSON serialization and deserialization library used by the official
{+driver-long+}
* - `kerberos <https://www.npmjs.com/package/kerberos>`__
- C++ extension for Node.js that provides support for Kerberos authentication
* - | `mongodb-client-encryption <https://www.npmjs.com/package/mongodb-client-encryption>`__
- | Library for client-side encryption functionality
* - `mongodb-legacy <https://www.npmjs.com/package/mongodb-legacy>`__
- Legacy Node.js driver with optional callback support
* - | `@mongodb-js/zstd <https://www.npmjs.com/package/@mongodb-js/zstd>`__
- | Zstandard compression library for Node.js
For information about each package's version compatibility, see the :github:`Component Support Matrix
</mongodb/node-mongodb-native#component-support-matrix>` in the {+driver-short+} Github
repository.
Learn
-----
Visit the Developer Hub and MongoDB University to learn more about the
{+driver-short+}.
Developer Hub
~~~~~~~~~~~~~
The Developer Hub provides tutorials and social engagement for developers.
To learn how to use MongoDB features with the Node.js driver, see the
`How To's and Articles page <https://www.mongodb.com/developer/search/?s=Node.js>`__.
To ask questions and engage in discussions with fellow developers using
the {+driver-short+}, see the `Developer Community forums <https://www.mongodb.com/community/forums/tag/node-js>`__.
MongoDB University
~~~~~~~~~~~~~~~~~~
MongoDB University provides free courses to teach everyone how to use MongoDB.
Take the Following Free Online Courses Taught by MongoDB Instructors
````````````````````````````````````````````````````````````````````
.. list-table::
* - .. figure:: /includes/figures/Node_Catalog.png
:alt: MongoDB University Node.js Course graphic
- `Using MongoDB with Node.js <https://learn.mongodb.com/learning-paths/using-mongodb-with-nodejs>`_
Learn the essentials of Node.js application development with MongoDB.
* - .. figure:: /includes/figures/Node_LP_Catalog.png
:alt: MongoDB University Node.js Learning Path graphic
- `MongoDB Node.js Developer Path <https://learn.mongodb.com/learning-paths/mongodb-nodejs-developer-path>`_
Gain a comprehensive understanding of Node.js application development, complex operations, interactions
with MongoDB Atlas datasets, and more.