Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Core Server (i.e. SERVER) project are **public**.

### Support / Feedback

For issues with, questions about, or feedback for the Node.js driver, please look into our [support channels](https://docs.mongodb.com/manual/support). Please do not email any of the driver developers directly with issues or questions - you're more likely to get an answer on the [MongoDB Community Forums](https://community.mongodb.com/tags/c/drivers-odms-connectors/7/node-js-driver).
For issues with, questions about, or feedback for the Node.js driver, please look into our [support channels](https://www.mongodb.com/docs/manual/support). Please do not email any of the driver developers directly with issues or questions - you're more likely to get an answer on the [MongoDB Community Forums](https://community.mongodb.com/tags/c/drivers-odms-connectors/7/node-js-driver).

### Change Log

Expand All @@ -41,8 +41,8 @@ Change history can be found in [`HISTORY.md`](https://github.com/mongodb/node-mo

For version compatibility matrices, please refer to the following links:

- [MongoDB](https://docs.mongodb.com/drivers/node/current/compatibility/#mongodb-compatibility)
- [NodeJS](https://docs.mongodb.com/drivers/node/current/compatibility/#language-compatibility)
- [MongoDB](https://www.mongodb.com/docs/drivers/node/current/compatibility/#mongodb-compatibility)
- [NodeJS](https://www.mongodb.com/docs/drivers/node/current/compatibility/#language-compatibility)

#### Typescript Version

Expand Down Expand Up @@ -91,7 +91,7 @@ Third party:

## Quick Start

This guide will show you how to set up a simple application using Node.js and MongoDB. Its scope is only how to set up the driver and perform the simple CRUD operations. For more in-depth coverage, see the [official documentation](https://docs.mongodb.com/drivers/node/).
This guide will show you how to set up a simple application using Node.js and MongoDB. Its scope is only how to set up the driver and perform the simple CRUD operations. For more in-depth coverage, see the [official documentation](https://www.mongodb.com/docs/drivers/node/).

### Create the `package.json` file

Expand All @@ -116,7 +116,7 @@ npm install mongodb

### Start a MongoDB Server

For complete MongoDB installation instructions, see [the manual](https://docs.mongodb.org/manual/installation/).
For complete MongoDB installation instructions, see [the manual](https://www.mongodb.com/docs/manual/installation/).

1. Download the right MongoDB version from [MongoDB](https://www.mongodb.org/downloads)
2. Create a database directory (in this case under **/data**).
Expand Down Expand Up @@ -243,7 +243,7 @@ console.log('Deleted documents =>', deleteResult);

### Index a Collection

[Indexes](https://docs.mongodb.org/manual/indexes/) can improve your application's
[Indexes](https://www.mongodb.com/docs/manual/indexes/) can improve your application's
performance. The following function creates an index on the **a** field in the
**documents** collection.

Expand All @@ -252,7 +252,7 @@ const indexName = await collection.createIndex({ a: 1 });
console.log('index name =', indexName);
```

For more detailed information, see the [indexing strategies page](https://docs.mongodb.com/manual/applications/indexes/).
For more detailed information, see the [indexing strategies page](https://www.mongodb.com/docs/manual/applications/indexes/).

## Error Handling

Expand Down Expand Up @@ -282,9 +282,9 @@ try {

## Next Steps

- [MongoDB Documentation](https://docs.mongodb.com/manual/)
- [MongoDB Node Driver Documentation](https://docs.mongodb.com/drivers/node/)
- [Read about Schemas](https://docs.mongodb.com/manual/core/data-modeling-introduction/)
- [MongoDB Documentation](https://www.mongodb.com/docs/manual/)
- [MongoDB Node Driver Documentation](https://www.mongodb.com/docs/drivers/node/)
- [Read about Schemas](https://www.mongodb.com/docs/manual/core/data-modeling-introduction/)
- [Star us on GitHub](https://github.com/mongodb/node-mongodb-native)

## License
Expand Down
2 changes: 1 addition & 1 deletion docs/2.2/api/Collection.html
Original file line number Diff line number Diff line change
Expand Up @@ -4982,7 +4982,7 @@ <h4 class="name" id="createIndexes">


<div class="description">
<p>Creates multiple indexes in the collection, this method is only supported for<br>MongoDB 2.6 or higher. Earlier version of MongoDB will throw a command not supported<br>error. Index specifications are defined at http://docs.mongodb.org/manual/reference/command/createIndexes/.</p>
<p>Creates multiple indexes in the collection, this method is only supported for<br>MongoDB 2.6 or higher. Earlier version of MongoDB will throw a command not supported<br>error. Index specifications are defined at https://www.mongodb.com/docs/manual/reference/command/createIndexes/.</p>
</div>


Expand Down
2 changes: 1 addition & 1 deletion docs/2.2/api/Db.html
Original file line number Diff line number Diff line change
Expand Up @@ -5436,7 +5436,7 @@ <h4 class="name" id="createCollection">


<div class="description">
<p>Create a new collection on a server with the specified options. Use this to create capped collections.<br>More information about command options available at https://docs.mongodb.com/manual/reference/command/create/</p>
<p>Create a new collection on a server with the specified options. Use this to create capped collections.<br>More information about command options available at https://www.mongodb.com/docs/manual/reference/command/create/</p>
</div>


Expand Down
2 changes: 1 addition & 1 deletion docs/2.2/api/lib_collection.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -3442,7 +3442,7 @@ <h1 class="page-title" data-filename="lib_collection.js.html">Source: lib/collec
/**
* Creates multiple indexes in the collection, this method is only supported for
* MongoDB 2.6 or higher. Earlier version of MongoDB will throw a command not supported
* error. Index specifications are defined at http://docs.mongodb.org/manual/reference/command/createIndexes/.
* error. Index specifications are defined at https://www.mongodb.com/docs/manual/reference/command/createIndexes/.
* @method
* @param {array} indexSpecs An array of index specifications to be created
* @param {Collection~resultCallback} [callback] The command result callback
Expand Down
2 changes: 1 addition & 1 deletion docs/2.2/api/lib_db.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -2367,7 +2367,7 @@ <h1 class="page-title" data-filename="lib_db.js.html">Source: lib/db.js</h1>

/**
* Create a new collection on a server with the specified options. Use this to create capped collections.
* More information about command options available at https://docs.mongodb.com/manual/reference/command/create/
* More information about command options available at https://www.mongodb.com/docs/manual/reference/command/create/
*
* @method
* @param {string} name the collection name we wish to access.
Expand Down
16 changes: 8 additions & 8 deletions docs/2.2/css/mongodb-docs.css
Original file line number Diff line number Diff line change
Expand Up @@ -497,14 +497,14 @@ ul.home-nav li.docs { width: 276px; }

ul.home-nav li.docs a, ul.home-nav li.docs a:visited {
float: left;
background: url(http://www.mongodb.org/static/images/home_nav.png) -11px -63px;
background: url(www.mongodb.com/docs/static/images/home_nav.png) -11px -63px;
width: 209px;
height: 54px;
}

ul.home-nav li.docs a:hover {
float: left;
background: url(http://www.mongodb.org/static/images/home_nav.png) -11px 0;
background: url(www.mongodb.com/docs/static/images/home_nav.png) -11px 0;
width: 209px;
height: 54px;
}
Expand All @@ -513,14 +513,14 @@ ul.home-nav li.try { width: 238px; }

ul.home-nav li.try a, ul.home-nav li.try a:visited {
float: left;
background: url(http://www.mongodb.org/static/images/home_nav.png) -274px -63px;
background: url(www.mongodb.com/docs/static/images/home_nav.png) -274px -63px;
width: 176px;
height: 54px;
}

ul.home-nav li.try a:hover {
float: left;
background: url(http://www.mongodb.org/static/images/home_nav.png) -274px 0;
background: url(www.mongodb.com/docs/static/images/home_nav.png) -274px 0;
width: 176px;
height: 54px;
}
Expand All @@ -529,14 +529,14 @@ ul.home-nav li.downloads { width: 245px; }

ul.home-nav li.downloads a, ul.home-nav li.downloads a:visited {
float: left;
background: url(http://www.mongodb.org/static/images/home_nav.png) -497px -63px;
background: url(www.mongodb.com/docs/static/images/home_nav.png) -497px -63px;
width: 185px;
height: 54px;
}

ul.home-nav li.downloads a:hover {
float: left;
background: url(http://www.mongodb.org/static/images/home_nav.png) -497px 0;
background: url(www.mongodb.com/docs/static/images/home_nav.png) -497px 0;
width: 185px;
height: 54px;
}
Expand All @@ -547,14 +547,14 @@ ul.home-nav li.drivers {

ul.home-nav li.drivers a, ul.home-nav li.drivers a:visited {
float: left;
background: url(http://www.mongodb.org/static/images/home_nav.png) right -63px no-repeat;
background: url(www.mongodb.com/docs/static/images/home_nav.png) right -63px no-repeat;
width: 194px;
height: 54px;
}

ul.home-nav li.drivers a:hover {
float: left;
background: url(http://www.mongodb.org/static/images/home_nav.png) right 0 no-repeat;
background: url(www.mongodb.com/docs/static/images/home_nav.png) right 0 no-repeat;
width: 194px;
height: 54px;
}
Expand Down
12 changes: 6 additions & 6 deletions docs/2.2/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,17 @@

<div class="logo pull-left">
<a href="https://www.mongodb.com/">
<img src="http://mongodb.github.io/node-mongodb-native/img/logo-mongodb-header.png", alt="MongoDB.com" />
<img src="https://mongodb.github.io/node-mongodb-native/img/logo-mongodb-header.png", alt="MongoDB.com" />
</a>
</div>

<div>
<div class="nav-items pull-right">
<a href="https://university.mongodb.com" data-toggle="tooltip" data-placement="bottom" title="Free Online Classes">MongoDB University</a>
<a href="http://www.mongodb.org/downloads" data-toggle="tooltip" data-placement="bottom" title="Download MongoDB">Downloads</a>
<a href="http://www.mongodb.org/get-involved" data-toggle="tooltip" data-placement="bottom" title="Get involved with MongoDB">Community</a>
<a href="http://docs.mongodb.org" data-toggle="tooltip" data-placement="bottom" title="The MongoDB Documentation">Docs</a>
<a href="http://blog.mongodb.org" data-toggle="tooltip" data-placement="bottom" title="The MongoDB Blog">Blog</a>
<a href="https://www.mongodb.com/try" data-toggle="tooltip" data-placement="bottom" title="Download MongoDB">Downloads</a>
<a href="https://www.mongodb.com/community" data-toggle="tooltip" data-placement="bottom" title="Get involved with MongoDB">Community</a>
<a href="https://www.mongodb.com/docs" data-toggle="tooltip" data-placement="bottom" title="The MongoDB Documentation">Docs</a>
<a href="https://www.mongodb.com/blog" data-toggle="tooltip" data-placement="bottom" title="The MongoDB Blog">Blog</a>
<div id="search">
<form method="get" action="//www.google.com/search" target="_blank">
<input type="text" name="searchQuery" size="20" value="" autocomplete="off" placeholder="Search docs">
Expand Down Expand Up @@ -2177,7 +2177,7 @@ <h3>

<div class="alert alert-info" role="alert">
Note: You are currently viewing version 2.2 of the Node.js driver documentation.
<a href="https://docs.mongodb.com/drivers/node">Click here</a> for the latest version.
<a href="https://www.mongodb.com/docs/drivers/node">Click here</a> for the latest version.
</div>


Expand Down
12 changes: 6 additions & 6 deletions docs/2.2/installation-guide/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,17 @@

<div class="logo pull-left">
<a href="https://www.mongodb.com/">
<img src="http://mongodb.github.io/node-mongodb-native/img/logo-mongodb-header.png", alt="MongoDB.com" />
<img src="https://mongodb.github.io/node-mongodb-native/img/logo-mongodb-header.png", alt="MongoDB.com" />
</a>
</div>

<div>
<div class="nav-items pull-right">
<a href="https://university.mongodb.com" data-toggle="tooltip" data-placement="bottom" title="Free Online Classes">MongoDB University</a>
<a href="http://www.mongodb.org/downloads" data-toggle="tooltip" data-placement="bottom" title="Download MongoDB">Downloads</a>
<a href="http://www.mongodb.org/get-involved" data-toggle="tooltip" data-placement="bottom" title="Get involved with MongoDB">Community</a>
<a href="http://docs.mongodb.org" data-toggle="tooltip" data-placement="bottom" title="The MongoDB Documentation">Docs</a>
<a href="http://blog.mongodb.org" data-toggle="tooltip" data-placement="bottom" title="The MongoDB Blog">Blog</a>
<a href="https://www.mongodb.com/try" data-toggle="tooltip" data-placement="bottom" title="Download MongoDB">Downloads</a>
<a href="https://www.mongodb.com/community" data-toggle="tooltip" data-placement="bottom" title="Get involved with MongoDB">Community</a>
<a href="https://www.mongodb.com/docs" data-toggle="tooltip" data-placement="bottom" title="The MongoDB Documentation">Docs</a>
<a href="https://www.mongodb.com/blog" data-toggle="tooltip" data-placement="bottom" title="The MongoDB Blog">Blog</a>
<div id="search">
<form method="get" action="//www.google.com/search" target="_blank">
<input type="text" name="searchQuery" size="20" value="" autocomplete="off" placeholder="Search docs">
Expand Down Expand Up @@ -2176,7 +2176,7 @@ <h3>

<div class="alert alert-info" role="alert">
Note: You are currently viewing version 2.2 of the Node.js driver documentation.
<a href="https://docs.mongodb.com/drivers/node">Click here</a> for the latest version.
<a href="https://www.mongodb.com/docs/drivers/node">Click here</a> for the latest version.
</div>


Expand Down
12 changes: 6 additions & 6 deletions docs/2.2/installation-guide/installation-guide/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,17 @@

<div class="logo pull-left">
<a href="https://www.mongodb.com/">
<img src="http://mongodb.github.io/node-mongodb-native/img/logo-mongodb-header.png", alt="MongoDB.com" />
<img src="https://mongodb.github.io/node-mongodb-native/img/logo-mongodb-header.png", alt="MongoDB.com" />
</a>
</div>

<div>
<div class="nav-items pull-right">
<a href="https://university.mongodb.com" data-toggle="tooltip" data-placement="bottom" title="Free Online Classes">MongoDB University</a>
<a href="http://www.mongodb.org/downloads" data-toggle="tooltip" data-placement="bottom" title="Download MongoDB">Downloads</a>
<a href="http://www.mongodb.org/get-involved" data-toggle="tooltip" data-placement="bottom" title="Get involved with MongoDB">Community</a>
<a href="http://docs.mongodb.org" data-toggle="tooltip" data-placement="bottom" title="The MongoDB Documentation">Docs</a>
<a href="http://blog.mongodb.org" data-toggle="tooltip" data-placement="bottom" title="The MongoDB Blog">Blog</a>
<a href="https://www.mongodb.com/try" data-toggle="tooltip" data-placement="bottom" title="Download MongoDB">Downloads</a>
<a href="https://www.mongodb.com/community" data-toggle="tooltip" data-placement="bottom" title="Get involved with MongoDB">Community</a>
<a href="https://www.mongodb.com/docs" data-toggle="tooltip" data-placement="bottom" title="The MongoDB Documentation">Docs</a>
<a href="https://www.mongodb.com/blog" data-toggle="tooltip" data-placement="bottom" title="The MongoDB Blog">Blog</a>
<div id="search">
<form method="get" action="//www.google.com/search" target="_blank">
<input type="text" name="searchQuery" size="20" value="" autocomplete="off" placeholder="Search docs">
Expand Down Expand Up @@ -1438,7 +1438,7 @@ <h3>

<div class="alert alert-info" role="alert">
Note: You are currently viewing version 2.2 of the Node.js driver documentation.
<a href="https://docs.mongodb.com/drivers/node">Click here</a> for the latest version.
<a href="https://www.mongodb.com/docs/drivers/node">Click here</a> for the latest version.
</div>


Expand Down
14 changes: 7 additions & 7 deletions docs/2.2/issues-help/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,17 @@

<div class="logo pull-left">
<a href="https://www.mongodb.com/">
<img src="http://mongodb.github.io/node-mongodb-native/img/logo-mongodb-header.png", alt="MongoDB.com" />
<img src="https://mongodb.github.io/node-mongodb-native/img/logo-mongodb-header.png", alt="MongoDB.com" />
</a>
</div>

<div>
<div class="nav-items pull-right">
<a href="https://university.mongodb.com" data-toggle="tooltip" data-placement="bottom" title="Free Online Classes">MongoDB University</a>
<a href="http://www.mongodb.org/downloads" data-toggle="tooltip" data-placement="bottom" title="Download MongoDB">Downloads</a>
<a href="http://www.mongodb.org/get-involved" data-toggle="tooltip" data-placement="bottom" title="Get involved with MongoDB">Community</a>
<a href="http://docs.mongodb.org" data-toggle="tooltip" data-placement="bottom" title="The MongoDB Documentation">Docs</a>
<a href="http://blog.mongodb.org" data-toggle="tooltip" data-placement="bottom" title="The MongoDB Blog">Blog</a>
<a href="https://www.mongodb.com/try" data-toggle="tooltip" data-placement="bottom" title="Download MongoDB">Downloads</a>
<a href="https://www.mongodb.com/community" data-toggle="tooltip" data-placement="bottom" title="Get involved with MongoDB">Community</a>
<a href="https://www.mongodb.com/docs" data-toggle="tooltip" data-placement="bottom" title="The MongoDB Documentation">Docs</a>
<a href="https://www.mongodb.com/blog" data-toggle="tooltip" data-placement="bottom" title="The MongoDB Blog">Blog</a>
<div id="search">
<form method="get" action="//www.google.com/search" target="_blank">
<input type="text" name="searchQuery" size="20" value="" autocomplete="off" placeholder="Search docs">
Expand Down Expand Up @@ -2181,7 +2181,7 @@ <h3>

<div class="alert alert-info" role="alert">
Note: You are currently viewing version 2.2 of the Node.js driver documentation.
<a href="https://docs.mongodb.com/drivers/node">Click here</a> for the latest version.
<a href="https://www.mongodb.com/docs/drivers/node">Click here</a> for the latest version.
</div>


Expand Down Expand Up @@ -2236,7 +2236,7 @@ <h2 id="bugs-feature-requests">Bugs / Feature Requests</h2>
<p>Bug reports in JIRA for the Node.js driver and the Core Server (i.e. SERVER) project are <strong>public</strong>.</p>

<p>If you’ve identified a security vulnerability in a driver or any other
MongoDB project, please report it according to the instructions found in the <a href="http://docs.mongodb.org/manual/tutorial/create-a-vulnerability-report">Create a Vulnerability Report</a>.</p>
MongoDB project, please report it according to the instructions found in the <a href="https://www.mongodb.com/docs/manual/tutorial/create-a-vulnerability-report">Create a Vulnerability Report</a>.</p>

<h2 id="pull-requests">Pull Requests</h2>

Expand Down
12 changes: 6 additions & 6 deletions docs/2.2/quick-start/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,17 @@

<div class="logo pull-left">
<a href="https://www.mongodb.com/">
<img src="http://mongodb.github.io/node-mongodb-native/img/logo-mongodb-header.png", alt="MongoDB.com" />
<img src="https://mongodb.github.io/node-mongodb-native/img/logo-mongodb-header.png", alt="MongoDB.com" />
</a>
</div>

<div>
<div class="nav-items pull-right">
<a href="https://university.mongodb.com" data-toggle="tooltip" data-placement="bottom" title="Free Online Classes">MongoDB University</a>
<a href="http://www.mongodb.org/downloads" data-toggle="tooltip" data-placement="bottom" title="Download MongoDB">Downloads</a>
<a href="http://www.mongodb.org/get-involved" data-toggle="tooltip" data-placement="bottom" title="Get involved with MongoDB">Community</a>
<a href="http://docs.mongodb.org" data-toggle="tooltip" data-placement="bottom" title="The MongoDB Documentation">Docs</a>
<a href="http://blog.mongodb.org" data-toggle="tooltip" data-placement="bottom" title="The MongoDB Blog">Blog</a>
<a href="https://www.mongodb.com/try" data-toggle="tooltip" data-placement="bottom" title="Download MongoDB">Downloads</a>
<a href="https://www.mongodb.com/community" data-toggle="tooltip" data-placement="bottom" title="Get involved with MongoDB">Community</a>
<a href="https://www.mongodb.com/docs" data-toggle="tooltip" data-placement="bottom" title="The MongoDB Documentation">Docs</a>
<a href="https://www.mongodb.com/blog" data-toggle="tooltip" data-placement="bottom" title="The MongoDB Blog">Blog</a>
<div id="search">
<form method="get" action="//www.google.com/search" target="_blank">
<input type="text" name="searchQuery" size="20" value="" autocomplete="off" placeholder="Search docs">
Expand Down Expand Up @@ -2176,7 +2176,7 @@ <h3>

<div class="alert alert-info" role="alert">
Note: You are currently viewing version 2.2 of the Node.js driver documentation.
<a href="https://docs.mongodb.com/drivers/node">Click here</a> for the latest version.
<a href="https://www.mongodb.com/docs/drivers/node">Click here</a> for the latest version.
</div>


Expand Down
Loading