Skip to content

Commit f846581

Browse files
committed
Merge branch 'patch-5' of https://github.com/vkarpov15/node-mongodb-native into 2.2
2 parents cd783aa + a1ca631 commit f846581

File tree

15 files changed

+24
-23
lines changed

15 files changed

+24
-23
lines changed

docs/reference/content/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ type = "index"
99
Welcome to the MongoDB Node.js 2.x driver documentation.
1010

1111

12-
## What's New in 2.1
12+
## What's New
1313

1414
The [What's New]({{< relref "upgrade-migration/index.md" >}}) guide explains the major new features of the driver.
1515

docs/reference/content/installation-guide/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ date = "2015-03-17T15:36:56Z"
33
title = "Installation Guide"
44
[menu.main]
55
identifier = "Installation Guide"
6-
weight = 15
6+
weight = 10
77
pre = "<i class='fa fa-puzzle-piece'></i>"
88
+++
99

docs/reference/content/quick-start/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ date = "2015-03-17T15:36:56Z"
33
title = "Quick Start"
44
[menu.main]
55
identifier = "Quick Start"
6-
weight = 10
6+
weight = 15
77
pre = "<i class='fa fa-road'></i>"
88
+++
99

docs/reference/content/tutorials/aggregation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title = "Aggregation"
44
[menu.main]
55
parent = "Tutorials"
66
identifier = "Aggregation"
7-
weight = 70
7+
weight = 46
88
pre = "<i class='fa'></i>"
99
+++
1010

docs/reference/content/tutorials/collections.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title = "Collections"
44
[menu.main]
55
parent = "Tutorials"
66
identifier = "Collections"
7-
weight = 45
7+
weight = 30
88
pre = "<i class='fa'></i>"
99
+++
1010

docs/reference/content/tutorials/commands.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title = "Database Commands"
44
[menu.main]
55
parent = "Tutorials"
66
identifier = "Database Commands"
7-
weight = 50
7+
weight = 70
88
pre = "<i class='fa'></i>"
99
+++
1010

docs/reference/content/tutorials/crud.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title = "CRUD Operations"
44
[menu.main]
55
parent = "Tutorials"
66
identifier = "CRUD Operations"
7-
weight = 30
7+
weight = 40
88
pre = "<i class='fa'></i>"
99
+++
1010

docs/reference/content/tutorials/geospatial-search.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title = "Geospatial Search"
44
[menu.main]
55
parent = "Tutorials"
66
identifier = "Geospatial Search"
7-
weight = 45
7+
weight = 55
88
pre = "<i class='fa'></i>"
99
+++
1010

docs/reference/content/tutorials/index.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,21 @@ The tutorials in this section provide examples of some frequently used operation
1414

1515
[Connect to MongoDB]({{< relref "tutorials/connect/index.md" >}})
1616

17-
[CRUD Operations]({{< relref "tutorials/crud.md" >}})
18-
1917
[Collections]({{< relref "tutorials/collections.md" >}})
2018

19+
[Create Indexes]({{< relref "tutorials/create-indexes.md" >}})
20+
21+
[CRUD Operations]({{< relref "tutorials/crud.md" >}})
22+
2123
[Projections]({{< relref "tutorials/projections.md" >}})
2224

2325
[Aggregation]({{< relref "tutorials/aggregation.md" >}})
2426

25-
[Create Indexes]({{< relref "tutorials/create-indexes.md" >}})
26-
2727
[Text Search]({{< relref "tutorials/text-search.md" >}})
2828

2929
[Geospatial Search]({{< relref "tutorials/geospatial-search.md" >}})
3030

31-
[GridFS]({{< relref "tutorials/gridfs/index.md" >}})
32-
3331
[Database Commands]({{< relref "tutorials/commands.md" >}})
3432

33+
[GridFS]({{< relref "tutorials/gridfs/index.md" >}})
34+

docs/reference/content/tutorials/projections.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title = "Projections"
44
[menu.main]
55
parent = "Tutorials"
66
identifier = "Projections"
7-
weight = 30
7+
weight = 45
88
pre = "<i class='fa'></i>"
99
+++
1010

docs/reference/content/tutorials/text-search.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title = "Text Search"
44
[menu.main]
55
parent = "Tutorials"
66
identifier = "Text Search"
7-
weight = 40
7+
weight = 50
88
pre = "<i class='fa'></i>"
99
+++
1010

docs/reference/content/upgrade-migration/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ title = "Upgrade Guide"
99

1010
# What's New in 2.2
1111

12-
Key features of the 2.1 driver include:
12+
Key features of the 2.2 driver include:
1313

1414
- Redesigned Connection Pool.
1515
- Connection close will drain any outstanding operations.

docs/reference/content/upgrade-migration/upgrading.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
+++
22
date = "2015-03-19T12:53:39-04:00"
3-
title = "Upgrading to 2.0"
3+
title = "Upgrading to 2.x"
44
[menu.main]
55
parent = "Upgrade Guide"
6-
identifier = "Upgrading to 2.0"
6+
identifier = "Upgrading to 2.x"
77
weight = 40
88
pre = "<i class='fa fa-wrench'></i>"
99
+++
1010

11-
# Migrating Your Application To 2.0
11+
# Migrating Your Application To 2.x
1212

1313
There are some key changes in the driver that you should be aware of before migrating your application from version 1.x to 2.x.
1414
Some APIs are cleaned up, and some 1.x features have been deprecated.

docs/reference/themes/mongodb/layouts/partials/header/main.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,12 @@
66
</div>
77
<!--logo start-->
88
<div class="logo pull-left">
9-
<a href="{{ .Site.BaseURL}}/../">
10-
<img src="{{.Site.BaseURL}}/img/logo-mongodb-header.png", alt="MongoDB.org" />
9+
<a href="https://www.mongodb.com/">
10+
<img src="http://mongodb.github.io/node-mongodb-native/img/logo-mongodb-header.png", alt="MongoDB.com" />
1111
</a>
1212
</div>
1313
<!--logo end-->
1414
{{ partial "header/topRight.html" . }}
1515
</div>
1616
</header>
17+

lib/collection.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3092,7 +3092,7 @@ define.classMethod('group', {callback: true, promise:true});
30923092
* @ignore
30933093
*/
30943094
function processScope (scope) {
3095-
if(!isObject(scope)) {
3095+
if(!isObject(scope) || scope instanceof ObjectID) {
30963096
return scope;
30973097
}
30983098

0 commit comments

Comments
 (0)