MongoDB安装部署手稿

Edit

MongoDB 手册


第一章 Introduction


MongoDB入门学习目录(建议)

Databases

MongoDB stores BSON documents, i.e. data records, in collections; the collections in databases.

  • 选择DB

use mdb
  • 创建DB

Mongodb当一个DB不存在时,默认存储一条数据即可创建DB

use noexistdb
db.myNewCollection1.insert( { x: 1 } )

The insert() operation creates both the database myNewDB and the collection myNewCollection1 if they do not already exist

  • 1. DB命名规范

DataName Name Case Sensitivity,不分大小写

Mongodb中DBName名称大小写不敏感,所以不能单纯的通过大小写来区分DBName

  • 2. Restrictions on Database Names for Windows

如果Mongo运行在Windows平台,命名中不能包括如下特别字符,Also database names cannot contain the null character.并且不能带null字符

/\. "$*<>:|?`
  • 3. Restrictions on Database Names for Unix and Linux Systems

如果MongoDB运行在类UNIX或LINUX系统,那么不能包括如下特殊字符

/\. "$
  • 4. Length of Database Names

不能为空且小于64个字符

  • 5. Restriction on Collection Names

Collections必须以_或字母开头,但不能包括如下特殊字符

  • contain the $.

  • be an empty string (e.g. “”).

  • contain the null character.

  • begin with the system. prefix. (Reserved for internal use.)

If your collection name includes special characters, such as the underscore character, then to access the collection use the db.getCollection() method in the mongo shell or a similar method for your driver.

The maximum length of the collection namespace, which includes the database name, the dot (.) separator, and the collection name (i.e. .), is 120 bytes.

  • 6. Restrictions on Field Names

不能包括.或空字符。 不能以$开头。原理请参考 How does MongoDB address SQL or Query injection?
原文内容也可参考如下:
MongoDB represents queries as BSON objects. Typically client libraries provide a convenient, injection free, process to build these objects. Consider the following C++ example:

BSONObj my_query = BSON( "name" << a_name );
auto_ptr<DBClientCursor> cursor = c.query("tutorial.persons", my_query);

Here, my_query then will have a value such as { name : “Joe” }. If my_query contained special characters, for example ,, :, and {, the query simply wouldn’t match any documents. For example, users cannot hijack a query and convert it to a delete.

感觉官方的解释不是特别清楚,这里谈下个人的理解:
Mongo query函数底层默认不对正则或者.,{特殊元字符做处理,所以导致不能包括特殊字符

Collections

Mongo默认是把所有的的文档(Documents)以BSON格式存储在集合(collections)。Collections类似于传统数据库中的表(tables)。

  • 创建Collections

如果 collections 事先不存在,Mongo默认会事先创建当你第一次存储数据时

db.myNewCollection2.insert( { x: 1 }
db.myNewCollection3.createIndex( { y: 1 } )

Both the insert() and the createIndex() operations create their respective collection if they do not already exist.
insert() 和 createIndex() 均会分别建立对应的集合(collections)

  • Explicit Creation

MongoDB默认也明确提供了新建集合工具,同时具有丰富的参数配置。MongoDB provides the db.createCollection() method to explicitly create a collection with various options, such as setting the maximum size or the documentation validation rules.

Documents

Documents 按如下顺序介绍

  • Document Structure

  • Dot Notation

  • Document Limitations

  • Other Uses of the Document Structure

  • Additional Resources

Document Structure


MongoDB中一条记录就是一个document,MongoDB的数据结构以BSON方式存放,相比JSON而言BSON可以存放更为复杂的数据样式内容。更多关于BSON的内容可参考。一条记录包涵多对列和值匹配对的数据结构,MongoDB类似JSON Objects. 如下是例子

{
  "_id" : ObjectId("54c955492b7c8eb21818bd09"),
  "address" : {
     "street" : "2 Avenue",
     "zipcode" : "10075",
     "building" : "1480",
     "coord" : [ -73.9557413, 40.7720266 ]
  }
,
  "borough" : "Manhattan",
  "cuisine" : "Italian",
  "grades" : [
     {
        "date" : ISODate("2014-10-01T00:00:00Z"),
        "grade" : "A",
        "score" : 11
     },
     {
        "date" : ISODate("2014-01-16T00:00:00Z"),
        "grade" : "B",
        "score" : 17
     }
  ]
,
  "name" : "Vella",
  "restaurant_id" : "41704620"
}
  • Document Structure

MongoDB的数据结构多以kv的方式存放,如下样式。

{
  field1: value1,
  field2: value2,
  field3: value3,
  ...
  fieldN: valueN
}

其中的value可以是任意的BSON数据结构,可以是other documents, arrays, and arrays of documents.如:

var mydoc = {
              _id: ObjectId("5099803df3f4948bd2f98391"),
              name: { first: "Alan", last: "Turing" },
              birth: new Date('Jun 23, 1912'),
              death: new Date('Jun 07, 1954'),
              contribs: [ "Turing machine", "Turing test", "Turingery" ],
              views : NumberLong(1250000)
           }

上面的这个案例包括多个数据结构类似

  • _id holds an ObjectId.

  • name holds an embedded document that contains the fields first and last.

  • birth and death hold values of the Date type.

  • contribs holds an array of strings.

  • views holds a value of the NumberLong type.

Dot Notation


MongoDB 使用 . 来访问documents中列的元素,数组index默认从0开始。

  • 数组元素访问

{
  ...
  contribs: [ "Turing machine", "Turing test", "Turingery" ],
  ...
}

如我们希望访问contribs第三个元素,则用contribs.2即可

{
  ...
  name: { first: "Alan", last: "Turing" },
  ...
}

如希望取 namelast值,则 “name.last”即可

Document Limitations

  • Document Size Limit
    最大的BSON值为 16M

  • Document Field Order
    MongoDB以写顺序保存Document,除以下情况外:
    – The _id field is always the first field in the document.
    – Updates that include renaming of field names may result in the reordering of fields in the document.

Other Uses of the Document Structure

第二章 部署安装


  • 支持的平台

Platform 3.2 3 2.6 2.4 2.2
Amazon Linux
Debian 7
Fedora 8+
RHEL/CentOS 6.2+
RHEL/CentOS 7.0+
SLES 11
SLES 12
Solaris 64-bit
Ubuntu 12.04
Ubuntu 14.04
Microsoft Azure
Windows Vista/Server 2008R2/2012+
OSX 10.7+
  • 不建议32位系统,有很多限制

    • 3.0版本的mongo不再支持32位系统,即32位系统不支持WiredTiger 存储引擎

    • 32位系统因文件句柄限制的原因默认disable journaling

    • 另外,32位系统支持mongodb的最大容量为2GB,这容量还包括数据,indexes,

32位系统的详细限制可以参考这里:
Blog Post: 32-bit Limitations

  • MongoDB社区版的安装

MongoDB有Enterprise和Community两个版本,具体差别可以参考这里,更详细内容请参考官网

  • MongoDB Enterprise Server is the commercial edition of MongoDB.

    • In-memory Storage Engine (in beta) – deliver high throughput and predictable low latency

    • Encrypted Storage Engine – encrypt your data at rest

    • Advanced Security – secure your data with LDAP and Kerberos authentication, and comprehensive auditing

    • Commercial License – to meet your development and distribution requirements

功能区别对比请参考如下:

版本特性 社区版本 企业版本
JSON数据模型、自由模式 支持 支持
水平扩展的自动分片功能 支持 支持
内置副本以及高可用性 支持 支持
完整的、可扩展的索引支撑 支持 支持
丰富的文档查询功能 支持 支持
快速的文档内更新 支持 支持
聚合框架和MapReduce 支持 支持
使用GridFS存储大量多媒体数据 支持 支持
文本搜索 支持 支持
云、预置和混合部署 支持 支持
基于角色的权限控制 支持 支持
基于Kerberos先进的安全认证 不支持 支持
预置监控 不支持 支持
支持SNMP 不支持 支持
操作系统认证 不支持 支持

因为企业版是收费的,所以我们安装的是社区版。

Install MongoDB Community Edition on Red Hat Enterprise or CentOS Linux

package function
mongodb-org A metapackage that will automatically install the four component packages listed below.
mongodb-org-server Contains the mongod daemon and associated configuration and init scripts.
mongodb-org-mongos Contains the mongos daemon.
mongodb-org-shell Contains the mongo shell.
mongodb-org-tools Contains the following MongoDB tools: mongoimport bsondump, mongodump, mongoexport, mongofiles, mongooplog, mongoperf, mongorestore, mongostat, and mongotop.

MongoDB默认配置文件 /etc/mongod.conf, bind_ip 默认绑定 127.0.0.1
默认安装好的 MongoDB附带启动脚本,/etc/rc.d/init.d/mongod

1. Import the MongoDB public key

rpm --import https://www.mongodb.org/static/pgp/server-3.2.asc

2. Configure the package management system (yum)

编辑 /etc/yum.repos.d/mongodb-org-3.2.repo,使用如下的 repository 文件:

[mongodb-org-3.2]
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/3.2/x86_64/
gpgcheck=1
enabled=1

3. Install the MongoDB packages and associated tools

如果对版本没有要求,下面的命令默认安装最新稳定版本的MongoDB

yum install -y mongodb-org

如果希望指定版本安装,可以使用如下命令:

yum install -y mongodb-org-3.2.4 mongodb-org-server-3.2.4 mongodb-org-shell-3.2.4 mongodb-org-mongos-3.2.4 mongodb-org-tools-3.2.4

如果每次update的时候不希望升级部分组件,可以配置/etc/yum.conf

exclude=mongodb-org,mongodb-org-server,mongodb-org-shell,mongodb-org-mongos,mongodb-org-tools

4. Run MongoDB Community Edition

配置SELinux

IMPORTANT
You must configure SELinux to allow MongoDB to start on Red Hat Linux-based systems (Red Hat Enterprise Linux or CentOS Linux).

SELinux 的3种处理办法

  • 配置 /etc/selinux/config 关闭SELinux

SELINUX=disabled
  • 设置 SELinux为 permissive 状态

SELINUX=permissive
  • Enable SELinux,开放MongoDB的SELinux权限

semanage port -a -t mongod_port_t -p tcp 27017

WARNING
On RHEL 7.0, if you change the data path, the default SELinux policies will prevent mongod from having write access on the new data path if you do not change the security context.

5. 运行MongoDB

  • Start MongoDB

    service mongod start
  • 检查MongoDB是否启动成功

    [initandlisten] waiting for connections on port <port>

默认MongoDB端口号是 27017,同时注册MongoDB为开机启动

chkconfig mongod on
  • Stop MongoDB

    service mongod stop
  • Restart MongoDB

    service mongod restart
  • 使用Begin using MongoDB
    详细请参考文档

6. 卸载MongoDB

卸载是不可逆的,所以请注意保存数据

WARNING
This process will completely remove MongoDB, its configuration, and all databases. This process is not reversible, so ensure that all of your configuration and data is backed up before proceeding.

  • STOP MongoDB

    service mongod stop
  • Remove Packages

    yum erase $(rpm -qa | grep mongodb-org)
  • Remove Data Directories.

    sudo rm -r /var/log/mongodb
    sudo rm -r /var/lib/mongo

第三章 Mongo Shell


1. Mongo Shell介绍

mongo shell 是一个java交互式工具连接MongoDB,我们可以使用mongo shell 查询升级数据。
mongo shell 是MongoDB发行版的插件之一,安装完MongoDB后,mongo可以直接使用

默认执行mongo命令,mongo默认连接 localhost 并连接 27017 端口。

mongo

2. 常用命令

a> 显示当时db名

db

如上命令其它会默认返回 test,这是初次连接默认DBName。 使用 use 来切换DB,不切换DB直接查看其它DB信息可以使用db.getSiblingDB()

use <database>

列出现有所有DB

show dbs
  • 格式化输出结果Format Printed Results
    db.collection.find() 命令作用是返回数据查询结果,但如果数据结构默认没有使用 K/V 结构,则游标会自动重复查询配置的结果重复输出20次。我们可以通过 .pretty()友好输出结果。

    db.myCollection.find().pretty()
  • 命令执行

    - 命令可以分行执行
    - 类似python,如果以`(`,`[`,`{`等开始,会等到另外一半匹配后才能继续,否则报错
    - 和Linux系统命令一样具有补全功能

b> Insert

Insert Data with the mongo Shell,本节将按如下顺序介绍


使用insert()方法可以增加documentsMongoDBcollections,如果事先没有,则MongoDB会事先创建


use test

默认连接MongoDB后连接的test


插入一条documents到名为restaurantscollection集合,命令默认为创建 restaurants 集合,如果事先不存在该 collections的话。

db.restaurants.insert(
  {
     "address" : {
        "street" : "2 Avenue",
        "zipcode" : "10075",
        "building" : "1480",
        "coord" : [ -73.9557413, 40.7720266 ],
     },
     "borough" : "Manhattan",
     "cuisine" : "Italian",
     "grades" : [
        {
           "date" : ISODate("2014-10-01T00:00:00Z"),
           "grade" : "A",
           "score" : 11
        },
        {
           "date" : ISODate("2014-01-16T00:00:00Z"),
           "grade" : "B",
           "score" : 17
        }
     ],
     "name" : "Vella",
     "restaurant_id" : "41704620"
  }
)

执行成功后,MongoDB默认返回WriteResult函数结果返回

WriteResult({ "nInserted" : 1 })

其它信息可继续了解 insert()Documents

c> Find

Find功能介绍会从如下方面开始(Find or Query Data with the mongo Shell)

  • Overview

  • Prerequisites

  • Query for All Documents in a Collection

  • Specify Equality Conditions

  • Specify Conditions with Operators

  • Combine Conditions

  • Sort Query Results

  • Additional Information

  • Overview


使用find() 从 MongoDB集合查找所需数据

默认MongoDB返回所有查找到的数据,我们可以通过 filter(过滤器) 和 条件 (criteria ) 或者附加执行条件给 find() 方法实现精准查询。

  • Prerequisites


进入指定数据库

use test
  • Query for All Documents in a Collection


find()方法默认返回所有配置的执行结果,

db.restaurants.find()
  • Query by a Top Level Field

  • Query by a Field in an Embedded Document


两部分内容合为一起作为 MongoDB 的条件查询

db.restaurants.find( { "borough": "Manhattan" } )
db.restaurants.find( { "address.zipcode": "10075" } )

数组内容查询

db.restaurants.find( { "grades.grade": "B" } )
  • Specify Conditions with Operators(逻辑条件匹配查询)

{ <field1>: { <operator1>: <value1> } }

Greater Than Operator ($gt)

db.restaurants.find( { "grades.score": { $gt: 30 } } )

Less Than Operator ($lt)

db.restaurants.find( { "grades.score": { $lt: 10 } } )

Logical AND

db.restaurants.find( { "cuisine": "Italian", "address.zipcode": "10075" } )

Logical OR

db.restaurants.find(
  { $or: [ { "cuisine": "Italian" }, { "address.zipcode": "10075" } ] }
)
  • Sort Query Results


db.restaurants.find().sort( { "borough": 1, "address.zipcode": 1 } )

1 表示升序
-1 表示降序

如上的例子表示
For example, the following operation returns all documents in the restaurants collection, sorted first by the borough field in ascending order, and then, within each borough, by the “address.zipcode” field in ascending order:

d> Update

  • Update Top-Level Fields


The following operation updates the first document with name equal to “Juni”, using the $set operator to update the cuisine field and the $currentDate operator to update the lastModified field with the current date.

db.restaurants.update(
   { "name" : "Juni" },
   {
     $set: { "cuisine": "American (New)" },
     $currentDate: { "lastModified": true }
   }
)
  • Update an Embedded Field


To update a field within an embedded document, use the dot notation. When using the dot notation, enclose the whole dotted field name in quotes. The following updates the street field in the embedded address document.

db.restaurants.update(
 { "restaurant_id" : "41156888" },
 { $set: { "address.street": "East 31st Street" } }
)
  • Update Multiple Documents(多变更|多document变更|批量变更)


By default, the update() method updates a single document. To update multiple documents, use the multi option in the update() method. The following operation updates all documents that have address.zipcode field equal to “10016” and cuisine field equal to “Other”, setting the cuisine field to “Category To Be Determined” and the lastModified field to the current date.

db.restaurants.update(
 { "address.zipcode": "10016", cuisine: "Other" },
 {
   $set: { cuisine: "Category To Be Determined" },
   $currentDate: { "lastModified": true }
 },
 { multi: true}
)
  • Replace a Document


To replace the entire document except for the _id field, pass an entirely new document as the second argument to the update() method. The replacement document can have different fields from the original document. In the replacement document, you can omit the _id field since the _id field is immutable. If you do include the _id field, it must be the same value as the existing value.

IMPORTANT
After the update, the document only contains the field or fields in the replacement document.

After the following update, the modified document will only contain the _id field, name field, the address field. i.e. the document will not contain the restaurant_id, cuisine, grades, and the borough fields.

db.restaurants.update(
  { "restaurant_id" : "41704620" },
  {
    "name" : "Vella 2",
    "address" : {
             "coord" : [ -73.9557413, 40.7720266 ],
             "building" : "1480",
             "street" : "2 Avenue",
             "zipcode" : "10075"
    }
  }
)

e> Remove


remove() 方法接受指定条件后从集合(collections)移除文档记录(documents).

如需移除指定条件的documents,和query一样使用相同的语法和数据结构即可。

  • 移除所有符合条件的文档记录(documents.)Remove All Documents That Match a Condition

db.restaurants.remove( { "borough": "Manhattan" } )
  • 只移除一条记录Use the justOne Option

By default, the remove() method removes all documents that match the remove condition. Use the justOne option to limit the remove operation to only one of the matching documents.

db.restaurants.remove( { "borough": "Queens" }, { justOne: true } )
  • 删除所有记录(Remove All Documents)

该方法collections集合本身和indexes仍然保留,所以如果希望删除所有建议使用 drop

To remove all documents from a collection, pass an empty conditions document {} to the remove() method.

db.restaurants.remove( { } )
  • 删除集合 Drop a Collection

The remove all operation only removes the documents from the collection. The collection itself, as well as any indexes for the collection, remain. To remove all documents from a collection, it may be more efficient to drop the entire collection, including the indexes, and then recreate the collection and rebuild the indexes. Use the drop() method to drop a collection, including any indexes.

db.restaurants.drop()

Upon successful drop of the collection, the operation returns true.

f> Aggregation

MongoDB支持数据聚合,如指定key分组并且计划总合或分组总合。

用法如下:

db.collection.aggregate( [ <stage1>, <stage2>, ... ] )
  • 指定列group by 分组并求和 Group Documents by a Field and Calculate Count

Use the $group stage to group by a specified key. In the $group stage, specify the group by key in the _id field. $group accesses fields by the field path, which is the field name prefixed by a dollar sign $. The $group stage can use accumulators to perform calculations for each group. The following example groups the documents in the restaurants collection by the borough field and uses the $sum accumulator to count the documents for each group.

db.restaurants.aggregate(
  [
    { $group: { "_id": "$borough", "count": { $sum: 1 } } }
  ]
);

类似结果返回如下:

{ "_id" : "Staten Island", "count" : 969 }
{ "_id" : "Brooklyn", "count" : 6086 }
{ "_id" : "Manhattan", "count" : 10259 }
{ "_id" : "Queens", "count" : 5656 }
{ "_id" : "Bronx", "count" : 2338 }
{ "_id" : "Missing", "count" : 51 }
  • Filter and Group Documents


Use the $match stage to filter documents. $match uses the MongoDB query syntax. The following pipeline uses $match to query the restaurants collection for documents with borough equal to “Queens” and cuisine equal to Brazilian. Then the $group stage groups the matching documents by the address.zipcode field and uses the $sum accumulator to calculate the count. $group accesses fields by the field path, which is the field name prefixed by a dollar sign $.

db.restaurants.aggregate(
  [
    { $match: { "borough": "Queens", "cuisine": "Brazilian" } },
    { $group: { "_id": "$address.zipcode" , "count": { $sum: 1 } } }
  ]
);

返回结果如下:

The result set consists of the following documents:

g. Indexes

Indexes主要用于提升查询效率。MongoDB默认创建索引 _id当创建 collections时。

createIndex() 用于创建 Indexes 索引。使用方法如下:

{ <field1>: <type1>, ...}

使用1 为升序
使用-1为降序

  • 创建单列索引


Create an ascending index on the “cuisine” field of the restaurants collection.

db.restaurants.createIndex( { "cuisine": 1 } )

The method returns a document with the status of the operation.

{
 "createdCollectionAutomatically" : false,
 "numIndexesBefore" : 1,
 "numIndexesAfter" : 2,
 "ok" : 1
}
  • 创建混合索引 Create a compound index

MongoDB supports compound indexes which are indexes on multiple fields. The order of the fields determine how the index stores its keys. For example, the following operation creates a compound index on the “cuisine” field and the “address.zipcode” field. The index orders its entries first by ascending “cuisine” values, and then, within each “cuisine”, by descending “address.zipcode” values.

db.restaurants.createIndex( { "cuisine": 1, "address.zipcode": -1 } )

The method returns a document with the status of the operation.

{
  "createdCollectionAutomatically" : false,
  "numIndexesBefore" : 2,
  "numIndexesAfter" : 3,
  "ok" : 1
}

第四章 MongoDB用户及权限管理

To authenticate a user, MongoDB provides the db.auth() method.

MongoDB认证即可通过 mongo shell在命令行认证,也可以进行MongoDB后使用db.auth() 认证

MongoDB可以存在相同用户名的用户,但是要存在不同的库中。如果希望一个用户同时对多个库拥有权限,需要对该用户赋多个库的权限即可,而不是到对应的库创建相同的用户名。
The user’s name and authentication database serve as a unique identifier for that user. That is, if two users have the same name but are created in different databases, they are two separate users. If you intend to have a single user with permissions on multiple databases, create a single user with roles in the applicable databases instead of creating the user multiple times in different databases.

MongoDB默认也有很多内置用户如

Role Short Description
read Provides the ability to read data on all non-system collections and on the following system collections: system.indexes, system.js, and system.namespaces collections. For the specific privileges granted by the role, see read.
readWrite Provides all the privileges of the read role and the ability to modify data on all non-system collections and the system.js collections。 For the specific privileges granted by the role, see readWrite.

mongodb密码忘记

修改 mongodb 配置,将 auth = true 注释掉,或者改成 false

vim /etc/mongodb.conf          

重启 mongodb 服务

service mongodb restart 

连接mongo

mongo                          # 运行客户端(也可以去mongodb安装目录下运行这个)
use admin                      # 切换到系统帐户表
db.system.users.find()         # 查看当前帐户(密码有加密过)
db.system.users.remove({})     # 删除所有帐户
db.addUser('admin','password') # 添加新帐户

恢复 auth = true

vim /etc/mongodb.conf  

重启 mongodb 服务

enter code here

client 连接方式

  • 指定数据连接

mongod --port 27017 --dbpath /data/db1
  • 创建 administrator 用户

use admin
db.createUser(
 {
   user: "myUserAdmin",
   pwd: "abc123",
   roles: [ { role: "userAdminAnyDatabase", db: "admin" } ]
 }
)
  • (重启mongo连接)Re-start the MongoDB instance with access control

mongod --auth --port 27017 --dbpath /data/db1
  • 以管理员身份连接

mongo --port 27017 -u "myUserAdmin" -p "abc123" --authenticationDatabase "admin"
  • 或者进入mongo后使用如下命令连接

use admin
db.auth("myUserAdmin", "abc123" )

mongo shell命令集用法

Collection
Name Description
db.collection.aggregate() Provides access to the aggregation pipeline.
db.collection.bulkWrite() Provides bulk write operation functionality.
db.collection.count() Wraps count to return a count of the number of documents in a collection or matching a query.
db.collection.copyTo() Deprecated. Wraps eval to copy data between collections in a single MongoDB instance.
db.collection.createIndex() Builds an index on a collection.
db.collection.dataSize() Returns the size of the collection. Wraps the size field in the output of the collStats.
db.collection.deleteOne() Deletes a single document in a collection.
db.collection.deleteMany() Deletes multiple documents in a collection.
db.collection.distinct() Returns an array of documents that have distinct values for the specified field.
db.collection.drop() Removes the specified collection from the database.
db.collection.dropIndex() Removes a specified index on a collection.
db.collection.dropIndexes() Removes all indexes on a collection.
db.collection.ensureIndex() Deprecated. Use db.collection.createIndex().
db.collection.explain() Returns information on the query execution of various methods.
db.collection.find() Performs a query on a collection and returns a cursor object.
db.collection.findAndModify() Atomically modifies and returns a single document.
db.collection.findOne() Performs a query and returns a single document.
db.collection.findOneAndDelete() Finds a single document and deletes it.
db.collection.findOneAndReplace() Finds a single document and replaces it.
db.collection.findOneAndUpdate() Finds a single document and updates it.
db.collection.getIndexes() Returns an array of documents that describe the existing indexes on a collection.
db.collection.getShardDistribution() For collections in sharded clusters,db.collection.getShardDistribution() reports data ofchunk distribution.
db.collection.getShardVersion() Internal diagnostic method for shard cluster.
db.collection.group() Provides simple data aggregation function. Groups documents in a collection by a key, and processes the results. Use aggregate() for more complex data aggregation.
db.collection.insert() Creates a new document in a collection.
db.collection.insertOne() Inserts a new document in a collection.
db.collection.insertMany() Inserts several new document in a collection.
db.collection.isCapped() Reports if a collection is a capped collection.
db.collection.mapReduce() Performs map-reduce style data aggregation.
db.collection.reIndex() Rebuilds all existing indexes on a collection.
db.collection.replaceOne() Replaces a single document in a collection.
db.collection.remove() Deletes documents from a collection.
db.collection.renameCollection() Changes the name of a collection.
db.collection.save() Provides a wrapper around an insert() and update() to insert new documents.
db.collection.stats() Reports on the state of a collection. Provides a wrapper around thecollStats.
db.collection.storageSize() Reports the total size used by the collection in bytes. Provides a wrapper around the storageSize field of the collStats output.
db.collection.totalSize() Reports the total size of a collection, including the size of all documents and all indexes on a collection.
db.collection.totalIndexSize() Reports the total size used by the indexes on a collection. Provides a wrapper around the totalIndexSize field of the collStatsoutput.
db.collection.update() Modifies a document in a collection.
db.collection.updateOne() Modifies a single document in a collection.
db.collection.updateMany() Modifies multiple documents in a collection.
db.collection.validate() Performs diagnostic operations on a collection.
Cursor
Name Description
cursor.batchSize() Controls the number of documents MongoDB will return to the client in a single network message.
cursor.close() Close a cursor and free associated server resources.
cursor.comment() Attaches a comment to the query to allow for traceability in the logs and the system.profile collection.
cursor.count() Modifies the cursor to return the number of documents in the result set rather than the documents themselves.
cursor.explain() Reports on the query execution plan for a cursor.
cursor.forEach() Applies a JavaScript function for every document in a cursor.
cursor.hasNext() Returns true if the cursor has documents and can be iterated.
cursor.hint() Forces MongoDB to use a specific index for a query.
cursor.itcount() Computes the total number of documents in the cursor client-side by fetching and iterating the result set.
cursor.limit() Constrains the size of a cursor’s result set.
cursor.map() Applies a function to each document in a cursor and collects the return values in an array.
cursor.maxScan() Specifies the maximum number of items to scan; documents for collection scans, keys for index scans.
cursor.maxTimeMS() Specifies a cumulative time limit in milliseconds for processing operations on a cursor.
cursor.max() Specifies an exclusive upper index bound for a cursor. For use with cursor.hint()
cursor.min() Specifies an inclusive lower index bound for a cursor. For use with cursor.hint()
cursor.next() Returns the next document in a cursor.
cursor.noCursorTimeout() Instructs the server to avoid closing a cursor automatically after a period of inactivity.
cursor.objsLeftInBatch() Returns the number of documents left in the current cursor batch.
cursor.pretty() Configures the cursor to display results in an easy-to-read format.
cursor.readConcern() Specifies a read concern for a find() operation.
cursor.readPref() Specifies a read preference to a cursor to control how the client directs queries to areplica set.
cursor.returnKey() Modifies the cursor to return index keys rather than the documents.
cursor.showRecordId() Adds an internal storage engine ID field to each document returned by the cursor.
cursor.size() Returns a count of the documents in the cursor after applying skip() and limit()methods.
cursor.skip() Returns a cursor that begins returning results only after passing or skipping a number of documents.
cursor.snapshot() Forces the cursor to use the index on the _id field. Ensures that the cursor returns each document, with regards to the value of the _id field, only once.
cursor.sort() Returns results ordered according to a sort specification.
cursor.tailable() Marks the cursor as tailable. Only valid for cursors over capped collections.
cursor.toArray() Returns an array that contains all documents returned by the cursor.
Database
Name Description
db.cloneCollection() Copies data directly between MongoDB instances. WrapscloneCollection.
db.cloneDatabase() Copies a database from a remote host to the current host. Wraps clone.
db.commandHelp() Returns help information for a database command.
db.copyDatabase() Copies a database to another database on the current host. Wraps copydb.
db.createCollection() Creates a new collection. Commonly used to create a capped collection.
db.currentOp() Reports the current in-progress operations.
db.dropDatabase() Removes the current database.
db.eval() Deprecated. Passes a JavaScript function to the mongod instance for server-side JavaScript evaluation.
db.fsyncLock() Flushes writes to disk and locks the database to prevent write operations and assist backup operations. Wraps fsync.
db.fsyncUnlock() Allows writes to continue on a database locked with db.fsyncLock().
db.getCollection() Returns a collection object. Used to access collections with names that are not valid in the mongo shell.
db.getCollectionInfos() Returns collection information for all collections in the current database.
db.getCollectionNames() Lists all collections in the current database.
db.getLastError() Checks and returns the status of the last operation. Wraps getLastError.
db.getLastErrorObj() Returns the status document for the last operation. Wraps getLastError.
db.getLogComponents() Returns the log message verbosity levels.
db.getMongo() Returns the Mongo() connection object for the current connection.
db.getName() Returns the name of the current database.
db.getPrevError() Returns a status document containing all errors since the last error reset. Wraps getPrevError.
db.getProfilingLevel() Returns the current profiling level for database operations.
db.getProfilingStatus() Returns a document that reflects the current profiling level and the profiling threshold.
db.getReplicationInfo() Returns a document with replication statistics.
db.getSiblingDB() Provides access to the specified database.
db.help() Displays descriptions of common db object methods.
db.hostInfo() Returns a document with information about the system MongoDB runs on. Wraps hostInfo
db.isMaster() Returns a document that reports the state of the replica set.
db.killOp() Terminates a specified operation.
db.listCommands() Displays a list of common database commands.
db.loadServerScripts() Loads all scripts in the system.js collection for the current database into the shell session.
db.logout() Ends an authenticated session.
db.printCollectionStats() Prints statistics from every collection. Wraps db.collection.stats().
db.printReplicationInfo() Prints a report of the status of the replica set from the perspective of the primary.
db.printShardingStatus() Prints a report of the sharding configuration and the chunk ranges.
db.printSlaveReplicationInfo() Prints a report of the status of the replica set from the perspective of the secondaries.
db.repairDatabase() Runs a repair routine on the current database.
db.resetError() Resets the error message returned by db.getPrevError() andgetPrevError.
db.runCommand() Runs a database command.
db.serverBuildInfo() Returns a document that displays the compilation parameters for the mongodinstance. Wraps buildinfo.
db.serverCmdLineOpts() Returns a document with information about the runtime used to start the MongoDB instance. Wraps getCmdLineOpts.
db.serverStatus() Returns a document that provides an overview of the state of the database process.
db.setLogLevel() Sets a single log message verbosity level.
db.setProfilingLevel() Modifies the current level of database profiling.
db.shutdownServer() Shuts down the current mongod or mongos process cleanly and safely.
db.stats() Returns a document that reports on the state of the current database.
db.version() Returns the version of the mongod instance.
db.upgradeCheck() Performs a preliminary check for upgrade preparedness for a specific database or collection.
db.upgradeCheckAllDBs() Performs a preliminary check for upgrade preparedness for all databases and collections.
Query Plan Cache
Name Description
db.collection.getPlanCache() Returns an interface to access the query plan cache object and associated PlanCache methods for a collection.”
PlanCache.help() Displays the methods available for a collection’s query plan cache. Accessible through the plan cache object of a specific collection, i.e.db.collection.getPlanCache().help().
PlanCache.listQueryShapes() Displays the query shapes for which cached query plans exist. Accessible through the plan cache object of a specific collection, i.e.db.collection.getPlanCache().listQueryShapes().
PlanCache.getPlansByQuery() Displays the cached query plans for the specified query shape. Accessible through the plan cache object of a specific collection, i.e.db.collection.getPlanCache().getPlansByQuery().
PlanCache.clearPlansByQuery() Clears the cached query plans for the specified query shape. Accessible through the plan cache object of a specific collection, i.e.db.collection.getPlanCache().clearPlansByQuery()
PlanCache.clear() Clears all the cached query plans for a collection. Accessible through the plan cache object of a specific collection, i.e.db.collection.getPlanCache().clear().
Bulk Write Operation
Name Description
Bulk() Bulk operations builder.
db.collection.initializeOrderedBulkOp() Initializes a Bulk() operations builder for an ordered list of operations.
db.collection.initializeUnorderedBulkOp() Initializes a Bulk() operations builder for an unordered list of operations.
Bulk.insert() Adds an insert operation to a list of operations.
Bulk.find() Specifies the query condition for an update or a remove operation.
Bulk.find.removeOne() Adds a single document remove operation to a list of operations.
Bulk.find.remove() Adds a multiple document remove operation to a list of operations.
Bulk.find.replaceOne() Adds a single document replacement operation to a list of operations.
Bulk.find.updateOne() Adds a single document update operation to a list of operations.
Bulk.find.update() Adds a multi update operation to a list of operations.
Bulk.find.upsert() Specifies upsert: true for an update operation.
Bulk.execute() Executes a list of operations in bulk.
Bulk.getOperations() Returns an array of write operations executed in the Bulk()operations object.
Bulk.tojson() Returns a JSON document that contains the number of operations and batches in the Bulk() operations object.
Bulk.toString() Returns the Bulk.tojson() results as a string.
User Management
Name Description
db.auth() Authenticates a user to a database.
db.createUser() Creates a new user.
db.updateUser() Updates user data.
db.changeUserPassword() Changes an existing user’s password.
db.removeUser() Deprecated. Removes a user from a database.
db.dropAllUsers() Deletes all users associated with a database.
db.dropUser() Removes a single user.
db.grantRolesToUser() Grants a role and its privileges to a user.
db.revokeRolesFromUser() Removes a role from a user.
db.getUser() Returns information about the specified user.
db.getUsers() Returns information about all users associated with a database.
Role Management
Name Description
db.createRole() Creates a role and specifies its privileges.
db.updateRole() Updates a user-defined role.
db.dropRole() Deletes a user-defined role.
db.dropAllRoles() Deletes all user-defined roles associated with a database.
db.grantPrivilegesToRole() Assigns privileges to a user-defined role.
db.revokePrivilegesFromRole() Removes the specified privileges from a user-defined role.
db.grantRolesToRole() Specifies roles from which a user-defined role inherits privileges.
db.revokeRolesFromRole() Removes inherited roles from a role.
db.getRole() Returns information for the specified role.
db.getRoles() Returns information for all the user-defined roles in a database.
Replication
Name Description
rs.add() Adds a member to a replica set.
rs.addArb() Adds an arbiter to a replica set.
rs.conf() Returns the replica set configuration document.
rs.freeze() Prevents the current member from seeking election as primary for a period of time.
rs.help() Returns basic help text for replica set functions.
rs.initiate() Initializes a new replica set.
rs.printReplicationInfo() Prints a report of the status of the replica set from the perspective of the primary.
rs.printSlaveReplicationInfo() Prints a report of the status of the replica set from the perspective of the secondaries.
rs.reconfig() Re-configures a replica set by applying a new replica set configuration object.
rs.remove() Remove a member from a replica set.
rs.slaveOk() Sets the slaveOk property for the current connection. Deprecated. UsereadPref() and Mongo.setReadPref() to set read preference.
rs.status() Returns a document with information about the state of the replica set.
rs.stepDown() Causes the current primary to become a secondary which forces an election.
rs.syncFrom() Sets the member that this replica set member will sync from, overriding the default sync target selection logic.
Sharding
Name Description
sh._adminCommand() Runs a database command against the admin database, like db.runCommand(), but can confirm that it is issued against a mongos.
sh.getBalancerLockDetails() Reports on the active balancer lock, if it exists.
sh._checkFullName() Tests a namespace to determine if its well formed.
sh._checkMongos() Tests to see if the mongo shell is connected to a mongos instance.
sh._lastMigration() Reports on the last chunk migration.
sh.addShard() Adds a shard to a sharded cluster.
sh.addShardTag() Associates a shard with a tag, to support tag aware sharding.
sh.addTagRange() Associates range of shard keys with a shard tag, to support tag aware sharding.
sh.removeTagRange() Removes an association between a range shard keys and a shard tag. Use to manage tag aware sharding.
sh.disableBalancing() Disable balancing on a single collection in a sharded database. Does not affect balancing of other collections in a sharded cluster.
sh.enableBalancing() Activates the sharded collection balancer process if previously disabled usingsh.disableBalancing().
sh.enableSharding() Enables sharding on a specific database.
sh.getBalancerHost() Returns the name of a mongos that’s responsible for the balancer process.
sh.getBalancerState() Returns a boolean to report if the balancer is currently enabled.
sh.help() Returns help text for the sh methods.
sh.isBalancerRunning() Returns a boolean to report if the balancer process is currently migrating chunks.
sh.moveChunk() Migrates a chunk in a sharded cluster.
sh.removeShardTag() Removes the association between a shard and a shard tag.
sh.setBalancerState() Enables or disables the balancer which migrates chunks between shards.
sh.shardCollection() Enables sharding for a collection.
sh.splitAt() Divides an existing chunk into two chunks using a specific value of the shard key as the dividing point.
sh.splitFind() Divides an existing chunk that contains a document matching a query into two approximately equal chunks.
sh.startBalancer() Enables the balancer and waits for balancing to start.
sh.status() Reports on the status of a sharded cluster, as db.printShardingStatus().
sh.stopBalancer() Disables the balancer and waits for any in progress balancing rounds to complete.
sh.waitForBalancer() Internal. Waits for the balancer state to change.
sh.waitForBalancerOff() Internal. Waits until the balancer stops running.
sh.waitForDLock() Internal. Waits for a specified distributed sharded cluster lock.
sh.waitForPingChange() Internal. Waits for a change in ping state from one of the mongos in the sharded cluster.
Subprocess
Name Description
clearRawMongoProgramOutput() For internal use.
rawMongoProgramOutput() For internal use.
run() For internal use.
runMongoProgram() For internal use.
runProgram() For internal use.
startMongoProgram() For internal use.
stopMongoProgram() For internal use.
stopMongoProgramByPid() For internal use.
stopMongod() For internal use.
waitMongoProgramOnPort() For internal use.
waitProgram() For internal use.
Constructors
Name Description
Date() Creates a date object. By default creates a date object including the current date.
UUID() Converts a 32-byte hexadecimal string to the UUID BSON subtype.
ObjectId() Returns an ObjectId.
ObjectId.getTimestamp() Returns the timestamp portion of an ObjectId.
ObjectId.toString() Displays the string representation of an ObjectId.
ObjectId.valueOf() Displays the str attribute of an ObjectId as a hexadecimal string.
WriteResult() Wrapper around the result set from write methods.
WriteResult.hasWriteError() Returns a boolean specifying whether the results includeWriteResult.writeError.
WriteResult.hasWriteConcernError() Returns a boolean specifying whether whether the results includeWriteResult.writeConcernError.
BulkWriteResult() Wrapper around the result set from Bulk.execute().
Connection
Name Description
Mongo.getDB() Returns a database object.
Mongo.getReadPrefMode() Returns the current read preference mode for the MongoDB connection.
Mongo.getReadPrefTagSet() Returns the read preference tag set for the MongoDB connection.
Mongo.setReadPref() Sets the read preference for the MongoDB connection.
Mongo.setSlaveOk() Allows operations on the current connection to read from secondary members.
Mongo() Creates a new connection object.
connect() Connects to a MongoDB instance and to a specified database on that instance.
Native
Name Description
cat() Returns the contents of the specified file.
version() Returns the current version of the mongo shell instance.
cd() Changes the current working directory to the specified path.
sleep() Suspends the mongo shell for a given period of time.
copyDbpath() Copies a local dbPath. For internal use.
resetDbpath() Removes a local dbPath. For internal use.
fuzzFile() For internal use to support testing.
getHostName() Returns the hostname of the system running the mongo shell.
getMemInfo() Returns a document that reports the amount of memory used by the shell.
hostname() Returns the hostname of the system running the shell.
_isWindows() Returns true if the shell runs on a Windows system; false if a Unix or Linux system.
listFiles() Returns an array of documents that give the name and size of each object in the directory.
load() Loads and runs a JavaScript file in the shell.
ls() Returns a list of the files in the current directory.
md5sumFile() The md5 hash of the specified file.
mkdir() Creates a directory at the specified path.
pwd() Returns the current directory.
quit() Exits the current shell session.
_rand() Returns a random number between 0 and 1.
removeFile() Removes the specified file from the local file system.
setVerboseShell() Configures the mongo shell to report operation timing.
_srand() For internal use.

MongoDB集群

MongoDB缺陷

ObjectId

ObjectId小巧,唯一,可快速生成,易于排序。ObjectId总共由12-bytes组成。其中前4 bytes是unix时间缀,代表该ObjectId的生成时间。

  • a 4-byte value representing the seconds since the Unix epoch,

  • a 3-byte machine identifier,

  • a 2-byte process id, and

  • a 3-byte counter, starting with a random value.

在MongoDB中,每个documents存储在collections需要一个唯一的_id_id扮演的角色是主键。如果_id默认没有定义,则MongoDB默认使用 ObjectId, ObjectId的创建时间也可以通过ObjectId.getTimestamp()获取。

@%28%u6280%u672F%u6587%u6863%u5B66%u4E60%29%5B%u6280%u672F%2C%20mysql%2C%20nosql%2C%20mongo%5D%0A%0AMongoDB%20%u624B%u518C%0A%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%0A%0A————–%0A%0A%5BTOC%5D%0A%0A%0A%23%20%u7B2C%u4E00%u7AE0%20Introduction%0A%0A———————————-%0A%0A%0A%23%23%20MongoDB%u5165%u95E8%u5B66%u4E60%u76EE%u5F55%28%u5EFA%u8BAE%29%0A*%20%5BIntroduction%20to%20MongoDB%5D%28https%3A//docs.mongodb.org/getting-started/shell/introduction/%29%20as%20well%20as%20instructions%20to%20%5BImport%20Example%20Dataset%5D%28https%3A//docs.mongodb.org/getting-started/shell/import-data/%29%3B%0A*%20A%20brief%20overview%20of%20the%20%5BMongoDB%20Shell%20%28mongo%29%5D%28https%3A//docs.mongodb.org/getting-started/shell/client/%29%3B%0A*%20Basic%20%5BInsert%5D%28https%3A//docs.mongodb.org/getting-started/shell/insert/%29%2C%20%5BFind%5D%28https%3A//docs.mongodb.org/getting-started/shell/query/%29%2C%5BUpdate%5D%28https%3A//docs.mongodb.org/getting-started/shell/update/%29%2C%20%5BRemove%20%5D%28https%3A//docs.mongodb.org/getting-started/shell/remove/%29%2Coperations%20plus%20%5BAggregation%5D%28https%3A//docs.mongodb.org/getting-started/shell/aggregation/%29%3B%0A*%20Instructions%20on%20creating%20%5BIndexes%5D%28https%3A//docs.mongodb.org/getting-started/shell/indexes/%29%20to%20improve%20query%20performance.%0A%0A%23%23%20Databases%0AMongoDB%20stores%20%5BBSON%20documents%5D%28https%3A//docs.mongodb.org/manual/core/document/%23bson-document-format%29%2C%20i.e.%20data%20records%2C%20in%20%5Bcollections%5D%28https%3A//docs.mongodb.org/manual/reference/glossary/%23term-collection%29%3B%20the%20collections%20in%20databases.%0A*%20%u9009%u62E9DB%0A%60%60%60%0Ause%20mdb%0A%60%60%60%0A%0A*%20%u521B%u5EFADB%0A%0AMongodb%u5F53%u4E00%u4E2ADB%u4E0D%u5B58%u5728%u65F6%uFF0C%u9ED8%u8BA4%u5B58%u50A8%u4E00%u6761%u6570%u636E%u5373%u53EF%u521B%u5EFADB%0A%60%60%60%0Ause%20noexistdb%0Adb.myNewCollection1.insert%28%20%7B%20x%3A%201%20%7D%20%29%0A%60%60%60%0AThe%20%5Binsert%28%29%5D%28https%3A//docs.mongodb.org/manual/reference/method/db.collection.insert/%23db.collection.insert%29%20operation%20creates%20both%20the%20database%20myNewDB%20and%20the%20collection%20myNewCollection1%20if%20they%20do%20not%20already%20exist%0A%0A*%20**1.%20DB%u547D%u540D%u89C4%u8303**%0A%0ADataName%20Name%20Case%20Sensitivity%2C%u4E0D%u5206%u5927%u5C0F%u5199%0A%0A%3E%20Mongodb%u4E2DDBName%u540D%u79F0%u5927%u5C0F%u5199%u4E0D%u654F%u611F%uFF0C%u6240%u4EE5%u4E0D%u80FD%u5355%u7EAF%u7684%u901A%u8FC7%u5927%u5C0F%u5199%u6765%u533A%u5206DBName%0A%0A*%20**2.%20Restrictions%20on%20Database%20Names%20for%20Windows**%0A%0A%u5982%u679CMongo%u8FD0%u884C%u5728Windows%u5E73%u53F0%uFF0C%u547D%u540D%u4E2D%u4E0D%u80FD%u5305%u62EC%u5982%u4E0B%u7279%u522B%u5B57%u7B26%uFF0C**Also%20database%20names%20cannot%20contain%20the%20null%20character.%u5E76%u4E14%u4E0D%u80FD%u5E26null%u5B57%u7B26**%0A%60%60%60%0A/%5C.%20%22%24*%3C%3E%3A%7C%3F%60%0A%60%60%60%0A*%20**3.%20Restrictions%20on%20Database%20Names%20for%20Unix%20and%20Linux%20Systems**%0A%0A%u5982%u679CMongoDB%u8FD0%u884C%u5728%u7C7BUNIX%u6216LINUX%u7CFB%u7EDF%uFF0C%u90A3%u4E48%u4E0D%u80FD%u5305%u62EC%u5982%u4E0B%u7279%u6B8A%u5B57%u7B26%0A%0A%60%60%60%0A/%5C.%20%22%24%0A%60%60%60%0A*%20**4.%20Length%20of%20Database%20Names**%0A%0A%u4E0D%u80FD%u4E3A%u7A7A%u4E14%u5C0F%u4E8E64%u4E2A%u5B57%u7B26%0A%0A*%20**5.%20Restriction%20on%20Collection%20Names**%0A%0ACollections%u5FC5%u987B%u4EE5%60_%60%u6216%u5B57%u6BCD%u5F00%u5934%uFF0C%u4F46%u4E0D%u80FD%u5305%u62EC%u5982%u4E0B%u7279%u6B8A%u5B57%u7B26%0A%0A%3E%20-%20contain%20the%20%60%24%60.%0A%3E%20-%20be%20an%20empty%20string%20%28e.g.%20%22%22%29.%0A%3E%20-%20contain%20the%20null%20character.%0A%3E%20-%20begin%20with%20the%20%60system.%60%20prefix.%20%28Reserved%20for%20internal%20use.%29%0A%0A%0AIf%20your%20collection%20name%20includes%20special%20characters%2C%20such%20as%20the%20underscore%20character%2C%20then%20to%20access%20the%20collection%20use%20the%20db.getCollection%28%29%20method%20in%20the%20mongo%20shell%20or%20a%20similar%20method%20for%20your%20driver.%0A%0AThe%20maximum%20length%20of%20the%20collection%20namespace%2C%20which%20includes%20the%20database%20name%2C%20the%20dot%20%28.%29%20separator%2C%20and%20the%20collection%20name%20%28i.e.%20%3Cdatabase%3E.%3Ccollection%3E%29%2C%20is%20120%20bytes.%0A%0A*%20**6.%20Restrictions%20on%20Field%20Names**%0A%0A%u4E0D%u80FD%u5305%u62EC%60.%60%u6216%u7A7A%u5B57%u7B26%u3002%20%u4E0D%u80FD%u4EE5%60%24%60%u5F00%u5934%u3002%u539F%u7406%u8BF7%u53C2%u8003%20%5B%20How%20does%20MongoDB%20address%20SQL%20or%20Query%20injection%3F%5D%28https%3A//docs.mongodb.org/manual/faq/fundamentals/%23faq-dollar-sign-escaping%29%0A**%u539F%u6587%u5185%u5BB9%u4E5F%u53EF%u53C2%u8003%u5982%u4E0B%uFF1A**%0AMongoDB%20represents%20queries%20as%20BSON%20objects.%20Typically%20client%20libraries%20provide%20a%20convenient%2C%20injection%20free%2C%20process%20to%20build%20these%20objects.%20Consider%20the%20following%20C++%20example%3A%0A%60%60%60%0ABSONObj%20my_query%20%3D%20BSON%28%20%22name%22%20%3C%3C%20a_name%20%29%3B%0Aauto_ptr%3CDBClientCursor%3E%20cursor%20%3D%20c.query%28%22tutorial.persons%22%2C%20my_query%29%3B%0A%60%60%60%0AHere%2C%20my_query%20then%20will%20have%20a%20value%20such%20as%20%7B%20name%20%3A%20%22Joe%22%20%7D.%20If%20my_query%20contained%20special%20characters%2C%20for%20example%20%2C%2C%20%3A%2C%20and%20%7B%2C%20the%20query%20simply%20wouldn%u2019t%20match%20any%20documents.%20For%20example%2C%20users%20cannot%20hijack%20a%20query%20and%20convert%20it%20to%20a%20delete.%0A%20%20%0A%3E%20%u611F%u89C9%u5B98%u65B9%u7684%u89E3%u91CA%u4E0D%u662F%u7279%u522B%u6E05%u695A%uFF0C%u8FD9%u91CC%u8C08%u4E0B%u4E2A%u4EBA%u7684%u7406%u89E3%uFF1A%0A%3E%20Mongo%20query%u51FD%u6570%u5E95%u5C42%u9ED8%u8BA4%u4E0D%u5BF9%u6B63%u5219%u6216%u8005%60.%2C%7B%60%u7279%u6B8A%u5143%u5B57%u7B26%u505A%u5904%u7406%uFF0C%u6240%u4EE5%u5BFC%u81F4%u4E0D%u80FD%u5305%u62EC%u7279%u6B8A%u5B57%u7B26%0A%0A%0A%23%23%20Collections%0AMongo%u9ED8%u8BA4%u662F%u628A%u6240%u6709%u7684%u7684%u6587%u6863%28Documents%29%u4EE5BSON%u683C%u5F0F%u5B58%u50A8%u5728%u96C6%u5408%28collections%29%u3002Collections%u7C7B%u4F3C%u4E8E%u4F20%u7EDF%u6570%u636E%u5E93%u4E2D%u7684%u8868%28tables%29%u3002%0A*%20%u521B%u5EFACollections%0A%0A%u5982%u679C%20collections%20%u4E8B%u5148%u4E0D%u5B58%u5728%uFF0CMongo%u9ED8%u8BA4%u4F1A%u4E8B%u5148%u521B%u5EFA%u5F53%u4F60%u7B2C%u4E00%u6B21%u5B58%u50A8%u6570%u636E%u65F6%0A%0A%3E%20db.myNewCollection2.insert%28%20%7B%20x%3A%201%20%7D%20%0A%3E%20db.myNewCollection3.createIndex%28%20%7B%20y%3A%201%20%7D%20%29%0A%0ABoth%20the%20%5Binsert%28%29%5D%28https%3A//docs.mongodb.org/manual/reference/method/db.collection.insert/%23db.collection.insert%29%20and%20the%20%5BcreateIndex%28%29%5D%28https%3A//docs.mongodb.org/manual/reference/method/db.collection.createIndex/%23db.collection.createIndex%29%20operations%20create%20their%20respective%20collection%20if%20they%20do%20not%20already%20exist.%0Ainsert%28%29%20%u548C%20createIndex%28%29%20%u5747%u4F1A%u5206%u522B%u5EFA%u7ACB%u5BF9%u5E94%u7684%u96C6%u5408%28collections%29%0A%0A*%20Explicit%20Creation%0A%0AMongoDB%u9ED8%u8BA4%u4E5F%u660E%u786E%u63D0%u4F9B%u4E86%u65B0%u5EFA%u96C6%u5408%u5DE5%u5177%uFF0C%u540C%u65F6%u5177%u6709%u4E30%u5BCC%u7684%u53C2%u6570%u914D%u7F6E%u3002MongoDB%20provides%20the%20%5Bdb.createCollection%28%29%5D%28https%3A//docs.mongodb.org/manual/reference/method/db.createCollection/%23db.createCollection%29%20method%20to%20explicitly%20create%20a%20collection%20with%20various%20options%2C%20such%20as%20setting%20the%20maximum%20size%20or%20the%20documentation%20validation%20rules.%0A%0A%0A%23%23%20Documents%0A%5BDocuments%5D%28https%3A//docs.mongodb.org/manual/core/document/%29%20%u6309%u5982%u4E0B%u987A%u5E8F%u4ECB%u7ECD%0A%0A%3E%20*%20**Document%20Structure**%0A%3E%20*%20**Dot%20Notation**%0A%3E%20*%20**Document%20Limitations**%0A%3E%20*%20**Other%20Uses%20of%20the%20Document%20Structure**%0A%3E%20*%20**Additional%20Resources**%0A%0A**Document%20Structure**%0A%0A—%0A%0AMongoDB%u4E2D%u4E00%u6761%u8BB0%u5F55%u5C31%u662F%u4E00%u4E2A%60document%60%uFF0CMongoDB%u7684%u6570%u636E%u7ED3%u6784%u4EE5**BSON**%u65B9%u5F0F%u5B58%u653E%uFF0C%u76F8%u6BD4**JSON**%u800C%u8A00**BSON**%u53EF%u4EE5%u5B58%u653E%u66F4%u4E3A%u590D%u6742%u7684%u6570%u636E%u6837%u5F0F%u5185%u5BB9%u3002%u66F4%u591A%u5173%u4E8E%5BBSON%5D%28https%3A//docs.mongodb.org/manual/reference/bson-types/%29%u7684%u5185%u5BB9%u53EF%u53C2%u8003%u3002%u4E00%u6761%u8BB0%u5F55%u5305%u6DB5%u591A%u5BF9%u5217%u548C%u503C%u5339%u914D%u5BF9%u7684%u6570%u636E%u7ED3%u6784%uFF0CMongoDB%u7C7B%u4F3CJSON%20Objects.%20%u5982%u4E0B%u662F%u4F8B%u5B50%0A%0A%60%60%60%0A%7B%0A%20%20%20%22_id%22%20%3A%20ObjectId%28%2254c955492b7c8eb21818bd09%22%29%2C%0A%20%20%20%22address%22%20%3A%20%7B%0A%20%20%20%20%20%20%22street%22%20%3A%20%222%20Avenue%22%2C%0A%20%20%20%20%20%20%22zipcode%22%20%3A%20%2210075%22%2C%0A%20%20%20%20%20%20%22building%22%20%3A%20%221480%22%2C%0A%20%20%20%20%20%20%22coord%22%20%3A%20%5B%20-73.9557413%2C%2040.7720266%20%5D%0A%20%20%20%7D%2C%0A%20%20%20%22borough%22%20%3A%20%22Manhattan%22%2C%0A%20%20%20%22cuisine%22%20%3A%20%22Italian%22%2C%0A%20%20%20%22grades%22%20%3A%20%5B%0A%20%20%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%20%22date%22%20%3A%20ISODate%28%222014-10-01T00%3A00%3A00Z%22%29%2C%0A%20%20%20%20%20%20%20%20%20%22grade%22%20%3A%20%22A%22%2C%0A%20%20%20%20%20%20%20%20%20%22score%22%20%3A%2011%0A%20%20%20%20%20%20%7D%2C%0A%20%20%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%20%22date%22%20%3A%20ISODate%28%222014-01-16T00%3A00%3A00Z%22%29%2C%0A%20%20%20%20%20%20%20%20%20%22grade%22%20%3A%20%22B%22%2C%0A%20%20%20%20%20%20%20%20%20%22score%22%20%3A%2017%0A%20%20%20%20%20%20%7D%0A%20%20%20%5D%2C%0A%20%20%20%22name%22%20%3A%20%22Vella%22%2C%0A%20%20%20%22restaurant_id%22%20%3A%20%2241704620%22%0A%7D%0A%60%60%60%0A%0A*%20Document%20Structure%0A%0AMongoDB%u7684%u6570%u636E%u7ED3%u6784%u591A%u4EE5kv%u7684%u65B9%u5F0F%u5B58%u653E%uFF0C%u5982%u4E0B%u6837%u5F0F%u3002%0A%60%60%60%0A%7B%0A%20%20%20field1%3A%20value1%2C%0A%20%20%20field2%3A%20value2%2C%0A%20%20%20field3%3A%20value3%2C%0A%20%20%20…%0A%20%20%20fieldN%3A%20valueN%0A%7D%0A%60%60%60%0A%u5176%u4E2D%u7684value%u53EF%u4EE5%u662F%u4EFB%u610F%u7684**BSON**%u6570%u636E%u7ED3%u6784%uFF0C%u53EF%u4EE5%u662F%60other%20documents%60%2C%20%60arrays%60%2C%20and%20%60arrays%20of%20documents%60.%u5982%uFF1A%0A%0A%60%60%60%0Avar%20mydoc%20%3D%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20_id%3A%20ObjectId%28%225099803df3f4948bd2f98391%22%29%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20name%3A%20%7B%20first%3A%20%22Alan%22%2C%20last%3A%20%22Turing%22%20%7D%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20birth%3A%20new%20Date%28%27Jun%2023%2C%201912%27%29%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20death%3A%20new%20Date%28%27Jun%2007%2C%201954%27%29%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20contribs%3A%20%5B%20%22Turing%20machine%22%2C%20%22Turing%20test%22%2C%20%22Turingery%22%20%5D%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20views%20%3A%20NumberLong%281250000%29%0A%20%20%20%20%20%20%20%20%20%20%20%20%7D%0A%60%60%60%0A%0A%u4E0A%u9762%u7684%u8FD9%u4E2A%u6848%u4F8B%u5305%u62EC%u591A%u4E2A%u6570%u636E%u7ED3%u6784%u7C7B%u4F3C%0A*%20%60_id%60%20holds%20an%20%5BObjectId%5D%28https%3A//docs.mongodb.org/manual/reference/bson-types/%23objectid%29.%0A*%20%60name%60%20holds%20an%20embedded%20document%20that%20contains%20the%20fields%20%60first%60%20and%20%60last%60.%0A*%20%60birth%60%20and%20%60death%60%20hold%20values%20of%20the%20Date%20type.%0A*%20%60contribs%60%20holds%20an%20array%20of%20strings.%0A*%20%60views%60%20holds%20a%20value%20of%20the%20NumberLong%20type.%0A%0A%0A**Dot%20Notation**%0A%0A——%0AMongoDB%20%u4F7F%u7528%20%60.%60%20%u6765%u8BBF%u95EE%60documents%60%u4E2D%u5217%u7684%u5143%u7D20%uFF0C%u6570%u7EC4index%u9ED8%u8BA4%u4ECE**0**%u5F00%u59CB%u3002%0A%0A-%20%u6570%u7EC4%u5143%u7D20%u8BBF%u95EE%0A%0A%60%60%60%0A%7B%0A%20%20%20…%0A%20%20%20contribs%3A%20%5B%20%22Turing%20machine%22%2C%20%22Turing%20test%22%2C%20%22Turingery%22%20%5D%2C%0A%20%20%20…%0A%7D%0A%60%60%60%0A%0A%u5982%u6211%u4EEC%u5E0C%u671B%u8BBF%u95EE**contribs**%u7B2C%u4E09%u4E2A%u5143%u7D20%uFF0C%u5219%u7528contribs.2%u5373%u53EF%0A%0A%60%60%60%0A%7B%0A%20%20%20…%0A%20%20%20name%3A%20%7B%20first%3A%20%22Alan%22%2C%20last%3A%20%22Turing%22%20%7D%2C%0A%20%20%20…%0A%7D%0A%60%60%60%0A%0A%u5982%u5E0C%u671B%u53D6%20%60name%60%u7684%60last%60%u503C%uFF0C%u5219%20%20%22name.last%22%u5373%u53EF%0A%0A**Document%20Limitations**%0A*%20Document%20Size%20Limit%0A%u6700%u5927%u7684BSON%u503C%u4E3A%2016M%0A%0A*%20Document%20Field%20Order%0AMongoDB%u4EE5%u5199%u987A%u5E8F%u4FDD%u5B58Document%uFF0C%u9664%u4EE5%u4E0B%u60C5%u51B5%u5916%uFF1A%0A%09%09%09-%20The%20_id%20field%20is%20always%20the%20first%20field%20in%20the%20document.%0A%20%09%09%09-%20Updates%20that%20include%20renaming%20of%20field%20names%20may%20result%20in%20the%20reordering%20of%20fields%20in%20the%20document.%0A%0A%0A**Other%20Uses%20of%20the%20Document%20Structure**%0A%0A%0A%0A%0A%23%20%u7B2C%u4E8C%u7AE0%20%u90E8%u7F72%u5B89%u88C5%0A%0A———————————-%0A%0A*%20%u652F%u6301%u7684%u5E73%u53F0%0A%0A%7C%20%20%20%20%20%20%20%20%20%20%20%20%20%20Platform%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%203.2%20%7C%20%203%20%20%7C%202.6%20%7C%202.4%20%7C%202.2%20%7C%0A%7C%20———————————%20%7C%20—%20%7C%20—%20%7C%20—%20%7C%20—%20%7C%20—%20%7C%0A%7C%20Amazon%20Linux%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20%u2713%20%20%20%7C%20%u2713%20%20%20%7C%20%u2713%20%20%20%7C%20%u2713%20%20%20%7C%20%u2713%20%20%20%7C%0A%7C%20Debian%207%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20%u2713%20%20%20%7C%20%u2713%20%20%20%7C%20%u2713%20%20%20%7C%20%u2713%20%20%20%7C%20%u2713%20%20%20%7C%0A%7C%20Fedora%208+%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20%20%20%20%20%7C%20%20%20%20%20%7C%20%u2713%20%20%20%7C%20%u2713%20%20%20%7C%20%u2713%20%20%20%7C%0A%7C%20RHEL/CentOS%206.2+%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20%u2713%20%20%20%7C%20%u2713%20%20%20%7C%20%u2713%20%20%20%7C%20%u2713%20%20%20%7C%20%u2713%20%20%20%7C%0A%7C%20RHEL/CentOS%207.0+%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20%u2713%20%20%20%7C%20%u2713%20%20%20%7C%20%u2713%20%20%20%7C%20%20%20%20%20%7C%20%20%20%20%20%7C%0A%7C%20SLES%2011%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20%u2713%20%20%20%7C%20%u2713%20%20%20%7C%20%u2713%20%20%20%7C%20%u2713%20%20%20%7C%20%u2713%20%20%20%7C%0A%7C%20SLES%2012%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20%u2713%20%20%20%7C%20%20%20%20%20%7C%20%20%20%20%20%7C%20%20%20%20%20%7C%20%20%20%20%20%7C%0A%7C%20Solaris%2064-bit%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20%u2713%20%20%20%7C%20%u2713%20%20%20%7C%20%u2713%20%20%20%7C%20%u2713%20%20%20%7C%20%u2713%20%20%20%7C%0A%7C%20Ubuntu%2012.04%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20%u2713%20%20%20%7C%20%u2713%20%20%20%7C%20%u2713%20%20%20%7C%20%u2713%20%20%20%7C%20%u2713%20%20%20%7C%0A%7C%20Ubuntu%2014.04%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20%u2713%20%20%20%7C%20%u2713%20%20%20%7C%20%u2713%20%20%20%7C%20%20%20%20%20%7C%20%20%20%20%20%7C%0A%7C%20Microsoft%20Azure%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20%u2713%20%20%20%7C%20%u2713%20%20%20%7C%20%u2713%20%20%20%7C%20%u2713%20%20%20%7C%20%u2713%20%20%20%7C%0A%7C%20Windows%20Vista/Server%202008R2/2012+%20%7C%20%u2713%20%20%20%7C%20%u2713%20%20%20%7C%20%u2713%20%20%20%7C%20%u2713%20%20%20%7C%20%u2713%20%20%20%7C%0A%7C%20OSX%2010.7+%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20%u2713%20%20%20%7C%20%u2713%20%20%20%7C%20%u2713%20%20%20%7C%20%u2713%20%20%20%7C%20%20%20%20%20%7C%0A%0A*%20%u4E0D%u5EFA%u8BAE32%u4F4D%u7CFB%u7EDF%uFF0C%u6709%u5F88%u591A%u9650%u5236%0A%0A%20%20-%203.0%u7248%u672C%u7684mongo%u4E0D%u518D%u652F%u630132%u4F4D%u7CFB%u7EDF%uFF0C%u537332%u4F4D%u7CFB%u7EDF%u4E0D%u652F%u6301WiredTiger%20%u5B58%u50A8%u5F15%u64CE%0A%20%20-%2032%u4F4D%u7CFB%u7EDF%u56E0%u6587%u4EF6%u53E5%u67C4%u9650%u5236%u7684%u539F%u56E0%u9ED8%u8BA4disable%20%5Bjournaling%5D%28https%3A//docs.mongodb.org/manual/reference/glossary/%23term-journal%29%0A%20%20-%20%u53E6%u5916%uFF0C32%u4F4D%u7CFB%u7EDF%u652F%u6301mongodb%u7684%u6700%u5927%u5BB9%u91CF%u4E3A2GB%2C%u8FD9%u5BB9%u91CF%u8FD8%u5305%u62EC%u6570%u636E%uFF0Cindexes%2C%0A%20%0A32%u4F4D%u7CFB%u7EDF%u7684%u8BE6%u7EC6%u9650%u5236%u53EF%u4EE5%u53C2%u8003%u8FD9%u91CC%uFF1A%0A%5BBlog%20Post%3A%2032-bit%20Limitations%5D%28http%3A//blog.mongodb.org/post/137788967/32-bit-limitations%29%0A%0A*%20MongoDB%u793E%u533A%u7248%u7684%u5B89%u88C5%0A%0AMongoDB%u6709Enterprise%u548CCommunity%u4E24%u4E2A%u7248%u672C%uFF0C%u5177%u4F53%u5DEE%u522B%u53EF%u4EE5%u53C2%u8003%u8FD9%u91CC%2C%u66F4%u8BE6%u7EC6%u5185%u5BB9%u8BF7%u53C2%u8003%5B%u5B98%u7F51%5D%28https%3A//www.mongodb.com/products/mongodb-enterprise-advanced%29%0A%0A*%20MongoDB%20Enterprise%20Server%20is%20the%20commercial%20edition%20of%20MongoDB.%0A%20%20%20-%20**In-memory%20Storage%20Engine%20%28in%20beta%29**%20-%20deliver%20high%20throughput%20and%20predictable%20low%20latency%0A%20%20%20-%20**Encrypted%20Storage%20Engine**%20-%20encrypt%20your%20data%20at%20rest%0A%20%20%20-%20**Advanced%20Security**%20-%20secure%20your%20data%20with%20LDAP%20and%20Kerberos%20authentication%2C%20and%20comprehensive%20auditing%0A%20%20%20-%20**Commercial%20License**%20-%20to%20meet%20your%20development%20and%20distribution%20requirements%0A%0A%u529F%u80FD%u533A%u522B%u5BF9%u6BD4%u8BF7%u53C2%u8003%u5982%u4E0B%uFF1A%0A%7C%20%20%20%20%20%20%20%20%20%20%20%u7248%u672C%u7279%u6027%20%20%20%20%20%20%20%20%20%20%20%7C%20%u793E%u533A%u7248%u672C%20%7C%20%u4F01%u4E1A%u7248%u672C%20%7C%0A%7C%20—————————-%20%7C%20——–%20%7C%20——–%20%7C%0A%7C%20JSON%u6570%u636E%u6A21%u578B%u3001%u81EA%u7531%u6A21%u5F0F%20%20%20%20%20%20%20%7C%20%u652F%u6301%20%20%20%20%20%7C%20%u652F%u6301%20%20%20%20%20%7C%0A%7C%20%u6C34%u5E73%u6269%u5C55%u7684%u81EA%u52A8%u5206%u7247%u529F%u80FD%20%20%20%20%20%20%20%7C%20%u652F%u6301%20%20%20%20%20%7C%20%u652F%u6301%20%20%20%20%20%7C%0A%7C%20%u5185%u7F6E%u526F%u672C%u4EE5%u53CA%u9AD8%u53EF%u7528%u6027%20%20%20%20%20%20%20%20%20%7C%20%u652F%u6301%20%20%20%20%20%7C%20%u652F%u6301%20%20%20%20%20%7C%0A%7C%20%u5B8C%u6574%u7684%u3001%u53EF%u6269%u5C55%u7684%u7D22%u5F15%u652F%u6491%20%20%20%20%20%7C%20%u652F%u6301%20%20%20%20%20%7C%20%u652F%u6301%20%20%20%20%20%7C%0A%7C%20%u4E30%u5BCC%u7684%u6587%u6863%u67E5%u8BE2%u529F%u80FD%20%20%20%20%20%20%20%20%20%20%20%7C%20%u652F%u6301%20%20%20%20%20%7C%20%u652F%u6301%20%20%20%20%20%7C%0A%7C%20%u5FEB%u901F%u7684%u6587%u6863%u5185%u66F4%u65B0%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20%u652F%u6301%20%20%20%20%20%7C%20%u652F%u6301%20%20%20%20%20%7C%0A%7C%20%u805A%u5408%u6846%u67B6%u548CMapReduce%20%20%20%20%20%20%20%20%20%20%7C%20%u652F%u6301%20%20%20%20%20%7C%20%u652F%u6301%20%20%20%20%20%7C%0A%7C%20%u4F7F%u7528GridFS%u5B58%u50A8%u5927%u91CF%u591A%u5A92%u4F53%u6570%u636E%20%7C%20%u652F%u6301%20%20%20%20%20%7C%20%u652F%u6301%20%20%20%20%20%7C%0A%7C%20%u6587%u672C%u641C%u7D22%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20%u652F%u6301%20%20%20%20%20%7C%20%u652F%u6301%20%20%20%20%20%7C%0A%7C%20%u4E91%u3001%u9884%u7F6E%u548C%u6DF7%u5408%u90E8%u7F72%20%20%20%20%20%20%20%20%20%20%20%7C%20%u652F%u6301%20%20%20%20%20%7C%20%u652F%u6301%20%20%20%20%20%7C%0A%7C%20%u57FA%u4E8E%u89D2%u8272%u7684%u6743%u9650%u63A7%u5236%20%20%20%20%20%20%20%20%20%20%20%7C%20%u652F%u6301%20%20%20%20%20%7C%20%u652F%u6301%20%20%20%20%20%7C%0A%7C%20%u57FA%u4E8EKerberos%u5148%u8FDB%u7684%u5B89%u5168%u8BA4%u8BC1%20%20%20%7C%20%u4E0D%u652F%u6301%20%20%20%7C%20%u652F%u6301%20%20%20%20%20%7C%0A%7C%20%u9884%u7F6E%u76D1%u63A7%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20%u4E0D%u652F%u6301%20%20%20%7C%20%u652F%u6301%20%20%20%20%20%7C%0A%7C%20%u652F%u6301SNMP%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20%u4E0D%u652F%u6301%20%20%20%7C%20%u652F%u6301%20%20%20%20%20%7C%0A%7C%20%u64CD%u4F5C%u7CFB%u7EDF%u8BA4%u8BC1%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20%u4E0D%u652F%u6301%20%20%20%7C%20%u652F%u6301%20%20%20%20%20%7C%0A%0A%u56E0%u4E3A%u4F01%u4E1A%u7248%u662F%u6536%u8D39%u7684%uFF0C%u6240%u4EE5%u6211%u4EEC%u5B89%u88C5%u7684%u662F%u793E%u533A%u7248%u3002%0A%0A**Install%20MongoDB%20Community%20Edition%20on%20Red%20Hat%20Enterprise%20or%20CentOS%20Linux**%0A%0A%0A%7C%20%20%20%20%20%20package%20%20%20%20%20%20%20%7C%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20function%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20——————%20%7C%20————————————————————————————————————————————————————-%20%7C%0A%7C%20mongodb-org%20%20%20%20%20%20%20%20%7C%20A%20metapackage%20that%20will%20automatically%20install%20the%20four%20component%20packages%20listed%20below.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20mongodb-org-server%20%7C%20Contains%20the%20mongod%20daemon%20and%20associated%20configuration%20and%20init%20scripts.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20mongodb-org-mongos%20%7C%20Contains%20the%20mongos%20daemon.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20mongodb-org-shell%20%20%7C%20Contains%20the%20mongo%20shell.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20mongodb-org-tools%20%20%7C%20Contains%20the%20following%20MongoDB%20tools%3A%20mongoimport%20bsondump%2C%20mongodump%2C%20mongoexport%2C%20mongofiles%2C%20mongooplog%2C%20mongoperf%2C%20mongorestore%2C%20mongostat%2C%20and%20mongotop.%20%7C%0A%0AMongoDB%u9ED8%u8BA4%u914D%u7F6E%u6587%u4EF6%20%60/etc/mongod.conf%60%2C%20%60bind_ip%60%20%20%u9ED8%u8BA4%u7ED1%u5B9A%20%60127.0.0.1%60%0A%u9ED8%u8BA4%u5B89%u88C5%u597D%u7684%20MongoDB%u9644%u5E26%u542F%u52A8%u811A%u672C%uFF0C%60/etc/rc.d/init.d/mongod%60%0A%0A%23%23%201.%20Import%20the%20MongoDB%20public%20key%0A%60%60%60%0Arpm%20–import%20https%3A//www.mongodb.org/static/pgp/server-3.2.asc%0A%60%60%60%0A%0A%23%23%202.%20Configure%20the%20package%20management%20system%20%28yum%29%0A%0A%u7F16%u8F91%20%60/etc/yum.repos.d/mongodb-org-3.2.repo%60%2C%u4F7F%u7528%u5982%u4E0B%u7684%20repository%20%u6587%u4EF6%3A%0A%0A%60%60%60%0A%5Bmongodb-org-3.2%5D%0Aname%3DMongoDB%20Repository%0Abaseurl%3Dhttps%3A//repo.mongodb.org/yum/redhat/%24releasever/mongodb-org/3.2/x86_64/%0Agpgcheck%3D1%0Aenabled%3D1%0A%60%60%60%0A%0A%23%23%203.%20%09Install%20the%20MongoDB%20packages%20and%20associated%20tools%0A%u5982%u679C%u5BF9%u7248%u672C%u6CA1%u6709%u8981%u6C42%uFF0C%u4E0B%u9762%u7684%u547D%u4EE4%u9ED8%u8BA4%u5B89%u88C5%u6700%u65B0%u7A33%u5B9A%u7248%u672C%u7684MongoDB%0A%0A%60%60%60%0Ayum%20install%20-y%20mongodb-org%0A%60%60%60%0A%0A%u5982%u679C%u5E0C%u671B%u6307%u5B9A%u7248%u672C%u5B89%u88C5%uFF0C%u53EF%u4EE5%u4F7F%u7528%u5982%u4E0B%u547D%u4EE4%uFF1A%0A%0A%60%60%60%0Ayum%20install%20-y%20mongodb-org-3.2.4%20mongodb-org-server-3.2.4%20mongodb-org-shell-3.2.4%20mongodb-org-mongos-3.2.4%20mongodb-org-tools-3.2.4%0A%60%60%60%0A%0A%u5982%u679C%u6BCF%u6B21update%u7684%u65F6%u5019%u4E0D%u5E0C%u671B%u5347%u7EA7%u90E8%u5206%u7EC4%u4EF6%uFF0C%u53EF%u4EE5%u914D%u7F6E%60/etc/yum.conf%60%0A%0A%60%60%60%0Aexclude%3Dmongodb-org%2Cmongodb-org-server%2Cmongodb-org-shell%2Cmongodb-org-mongos%2Cmongodb-org-tools%0A%60%60%60%0A%0A%23%23%204.%20Run%20MongoDB%20Community%20Edition%0A%u914D%u7F6ESELinux%0A%3E**IMPORTANT**%0AYou%20must%20configure%20SELinux%20to%20allow%20MongoDB%20to%20start%20on%20Red%20Hat%20Linux-based%20systems%20%28Red%20Hat%20Enterprise%20Linux%20or%20CentOS%20Linux%29.%0A%0ASELinux%20%u76843%u79CD%u5904%u7406%u529E%u6CD5%0A*%20%u914D%u7F6E%20%60/etc/selinux/config%60%20%u5173%u95EDSELinux%0A%0A%60%60%60%0ASELINUX%3Ddisabled%0A%60%60%60%0A%0A*%20%u8BBE%u7F6E%20SELinux%u4E3A%20permissive%20%u72B6%u6001%0A%0A%60%60%60%0ASELINUX%3Dpermissive%0A%60%60%60%0A%0A*%20Enable%20%20SELinux%uFF0C%u5F00%u653EMongoDB%u7684SELinux%u6743%u9650%0A%0A%60%60%60%0Asemanage%20port%20-a%20-t%20mongod_port_t%20-p%20tcp%2027017%0A%60%60%60%0A%3E%20**WARNING**%0AOn%20RHEL%207.0%2C%20if%20you%20change%20the%20data%20path%2C%20the%20default%20SELinux%20policies%20will%20prevent%20mongod%20from%20having%20write%20access%20on%20the%20new%20data%20path%20if%20you%20do%20not%20change%20the%20security%20context.%0A%0A%23%23%205.%20%u8FD0%u884CMongoDB%0A*%20Start%20MongoDB%0A%0A%09%09service%20mongod%20start%0A%0A*%20%u68C0%u67E5MongoDB%u662F%u5426%u542F%u52A8%u6210%u529F%0A%0A%09%20%20%20%20%5Binitandlisten%5D%20waiting%20for%20connections%20on%20port%20%3Cport%3E%0A%0A%u9ED8%u8BA4MongoDB%u7AEF%u53E3%u53F7%u662F%2027017%uFF0C%u540C%u65F6%u6CE8%u518CMongoDB%u4E3A%u5F00%u673A%u542F%u52A8%0A%0A%09chkconfig%20mongod%20on%0A%0A*%20%09Stop%20MongoDB%0A%0A%09%09service%20mongod%20stop%0A%0A*%20%09Restart%20MongoDB%0A%0A%09%09service%20mongod%20restart%0A%0A*%20%u4F7F%u7528Begin%20using%20MongoDB%0A%u8BE6%u7EC6%u8BF7%u53C2%u8003%5B%u6587%u6863%5D%28https%3A//docs.mongodb.org/manual/%23getting-started%29%0A%0A%23%23%206.%20%u5378%u8F7DMongoDB%0A%u5378%u8F7D%u662F%u4E0D%u53EF%u9006%u7684%uFF0C%u6240%u4EE5%u8BF7%u6CE8%u610F%u4FDD%u5B58%u6570%u636E%0A%3E%20**%60WARNING%60**%0AThis%20process%20will%20completely%20remove%20MongoDB%2C%20its%20configuration%2C%20and%20all%20databases.%20This%20process%20is%20not%20reversible%2C%20so%20ensure%20that%20all%20of%20your%20configuration%20and%20data%20is%20backed%20up%20before%20proceeding.%0A%0A*%20STOP%20MongoDB%0A%0A%09%20%20%20%20service%20mongod%20stop%0A%0A*%20%09Remove%20Packages%0A%0A%09%20%20%20%20yum%20erase%20%24%28rpm%20-qa%20%7C%20grep%20mongodb-org%29%0A%0A*%20%09Remove%20Data%20Directories.%0A%0A%09%20%20%20%20sudo%20rm%20-r%20/var/log/mongodb%0A%09%09sudo%20rm%20-r%20/var/lib/mongo%0A%0A%23%20%u7B2C%u4E09%u7AE0%20Mongo%20Shell%0A%0A———————————-%0A%0A%23%23%201.%20Mongo%20Shell%u4ECB%u7ECD%0A%60mongo%60%20shell%20%u662F%u4E00%u4E2Ajava%u4EA4%u4E92%u5F0F%u5DE5%u5177%u8FDE%u63A5MongoDB%2C%u6211%u4EEC%u53EF%u4EE5%u4F7F%u7528%60mongo%60%20shell%20%u67E5%u8BE2%u5347%u7EA7%u6570%u636E%u3002%0A%60mongo%60%20shell%20%u662FMongoDB%u53D1%u884C%u7248%u7684%u63D2%u4EF6%u4E4B%u4E00%uFF0C%u5B89%u88C5%u5B8CMongoDB%u540E%uFF0C%60mongo%60%u53EF%u4EE5%u76F4%u63A5%u4F7F%u7528%0A%0A%u9ED8%u8BA4%u6267%u884C%60mongo%60%u547D%u4EE4%uFF0Cmongo%u9ED8%u8BA4%u8FDE%u63A5%20localhost%20%u5E76%u8FDE%u63A5%2027017%20%u7AEF%u53E3%u3002%0A%0A%20%20%20%20mongo%0A%0A%23%23%202.%20%u5E38%u7528%u547D%u4EE4%0A%23%23%23%20a%3E%20%u663E%u793A%u5F53%u65F6db%u540D%0A%0A%20%20%20%20db%0A%0A%u5982%u4E0A%u547D%u4EE4%u5176%u5B83%u4F1A%u9ED8%u8BA4%u8FD4%u56DE%20%20**test**%2C%u8FD9%u662F%u521D%u6B21%u8FDE%u63A5%u9ED8%u8BA4DBName%u3002%20%u4F7F%u7528%20use%20%u6765%u5207%u6362DB%2C%u4E0D%u5207%u6362DB%u76F4%u63A5%u67E5%u770B%u5176%u5B83DB%u4FE1%u606F%u53EF%u4EE5%u4F7F%u7528%5Bdb.getSiblingDB%28%29%5D%28https%3A//docs.mongodb.org/manual/reference/method/db.getSiblingDB/%23db.getSiblingDB%29%0A%0A%20%20%20%20use%20%3Cdatabase%3E%0A%0A%u5217%u51FA%u73B0%u6709%u6240%u6709DB%0A%0A%20%20%20%20show%20dbs%0A%0A*%20%u683C%u5F0F%u5316%u8F93%u51FA%u7ED3%u679CFormat%20Printed%20Results%0A%5Bdb.collection.find%28%29%5D%28https%3A//docs.mongodb.org/manual/reference/method/db.collection.find/%23db.collection.find%29%20%u547D%u4EE4%u4F5C%u7528%u662F%u8FD4%u56DE%u6570%u636E%u67E5%u8BE2%u7ED3%u679C%uFF0C%u4F46%u5982%u679C%u6570%u636E%u7ED3%u6784%u9ED8%u8BA4%u6CA1%u6709%u4F7F%u7528%20K/V%20%u7ED3%u6784%uFF0C%u5219%u6E38%u6807%u4F1A%u81EA%u52A8%u91CD%u590D%u67E5%u8BE2%u914D%u7F6E%u7684%u7ED3%u679C%u91CD%u590D%u8F93%u51FA20%u6B21%u3002%u6211%u4EEC%u53EF%u4EE5%u901A%u8FC7%20%60.pretty%28%29%60%u53CB%u597D%u8F93%u51FA%u7ED3%u679C%u3002%0A%0A%09%09db.myCollection.find%28%29.pretty%28%29%0A*%20%u547D%u4EE4%u6267%u884C%0A%0A%09%20%20%20%20-%20%u547D%u4EE4%u53EF%u4EE5%u5206%u884C%u6267%u884C%0A%09%20%20%20%20-%20%u7C7B%u4F3Cpython%uFF0C%u5982%u679C%u4EE5%60%28%60%2C%60%5B%60%2C%60%7B%60%u7B49%u5F00%u59CB%uFF0C%u4F1A%u7B49%u5230%u53E6%u5916%u4E00%u534A%u5339%u914D%u540E%u624D%u80FD%u7EE7%u7EED%uFF0C%u5426%u5219%u62A5%u9519%0A%09%20%20%20%20-%20%u548CLinux%u7CFB%u7EDF%u547D%u4EE4%u4E00%u6837%u5177%u6709%u8865%u5168%u529F%u80FD%0A%0A%23%23%23%20b%3E%20Insert%0A%5BInsert%20Data%20with%20the%20mongo%20Shell%5D%28https%3A//docs.mongodb.org/getting-started/shell/insert/%29%uFF0C%u672C%u8282%u5C06%u6309%u5982%u4E0B%u987A%u5E8F%u4ECB%u7ECD%0A%3E%20*%20%5BOverview%5D%28https%3A//docs.mongodb.org/getting-started/shell/insert/%23overview%29%0A%3E%20*%20%5BPrerequisites%5D%28https%3A//docs.mongodb.org/getting-started/shell/insert/%23prerequisites%29%0A%3E%20*%20%5BInsert%20a%20Document%5D%28https%3A//docs.mongodb.org/getting-started/shell/insert/%23insert-a-document%29%0A%3E%20*%20%5BAdditional%20Information%5D%28https%3A//docs.mongodb.org/getting-started/shell/insert/%23additional-information%29%0A%0A*%20%5BOverview%5D%28https%3A//docs.mongodb.org/getting-started/shell/insert/%23overview%29%0A%0A————-%0A%u4F7F%u7528%5Binsert%28%29%5D%28https%3A//docs.mongodb.org/manual/reference/method/db.collection.insert/%23db.collection.insert%29%u65B9%u6CD5%u53EF%u4EE5%u589E%u52A0%60documents%60%u5230%60MongoDB%60%u7684%60collections%60%2C%u5982%u679C%u4E8B%u5148%u6CA1%u6709%2C%u5219MongoDB%u4F1A%u4E8B%u5148%u521B%u5EFA%0A%0A*%20%5BPrerequisites%5D%28https%3A//docs.mongodb.org/getting-started/shell/insert/%23prerequisites%29%0A%0A——%0A%0A%20%20%20%20use%20test%0A%0A%u9ED8%u8BA4%u8FDE%u63A5MongoDB%u540E%u8FDE%u63A5%u7684%60test%60%u5E93%0A%0A*%20%5BInsert%20a%20Document%5D%28https%3A//docs.mongodb.org/getting-started/shell/insert/%23insert-a-document%29%0A%0A—————–%0A%0A%u63D2%u5165%u4E00%u6761%60documents%60%u5230%u540D%u4E3A**restaurants**%u7684%60collection%60%u96C6%u5408%uFF0C%u547D%u4EE4%u9ED8%u8BA4%u4E3A%u521B%u5EFA%20**restaurants**%20%u96C6%u5408%uFF0C%u5982%u679C%u4E8B%u5148%u4E0D%u5B58%u5728%u8BE5%20collections%u7684%u8BDD%u3002%0A%0A%60%60%60%0Adb.restaurants.insert%28%0A%20%20%20%7B%0A%20%20%20%20%20%20%22address%22%20%3A%20%7B%0A%20%20%20%20%20%20%20%20%20%22street%22%20%3A%20%222%20Avenue%22%2C%0A%20%20%20%20%20%20%20%20%20%22zipcode%22%20%3A%20%2210075%22%2C%0A%20%20%20%20%20%20%20%20%20%22building%22%20%3A%20%221480%22%2C%0A%20%20%20%20%20%20%20%20%20%22coord%22%20%3A%20%5B%20-73.9557413%2C%2040.7720266%20%5D%2C%0A%20%20%20%20%20%20%7D%2C%0A%20%20%20%20%20%20%22borough%22%20%3A%20%22Manhattan%22%2C%0A%20%20%20%20%20%20%22cuisine%22%20%3A%20%22Italian%22%2C%0A%20%20%20%20%20%20%22grades%22%20%3A%20%5B%0A%20%20%20%20%20%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%22date%22%20%3A%20ISODate%28%222014-10-01T00%3A00%3A00Z%22%29%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%22grade%22%20%3A%20%22A%22%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%22score%22%20%3A%2011%0A%20%20%20%20%20%20%20%20%20%7D%2C%0A%20%20%20%20%20%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%22date%22%20%3A%20ISODate%28%222014-01-16T00%3A00%3A00Z%22%29%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%22grade%22%20%3A%20%22B%22%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%22score%22%20%3A%2017%0A%20%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%5D%2C%0A%20%20%20%20%20%20%22name%22%20%3A%20%22Vella%22%2C%0A%20%20%20%20%20%20%22restaurant_id%22%20%3A%20%2241704620%22%0A%20%20%20%7D%0A%29%0A%60%60%60%0A%u6267%u884C%u6210%u529F%u540E%uFF0CMongoDB%u9ED8%u8BA4%u8FD4%u56DE%5BWriteResult%5D%28https%3A//docs.mongodb.org/manual/reference/method/WriteResult/%23WriteResult%29%u51FD%u6570%u7ED3%u679C%u8FD4%u56DE%0A%0A%20%20%20%20WriteResult%28%7B%20%22nInserted%22%20%3A%201%20%7D%29%0A%0A*%20%5BAdditional%20Information%5D%28https%3A//docs.mongodb.org/getting-started/shell/insert/%23additional-information%29%0A%0A——————-%0A%u5176%u5B83%u4FE1%u606F%u53EF%u7EE7%u7EED%u4E86%u89E3%20%20%5Binsert%28%29%5D%28https%3A//docs.mongodb.org/manual/reference/method/db.collection.insert/%23db.collection.insert%29%20%u548C%20%5BDocuments%5D%28http%3A//docs.mongodb.org/manual/core/document%29%0A%0A%23%23%23%20c%3E%20Find%0AFind%u529F%u80FD%u4ECB%u7ECD%u4F1A%u4ECE%u5982%u4E0B%u65B9%u9762%u5F00%u59CB%28Find%20or%20Query%20Data%20with%20the%20mongo%20Shell%29%0A%3E%20*%20Overview%0A%3E%20*%20Prerequisites%0A%3E%20*%20Query%20for%20All%20Documents%20in%20a%20Collection%0A%3E%20*%20Specify%20Equality%20Conditions%0A%3E%20*%20Specify%20Conditions%20with%20Operators%0A%3E%20*%20Combine%20Conditions%0A%3E%20*%20Sort%20Query%20Results%0A%3E%20*%20Additional%20Information%0A%0A*%20Overview%0A%0A——————-%0A%0A%u4F7F%u7528%5Bfind%28%29%5D%28https%3A//docs.mongodb.org/manual/reference/method/db.collection.find/%23db.collection.find%29%20%u4ECE%20MongoDB%u96C6%u5408%u67E5%u627E%u6240%u9700%u6570%u636E%0A%0A%u9ED8%u8BA4MongoDB%u8FD4%u56DE%u6240%u6709%u67E5%u627E%u5230%u7684%u6570%u636E%uFF0C%u6211%u4EEC%u53EF%u4EE5%u901A%u8FC7%20filter%28%u8FC7%u6EE4%u5668%29%20%u548C%20%u6761%u4EF6%20%28criteria%20%29%20%u6216%u8005%u9644%u52A0%u6267%u884C%u6761%u4EF6%u7ED9%20%60find%28%29%60%20%u65B9%u6CD5%u5B9E%u73B0%u7CBE%u51C6%u67E5%u8BE2%u3002%0A%0A*%20Prerequisites%0A%0A——–%0A%0A%u8FDB%u5165%u6307%u5B9A%u6570%u636E%u5E93%0A%0A%20%20%20%20use%20test%0A%0A%0A*%20Query%20for%20All%20Documents%20in%20a%20Collection%0A%0A—————-%0A%0A%60find%28%29%60%u65B9%u6CD5%u9ED8%u8BA4%u8FD4%u56DE%u6240%u6709%u914D%u7F6E%u7684%u6267%u884C%u7ED3%u679C%uFF0C%0A%0A%20%20%20%20db.restaurants.find%28%29%0A%0A*%20Query%20by%20a%20Top%20Level%20Field%0A*%20Query%20by%20a%20Field%20in%20an%20Embedded%20Document%0A%0A——–%0A%0A%u4E24%u90E8%u5206%u5185%u5BB9%u5408%u4E3A%u4E00%u8D77%u4F5C%u4E3A%20MongoDB%20%u7684%u6761%u4EF6%u67E5%u8BE2%0A%0A%20%20%20%20db.restaurants.find%28%20%7B%20%22borough%22%3A%20%22Manhattan%22%20%7D%20%29%0A%20%20%20%20db.restaurants.find%28%20%7B%20%22address.zipcode%22%3A%20%2210075%22%20%7D%20%29%0A%0A%u6570%u7EC4%u5185%u5BB9%u67E5%u8BE2%0A%0A%20%20%20%20db.restaurants.find%28%20%7B%20%22grades.grade%22%3A%20%22B%22%20%7D%20%29%0A%0A%0A*%20Specify%20Conditions%20with%20Operators%28%u903B%u8F91%u6761%u4EF6%u5339%u914D%u67E5%u8BE2%29%0A%0A%60%60%60%0A%7B%20%3Cfield1%3E%3A%20%7B%20%3Coperator1%3E%3A%20%3Cvalue1%3E%20%7D%20%7D%0A%60%60%60%0A%0A**Greater%20Than%20Operator%20%28%24gt%29**%0A%0A%20%20%20%20db.restaurants.find%28%20%7B%20%22grades.score%22%3A%20%7B%20%24gt%3A%2030%20%7D%20%7D%20%29%0A%0A**Less%20Than%20Operator%20%28%24lt%29**%0A%0A%20%20%20%20db.restaurants.find%28%20%7B%20%22grades.score%22%3A%20%7B%20%24lt%3A%2010%20%7D%20%7D%20%29%0A%0A**Logical%20AND**%0A%0A%20%20%20%20db.restaurants.find%28%20%7B%20%22cuisine%22%3A%20%22Italian%22%2C%20%22address.zipcode%22%3A%20%2210075%22%20%7D%20%29%0A%0A**Logical%20OR**%0A%0A%60%60%60%0Adb.restaurants.find%28%0A%20%20%20%7B%20%24or%3A%20%5B%20%7B%20%22cuisine%22%3A%20%22Italian%22%20%7D%2C%20%7B%20%22address.zipcode%22%3A%20%2210075%22%20%7D%20%5D%20%7D%0A%29%0A%60%60%60%0A%0A*%20Sort%20Query%20Results%0A%0A——————-%0A%0A%20%20%20%20db.restaurants.find%28%29.sort%28%20%7B%20%22borough%22%3A%201%2C%20%22address.zipcode%22%3A%201%20%7D%20%29%0A%0A1%20%u8868%u793A%u5347%u5E8F%0A-1%20%u8868%u793A%u964D%u5E8F%0A%0A%u5982%u4E0A%u7684%u4F8B%u5B50%u8868%u793A%20%0AFor%20example%2C%20the%20following%20operation%20returns%20all%20documents%20in%20the%20restaurants%20collection%2C%20sorted%20first%20by%20the%20borough%20field%20in%20ascending%20order%2C%20and%20then%2C%20within%20each%20borough%2C%20by%20the%20%22address.zipcode%22%20field%20in%20ascending%20order%3A%0A%0A%23%23%23%20d%3E%20Update%0A%0A*%20Update%20Top-Level%20Fields%0A%0A—–%0A%0AThe%20following%20operation%20updates%20the%20first%20document%20with%20name%20equal%20to%20%22Juni%22%2C%20using%20the%20%60%24set%60%20operator%20to%20update%20the%20**cuisine**%20field%20and%20the%20%60%24currentDate%60%20operator%20to%20update%20the%20**lastModified**%20field%20with%20the%20current%20date.%0A%60%60%60%0Adb.restaurants.update%28%0A%20%20%20%20%7B%20%22name%22%20%3A%20%22Juni%22%20%7D%2C%0A%20%20%20%20%7B%0A%20%20%20%20%20%20%24set%3A%20%7B%20%22cuisine%22%3A%20%22American%20%28New%29%22%20%7D%2C%0A%20%20%20%20%20%20%24currentDate%3A%20%7B%20%22lastModified%22%3A%20true%20%7D%0A%20%20%20%20%7D%0A%29%0A%60%60%60%0A%0A*%20Update%20an%20Embedded%20Field%0A%0A——–%0A%0ATo%20update%20a%20field%20within%20an%20embedded%20document%2C%20use%20the%20dot%20notation.%20When%20using%20the%20dot%20notation%2C%20enclose%20the%20whole%20dotted%20field%20name%20in%20quotes.%20The%20following%20updates%20the%20**street**%20field%20in%20the%20embedded%20**address**%20document.%0A%0A%60%60%60%0Adb.restaurants.update%28%0A%20%20%7B%20%22restaurant_id%22%20%3A%20%2241156888%22%20%7D%2C%0A%20%20%7B%20%24set%3A%20%7B%20%22address.street%22%3A%20%22East%2031st%20Street%22%20%7D%20%7D%0A%29%0A%60%60%60%0A%0A*%20Update%20Multiple%20Documents%28%u591A%u53D8%u66F4%7C%u591Adocument%u53D8%u66F4%7C%u6279%u91CF%u53D8%u66F4%29%0A%0A——————-%0A%0ABy%20default%2C%20the%20%60update%28%29%60%20method%20updates%20**a%20single%20document**.%20To%20update%20multiple%20documents%2C%20use%20the%20**%60multi%60**%20option%20in%20the%20update%28%29%20method.%20The%20following%20operation%20updates%20all%20documents%20that%20have%20address.zipcode%20field%20equal%20to%20%2210016%22%20and%20cuisine%20field%20equal%20to%20%22Other%22%2C%20setting%20the%20cuisine%20field%20to%20%22Category%20To%20Be%20Determined%22%20and%20the%20lastModified%20field%20to%20the%20current%20date.%0A%0A%60%60%60%0Adb.restaurants.update%28%0A%20%20%7B%20%22address.zipcode%22%3A%20%2210016%22%2C%20cuisine%3A%20%22Other%22%20%7D%2C%0A%20%20%7B%0A%20%20%20%20%24set%3A%20%7B%20cuisine%3A%20%22Category%20To%20Be%20Determined%22%20%7D%2C%0A%20%20%20%20%24currentDate%3A%20%7B%20%22lastModified%22%3A%20true%20%7D%0A%20%20%7D%2C%0A%20%20%7B%20multi%3A%20true%7D%0A%29%0A%60%60%60%0A%0A*%20Replace%20a%20Document%0A%0A—————–%0A%0ATo%20replace%20the%20**entire**%20document%20except%20for%20the%20**_id**%20field%2C%20pass%20an%20entirely%20new%20document%20as%20the%20second%20argument%20to%20the%20%60update%28%29%60%20method.%20The%20replacement%20document%20can%20have%20different%20fields%20from%20the%20original%20document.%20In%20the%20replacement%20document%2C%20you%20can%20omit%20the%20**_id**%20field%20since%20the%20**_id**%20field%20is%20immutable.%20If%20you%20do%20include%20the%20**_id**%20field%2C%20it%20must%20be%20the%20same%20value%20as%20the%20existing%20value.%0A%0A%3E%20IMPORTANT%0AAfter%20the%20update%2C%20the%20document%20only%20contains%20the%20field%20or%20fields%20in%20the%20replacement%20document.%0A%0AAfter%20the%20following%20update%2C%20the%20modified%20document%20will%20**%60only%60**%20contain%20the%20**_id**%20field%2C%20**name**%20field%2C%20the%20**address**%20field.%20i.e.%20the%20document%20will%20not%20contain%20the%20**restaurant_id%2C%20cuisine%2C%20grades**%2C%20and%20the%20**borough**%20fields.%0A%0A%60%60%60%0Adb.restaurants.update%28%0A%20%20%20%7B%20%22restaurant_id%22%20%3A%20%2241704620%22%20%7D%2C%0A%20%20%20%7B%0A%20%20%20%20%20%22name%22%20%3A%20%22Vella%202%22%2C%0A%20%20%20%20%20%22address%22%20%3A%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%22coord%22%20%3A%20%5B%20-73.9557413%2C%2040.7720266%20%5D%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%22building%22%20%3A%20%221480%22%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%22street%22%20%3A%20%222%20Avenue%22%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%22zipcode%22%20%3A%20%2210075%22%0A%20%20%20%20%20%7D%0A%20%20%20%7D%0A%29%0A%60%60%60%0A%0A%23%23%23%20e%3E%20Remove%0A%0A———————-%0A%0A%5Bremove%28%29%5D%28https%3A//docs.mongodb.org/manual/reference/method/db.collection.remove/%23db.collection.remove%29%20%u65B9%u6CD5%u63A5%u53D7%u6307%u5B9A%u6761%u4EF6%u540E%u4ECE%u96C6%u5408%28collections%29%u79FB%u9664%u6587%u6863%u8BB0%u5F55%28documents%29.%0A%0A%u5982%u9700%u79FB%u9664%u6307%u5B9A%u6761%u4EF6%u7684documents%2C%u548Cquery%u4E00%u6837%u4F7F%u7528%u76F8%u540C%u7684%u8BED%u6CD5%u548C%u6570%u636E%u7ED3%u6784%u5373%u53EF%u3002%0A%0A*%20%u79FB%u9664%u6240%u6709%u7B26%u5408%u6761%u4EF6%u7684%u6587%u6863%u8BB0%u5F55%28documents.%29Remove%20All%20Documents%20That%20Match%20a%20Condition%0A%0A%60%60%60%0Adb.restaurants.remove%28%20%7B%20%22borough%22%3A%20%22Manhattan%22%20%7D%20%29%0A%60%60%60%0A%0A*%20%u53EA%u79FB%u9664%u4E00%u6761%u8BB0%u5F55Use%20the%20justOne%20Option%0A%0ABy%20default%2C%20the%20remove%28%29%20method%20removes%20all%20documents%20that%20match%20the%20remove%20condition.%20Use%20the%20justOne%20option%20to%20limit%20the%20remove%20operation%20to%20only%20one%20of%20the%20matching%20documents.%0A%0A%60%60%60%0Adb.restaurants.remove%28%20%7B%20%22borough%22%3A%20%22Queens%22%20%7D%2C%20%7B%20justOne%3A%20true%20%7D%20%29%0A%60%60%60%0A%0A*%20%u5220%u9664%u6240%u6709%u8BB0%u5F55%28Remove%20All%20Documents%29%0A%0A**%60%u8BE5%u65B9%u6CD5collections%u96C6%u5408%u672C%u8EAB%u548Cindexes%u4ECD%u7136%u4FDD%u7559%uFF0C%u6240%u4EE5%u5982%u679C%u5E0C%u671B%u5220%u9664%u6240%u6709%u5EFA%u8BAE%u4F7F%u7528%20drop%60**%0A%0ATo%20remove%20all%20documents%20from%20a%20collection%2C%20pass%20an%20empty%20conditions%20document%20%7B%7D%20to%20the%20remove%28%29%20method.%0A%0A%60%60%60%0Adb.restaurants.remove%28%20%7B%20%7D%20%29%0A%60%60%60%0A%0A*%20%u5220%u9664%u96C6%u5408%20Drop%20a%20Collection%0A%0AThe%20remove%20all%20operation%20only%20removes%20the%20documents%20from%20the%20collection.%20The%20collection%20itself%2C%20as%20well%20as%20any%20indexes%20for%20the%20collection%2C%20remain.%20To%20remove%20all%20documents%20from%20a%20collection%2C%20it%20may%20be%20more%20efficient%20to%20drop%20the%20entire%20collection%2C%20including%20the%20indexes%2C%20and%20then%20recreate%20the%20collection%20and%20rebuild%20the%20indexes.%20Use%20the%20drop%28%29%20method%20to%20drop%20a%20collection%2C%20including%20any%20indexes.%0A%0A%60%60%60%0Adb.restaurants.drop%28%29%0A%60%60%60%0A%0AUpon%20successful%20drop%20of%20the%20collection%2C%20the%20operation%20returns%20**true**.%0A%0A%23%23%23%20f%3E%20Aggregation%0A%0AMongoDB%u652F%u6301%u6570%u636E%u805A%u5408%uFF0C%u5982%u6307%u5B9Akey%u5206%u7EC4%u5E76%u4E14%u8BA1%u5212%u603B%u5408%u6216%u5206%u7EC4%u603B%u5408%u3002%0A%0A%u7528%u6CD5%u5982%u4E0B%uFF1A%0A%0A%60%60%60%0Adb.collection.aggregate%28%20%5B%20%3Cstage1%3E%2C%20%3Cstage2%3E%2C%20…%20%5D%20%29%0A%60%60%60%0A%0A*%20%u6307%u5B9A%u5217group%20by%20%u5206%u7EC4%u5E76%u6C42%u548C%20Group%20Documents%20by%20a%20Field%20and%20Calculate%20Count%0A%0AUse%20the%20%60%24group%60%20stage%20to%20group%20by%20a%20specified%20key.%20In%20the%20%60%24group%60%20stage%2C%20specify%20the%20group%20by%20key%20in%20the%20%60_id%60%20field.%20%60%24group%60%20accesses%20fields%20by%20the%20field%20path%2C%20which%20is%20the%20field%20name%20prefixed%20by%20a%20dollar%20sign%20%60%24%60.%20The%20%60%24group%60%20stage%20can%20use%20accumulators%20to%20perform%20calculations%20for%20each%20group.%20The%20following%20example%20groups%20the%20documents%20in%20the%20**restaurants**%20collection%20by%20the%20**borough**%20field%20and%20uses%20the%20%60%24sum%60%20accumulator%20to%20count%20the%20documents%20for%20each%20group.%0A%0A%0A%60%60%60%0Adb.restaurants.aggregate%28%0A%20%20%20%5B%0A%20%20%20%20%20%7B%20%24group%3A%20%7B%20%22_id%22%3A%20%22%24borough%22%2C%20%22count%22%3A%20%7B%20%24sum%3A%201%20%7D%20%7D%20%7D%0A%20%20%20%5D%0A%29%3B%0A%60%60%60%0A%0A%u7C7B%u4F3C%u7ED3%u679C%u8FD4%u56DE%u5982%u4E0B%uFF1A%0A%0A%60%60%60%0A%7B%20%22_id%22%20%3A%20%22Staten%20Island%22%2C%20%22count%22%20%3A%20969%20%7D%0A%7B%20%22_id%22%20%3A%20%22Brooklyn%22%2C%20%22count%22%20%3A%206086%20%7D%0A%7B%20%22_id%22%20%3A%20%22Manhattan%22%2C%20%22count%22%20%3A%2010259%20%7D%0A%7B%20%22_id%22%20%3A%20%22Queens%22%2C%20%22count%22%20%3A%205656%20%7D%0A%7B%20%22_id%22%20%3A%20%22Bronx%22%2C%20%22count%22%20%3A%202338%20%7D%0A%7B%20%22_id%22%20%3A%20%22Missing%22%2C%20%22count%22%20%3A%2051%20%7D%0A%60%60%60%0A%0A%0A*%20Filter%20and%20Group%20Documents%0A%0A—————-%0A%0AUse%20the%20%60%24match%60%20stage%20to%20filter%20documents.%20%60%24match%60%20uses%20the%20MongoDB%20query%20syntax.%20The%20following%20pipeline%20uses%20%60%24match%60%20to%20query%20the%20restaurants%20collection%20for%20documents%20with%20borough%20equal%20to%20%22Queens%22%20and%20cuisine%20equal%20to%20Brazilian.%20Then%20the%20%60%24group%60%20stage%20groups%20the%20matching%20documents%20by%20the%20address.zipcode%20field%20and%20uses%20the%20%60%24sum%60%20accumulator%20to%20calculate%20the%20count.%20%60%24group%60%20accesses%20fields%20by%20the%20field%20path%2C%20which%20is%20the%20field%20name%20prefixed%20by%20a%20dollar%20sign%20%60%24%60.%0A%0A%60%60%60%0Adb.restaurants.aggregate%28%0A%20%20%20%5B%0A%20%20%20%20%20%7B%20%24match%3A%20%7B%20%22borough%22%3A%20%22Queens%22%2C%20%22cuisine%22%3A%20%22Brazilian%22%20%7D%20%7D%2C%0A%20%20%20%20%20%7B%20%24group%3A%20%7B%20%22_id%22%3A%20%22%24address.zipcode%22%20%2C%20%22count%22%3A%20%7B%20%24sum%3A%201%20%7D%20%7D%20%7D%0A%20%20%20%5D%0A%29%3B%0A%60%60%60%0A%0A%u8FD4%u56DE%u7ED3%u679C%u5982%u4E0B%uFF1A%0A%0A%60%60%60%0AThe%20result%20set%20consists%20of%20the%20following%20documents%3A%0A%60%60%60%0A%0A%0A%23%23%23%20g.%20Indexes%0A%0AIndexes%u4E3B%u8981%u7528%u4E8E%u63D0%u5347%u67E5%u8BE2%u6548%u7387%u3002MongoDB%u9ED8%u8BA4%u521B%u5EFA%u7D22%u5F15%20%60_id%60%u5F53%u521B%u5EFA%20collections%u65F6%u3002%0A%0A%5BcreateIndex%28%29%5D%28https%3A//docs.mongodb.org/manual/reference/method/db.collection.createIndex/%23db.collection.createIndex%29%20%u7528%u4E8E%u521B%u5EFA%20Indexes%20%u7D22%u5F15%u3002%u4F7F%u7528%u65B9%u6CD5%u5982%u4E0B%uFF1A%0A%0A%20%20%20%20%7B%20%3Cfield1%3E%3A%20%3Ctype1%3E%2C%20…%7D%0A%0A%3E%20%u4F7F%u75281%20%u4E3A%u5347%u5E8F%0A%3E%20%u4F7F%u7528-1%u4E3A%u964D%u5E8F%0A%0A*%20%u521B%u5EFA%u5355%u5217%u7D22%u5F15%0A%0A——–%0ACreate%20an%20ascending%20index%20on%20the%20%22cuisine%22%20field%20of%20the%20restaurants%20collection.%0A%0A%20%20%20%20db.restaurants.createIndex%28%20%7B%20%22cuisine%22%3A%201%20%7D%20%29%0A%0AThe%20method%20returns%20a%20document%20with%20the%20status%20of%20the%20operation.%0A%0A%60%60%60%0A%7B%0A%20%20%22createdCollectionAutomatically%22%20%3A%20false%2C%0A%20%20%22numIndexesBefore%22%20%3A%201%2C%0A%20%20%22numIndexesAfter%22%20%3A%202%2C%0A%20%20%22ok%22%20%3A%201%0A%7D%0A%60%60%60%0A%0A%0A*%20%u521B%u5EFA%u6DF7%u5408%u7D22%u5F15%20Create%20a%20compound%20index%0A%0AMongoDB%20supports%20compound%20indexes%20which%20are%20indexes%20on%20multiple%20fields.%20The%20order%20of%20the%20fields%20determine%20how%20the%20index%20stores%20its%20keys.%20For%20example%2C%20the%20following%20operation%20creates%20a%20compound%20index%20on%20the%20%22cuisine%22%20field%20and%20the%20%22address.zipcode%22%20field.%20The%20index%20orders%20its%20entries%20first%20by%20ascending%20%22cuisine%22%20values%2C%20and%20then%2C%20within%20each%20%22cuisine%22%2C%20by%20descending%20%22address.zipcode%22%20values.%0A%0A%20%20%20%20db.restaurants.createIndex%28%20%7B%20%22cuisine%22%3A%201%2C%20%22address.zipcode%22%3A%20-1%20%7D%20%29%0A%0AThe%20method%20returns%20a%20document%20with%20the%20status%20of%20the%20operation.%0A%0A%60%60%60%0A%7B%0A%20%20%20%22createdCollectionAutomatically%22%20%3A%20false%2C%0A%20%20%20%22numIndexesBefore%22%20%3A%202%2C%0A%20%20%20%22numIndexesAfter%22%20%3A%203%2C%0A%20%20%20%22ok%22%20%3A%201%0A%7D%0A%60%60%60%0A%0A%0A%0A%23%20%u7B2C%u56DB%u7AE0%20MongoDB%u7528%u6237%u53CA%u6743%u9650%u7BA1%u7406%0ATo%20authenticate%20a%20%5Buser%5D%28https%3A//docs.mongodb.org/manual/core/security-users/%29%2C%20MongoDB%20provides%20the%20%5Bdb.auth%28%29%5D%28https%3A//docs.mongodb.org/manual/reference/method/db.auth/%23db.auth%29%20method.%0A%0AMongoDB%u8BA4%u8BC1%u5373%u53EF%u901A%u8FC7%20mongo%20shell%u5728%u547D%u4EE4%u884C%u8BA4%u8BC1%uFF0C%u4E5F%u53EF%u4EE5%u8FDB%u884CMongoDB%u540E%u4F7F%u7528db.auth%28%29%20%u8BA4%u8BC1%0A%0AMongoDB%u53EF%u4EE5%u5B58%u5728%u76F8%u540C%u7528%u6237%u540D%u7684%u7528%u6237%uFF0C%u4F46%u662F%u8981%u5B58%u5728%u4E0D%u540C%u7684%u5E93%u4E2D%u3002%u5982%u679C%u5E0C%u671B%u4E00%u4E2A%u7528%u6237%u540C%u65F6%u5BF9%u591A%u4E2A%u5E93%u62E5%u6709%u6743%u9650%uFF0C%u9700%u8981%u5BF9%u8BE5%u7528%u6237%u8D4B%u591A%u4E2A%u5E93%u7684%u6743%u9650%u5373%u53EF%uFF0C%u800C%u4E0D%u662F%u5230%u5BF9%u5E94%u7684%u5E93%u521B%u5EFA%u76F8%u540C%u7684%u7528%u6237%u540D%u3002%0AThe%20user%u2019s%20name%20and%20authentication%20database%20serve%20as%20a%20unique%20identifier%20for%20that%20user.%20That%20is%2C%20if%20two%20users%20have%20the%20same%20name%20but%20are%20created%20in%20different%20databases%2C%20they%20are%20two%20separate%20users.%20If%20you%20intend%20to%20have%20a%20single%20user%20with%20permissions%20on%20multiple%20databases%2C%20create%20a%20single%20user%20with%20roles%20in%20the%20applicable%20databases%20instead%20of%20creating%20the%20user%20multiple%20times%20in%20different%20databases.%0A%0AMongoDB%u9ED8%u8BA4%u4E5F%u6709%u5F88%u591A%u5185%u7F6E%u7528%u6237%u5982%0A%0A%7C%20Role%20%20%20%20%20%7C%20Short%20Description%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20——–%20%7C%20———————————————————————————————————————————————————————————————————————————%20%7C%0A%7C%20read%20%20%20%20%20%7C%20Provides%20the%20ability%20to%20read%20data%20on%20all%20non-system%20collections%20and%20on%20the%20following%20system%20collections%3A%20system.indexes%2C%20system.js%2C%20and%20system.namespaces%20collections.%20For%20the%20specific%20privileges%20granted%20by%20the%20role%2C%20see%20read.%20%7C%0A%7C%20readWrite%20%7C%20Provides%20all%20the%20privileges%20of%20the%20read%20role%20and%20the%20ability%20to%20modify%20data%20on%20all%20non-system%20collections%20and%20the%20system.js%20collections%u3002%20%20%09For%20the%20specific%20privileges%20granted%20by%20the%20role%2C%20see%20readWrite.%20%7C%0A%0A%0A%23%23%20mongodb%u5BC6%u7801%u5FD8%u8BB0%0A%0A%20%u4FEE%u6539%20mongodb%20%u914D%u7F6E%uFF0C%u5C06%20auth%20%3D%20true%20%u6CE8%u91CA%u6389%uFF0C%u6216%u8005%u6539%u6210%20false%0A%60%60%60%0Avim%20/etc/mongodb.conf%20%20%20%20%20%20%20%20%20%20%0A%60%60%60%0A%u91CD%u542F%20mongodb%20%u670D%u52A1%0A%0A%20%20%20%20service%20mongodb%20restart%20%0A%0A%u8FDE%u63A5mongo%0A%0A%60%60%60%0Amongo%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%23%20%u8FD0%u884C%u5BA2%u6237%u7AEF%uFF08%u4E5F%u53EF%u4EE5%u53BBmongodb%u5B89%u88C5%u76EE%u5F55%u4E0B%u8FD0%u884C%u8FD9%u4E2A%uFF09%0Ause%20admin%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%23%20%u5207%u6362%u5230%u7CFB%u7EDF%u5E10%u6237%u8868%0Adb.system.users.find%28%29%20%20%20%20%20%20%20%20%20%23%20%u67E5%u770B%u5F53%u524D%u5E10%u6237%uFF08%u5BC6%u7801%u6709%u52A0%u5BC6%u8FC7%uFF09%0Adb.system.users.remove%28%7B%7D%29%20%20%20%20%20%23%20%u5220%u9664%u6240%u6709%u5E10%u6237%0Adb.addUser%28%27admin%27%2C%27password%27%29%20%23%20%u6DFB%u52A0%u65B0%u5E10%u6237%0A%60%60%60%0A%0A%u6062%u590D%20auth%20%3D%20true%0A%0A%20%20%20%20vim%20/etc/mongodb.conf%20%20%0A%0A%u91CD%u542F%20mongodb%20%u670D%u52A1%20%20%20%20%20%20%20%20%0A%0A%20%20%20%20service%20mongodb%20restart%20%0A%0A%20%20%20%20%20%20%0A%0A%23%23%20client%20%u8FDE%u63A5%u65B9%u5F0F%0A%0A*%20%u6307%u5B9A%u6570%u636E%u8FDE%u63A5%0A%0A%60%60%60%0Amongod%20–port%2027017%20–dbpath%20/data/db1%0A%60%60%60%0A%0A*%20%u521B%u5EFA%20administrator%20%u7528%u6237%0A%0A%60%60%60%0Ause%20admin%0Adb.createUser%28%0A%20%20%7B%0A%20%20%20%20user%3A%20%22myUserAdmin%22%2C%0A%20%20%20%20pwd%3A%20%22abc123%22%2C%0A%20%20%20%20roles%3A%20%5B%20%7B%20role%3A%20%22userAdminAnyDatabase%22%2C%20db%3A%20%22admin%22%20%7D%20%5D%0A%20%20%7D%0A%29%0A%60%60%60%0A%0A*%20%uFF08%u91CD%u542Fmongo%u8FDE%u63A5%uFF09Re-start%20the%20MongoDB%20instance%20with%20access%20control%0A%0A%60%60%60%0Amongod%20–auth%20–port%2027017%20–dbpath%20/data/db1%0A%60%60%60%0A%0A*%20%u4EE5%u7BA1%u7406%u5458%u8EAB%u4EFD%u8FDE%u63A5%0A%0A%60%60%60%0Amongo%20–port%2027017%20-u%20%22myUserAdmin%22%20-p%20%22abc123%22%20–authenticationDatabase%20%22admin%22%0A%60%60%60%0A%0A*%20%u6216%u8005%u8FDB%u5165mongo%u540E%u4F7F%u7528%u5982%u4E0B%u547D%u4EE4%u8FDE%u63A5%0A%0A%60%60%60%0Ause%20admin%0Adb.auth%28%22myUserAdmin%22%2C%20%22abc123%22%20%29%0A%60%60%60%0A%0A%0A%0A%0A%23%20mongo%20shell%u547D%u4EE4%u96C6%u7528%u6CD5%20%0A%0A%7C%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Collection%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20—————————————–%20%7C%20————————————————————————————————————————————————————————————-%20%7C%0A%7C%20Name%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Description%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.collection.aggregate%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Provides%20access%20to%20the%20aggregation%20pipeline.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.collection.bulkWrite%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Provides%20bulk%20write%20operation%20functionality.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.collection.count%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Wraps%20count%20to%20return%20a%20count%20of%20the%20number%20of%20documents%20in%20a%20collection%20or%20matching%20a%20query.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.collection.copyTo%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Deprecated.%20Wraps%20eval%20to%20copy%20data%20between%20collections%20in%20a%20single%20MongoDB%20instance.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.collection.createIndex%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Builds%20an%20index%20on%20a%20collection.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.collection.dataSize%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Returns%20the%20size%20of%20the%20collection.%20Wraps%20the%20size%20field%20in%20the%20output%20of%20the%20collStats.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.collection.deleteOne%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Deletes%20a%20single%20document%20in%20a%20collection.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.collection.deleteMany%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Deletes%20multiple%20documents%20in%20a%20collection.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.collection.distinct%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Returns%20an%20array%20of%20documents%20that%20have%20distinct%20values%20for%20the%20specified%20field.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.collection.drop%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Removes%20the%20specified%20collection%20from%20the%20database.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.collection.dropIndex%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Removes%20a%20specified%20index%20on%20a%20collection.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.collection.dropIndexes%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Removes%20all%20indexes%20on%20a%20collection.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.collection.ensureIndex%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Deprecated.%20Use%20db.collection.createIndex%28%29.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.collection.explain%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Returns%20information%20on%20the%20query%20execution%20of%20various%20methods.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.collection.find%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Performs%20a%20query%20on%20a%20collection%20and%20returns%20a%20cursor%20object.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.collection.findAndModify%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Atomically%20modifies%20and%20returns%20a%20single%20document.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.collection.findOne%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Performs%20a%20query%20and%20returns%20a%20single%20document.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.collection.findOneAndDelete%28%29%20%20%20%20%20%20%20%20%20%20%7C%20Finds%20a%20single%20document%20and%20deletes%20it.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.collection.findOneAndReplace%28%29%20%20%20%20%20%20%20%20%20%7C%20Finds%20a%20single%20document%20and%20replaces%20it.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.collection.findOneAndUpdate%28%29%20%20%20%20%20%20%20%20%20%20%7C%20Finds%20a%20single%20document%20and%20updates%20it.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.collection.getIndexes%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Returns%20an%20array%20of%20documents%20that%20describe%20the%20existing%20indexes%20on%20a%20collection.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.collection.getShardDistribution%28%29%20%20%20%20%20%20%7C%20For%20collections%20in%20sharded%20clusters%2Cdb.collection.getShardDistribution%28%29%20reports%20data%20ofchunk%20distribution.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.collection.getShardVersion%28%29%20%20%20%20%20%20%20%20%20%20%20%7C%20Internal%20diagnostic%20method%20for%20shard%20cluster.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.collection.group%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Provides%20simple%20data%20aggregation%20function.%20Groups%20documents%20in%20a%20collection%20by%20a%20key%2C%20and%20processes%20the%20results.%20Use%20aggregate%28%29%20for%20more%20complex%20data%20aggregation.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.collection.insert%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Creates%20a%20new%20document%20in%20a%20collection.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.collection.insertOne%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Inserts%20a%20new%20document%20in%20a%20collection.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.collection.insertMany%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Inserts%20several%20new%20document%20in%20a%20collection.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.collection.isCapped%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Reports%20if%20a%20collection%20is%20a%20capped%20collection.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.collection.mapReduce%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Performs%20map-reduce%20style%20data%20aggregation.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.collection.reIndex%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Rebuilds%20all%20existing%20indexes%20on%20a%20collection.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.collection.replaceOne%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Replaces%20a%20single%20document%20in%20a%20collection.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.collection.remove%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Deletes%20documents%20from%20a%20collection.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.collection.renameCollection%28%29%20%20%20%20%20%20%20%20%20%20%7C%20Changes%20the%20name%20of%20a%20collection.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.collection.save%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Provides%20a%20wrapper%20around%20an%20insert%28%29%20and%20update%28%29%20to%20insert%20new%20documents.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.collection.stats%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Reports%20on%20the%20state%20of%20a%20collection.%20Provides%20a%20wrapper%20around%20thecollStats.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.collection.storageSize%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Reports%20the%20total%20size%20used%20by%20the%20collection%20in%20bytes.%20Provides%20a%20wrapper%20around%20the%20storageSize%20field%20of%20the%20collStats%20output.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.collection.totalSize%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Reports%20the%20total%20size%20of%20a%20collection%2C%20including%20the%20size%20of%20all%20documents%20and%20all%20indexes%20on%20a%20collection.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.collection.totalIndexSize%28%29%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Reports%20the%20total%20size%20used%20by%20the%20indexes%20on%20a%20collection.%20Provides%20a%20wrapper%20around%20the%20totalIndexSize%20field%20of%20the%20collStatsoutput.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.collection.update%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Modifies%20a%20document%20in%20a%20collection.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.collection.updateOne%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Modifies%20a%20single%20document%20in%20a%20collection.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.collection.updateMany%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Modifies%20multiple%20documents%20in%20a%20collection.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.collection.validate%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Performs%20diagnostic%20operations%20on%20a%20collection.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20Cursor%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20—————————————–%20%7C%20————————————————————————————————————————————————————————————-%20%7C%0A%7C%20Name%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Description%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20cursor.batchSize%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Controls%20the%20number%20of%20documents%20MongoDB%20will%20return%20to%20the%20client%20in%20a%20single%20network%20message.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20cursor.close%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Close%20a%20cursor%20and%20free%20associated%20server%20resources.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20cursor.comment%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Attaches%20a%20comment%20to%20the%20query%20to%20allow%20for%20traceability%20in%20the%20logs%20and%20the%20system.profile%20collection.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20cursor.count%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Modifies%20the%20cursor%20to%20return%20the%20number%20of%20documents%20in%20the%20result%20set%20rather%20than%20the%20documents%20themselves.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20cursor.explain%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Reports%20on%20the%20query%20execution%20plan%20for%20a%20cursor.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20cursor.forEach%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Applies%20a%20JavaScript%20function%20for%20every%20document%20in%20a%20cursor.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20cursor.hasNext%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Returns%20true%20if%20the%20cursor%20has%20documents%20and%20can%20be%20iterated.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20cursor.hint%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Forces%20MongoDB%20to%20use%20a%20specific%20index%20for%20a%20query.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20cursor.itcount%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Computes%20the%20total%20number%20of%20documents%20in%20the%20cursor%20client-side%20by%20fetching%20and%20iterating%20the%20result%20set.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20cursor.limit%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Constrains%20the%20size%20of%20a%20cursor%u2019s%20result%20set.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20cursor.map%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Applies%20a%20function%20to%20each%20document%20in%20a%20cursor%20and%20collects%20the%20return%20values%20in%20an%20array.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20cursor.maxScan%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Specifies%20the%20maximum%20number%20of%20items%20to%20scan%3B%20documents%20for%20collection%20scans%2C%20keys%20for%20index%20scans.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20cursor.maxTimeMS%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Specifies%20a%20cumulative%20time%20limit%20in%20milliseconds%20for%20processing%20operations%20on%20a%20cursor.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20cursor.max%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Specifies%20an%20exclusive%20upper%20index%20bound%20for%20a%20cursor.%20For%20use%20with%20cursor.hint%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20cursor.min%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Specifies%20an%20inclusive%20lower%20index%20bound%20for%20a%20cursor.%20For%20use%20with%20cursor.hint%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20cursor.next%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Returns%20the%20next%20document%20in%20a%20cursor.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20cursor.noCursorTimeout%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Instructs%20the%20server%20to%20avoid%20closing%20a%20cursor%20automatically%20after%20a%20period%20of%20inactivity.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20cursor.objsLeftInBatch%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Returns%20the%20number%20of%20documents%20left%20in%20the%20current%20cursor%20batch.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20cursor.pretty%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Configures%20the%20cursor%20to%20display%20results%20in%20an%20easy-to-read%20format.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20cursor.readConcern%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Specifies%20a%20read%20concern%20for%20a%20find%28%29%20operation.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20cursor.readPref%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Specifies%20a%20read%20preference%20to%20a%20cursor%20to%20control%20how%20the%20client%20directs%20queries%20to%20areplica%20set.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20cursor.returnKey%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Modifies%20the%20cursor%20to%20return%20index%20keys%20rather%20than%20the%20documents.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20cursor.showRecordId%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Adds%20an%20internal%20storage%20engine%20ID%20field%20to%20each%20document%20returned%20by%20the%20cursor.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20cursor.size%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Returns%20a%20count%20of%20the%20documents%20in%20the%20cursor%20after%20applying%20skip%28%29%20and%20limit%28%29methods.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20cursor.skip%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Returns%20a%20cursor%20that%20begins%20returning%20results%20only%20after%20passing%20or%20skipping%20a%20number%20of%20documents.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20cursor.snapshot%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Forces%20the%20cursor%20to%20use%20the%20index%20on%20the%20_id%20field.%20Ensures%20that%20the%20cursor%20returns%20each%20document%2C%20with%20regards%20to%20the%20value%20of%20the%20_id%20field%2C%20only%20once.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20cursor.sort%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Returns%20results%20ordered%20according%20to%20a%20sort%20specification.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20cursor.tailable%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Marks%20the%20cursor%20as%20tailable.%20Only%20valid%20for%20cursors%20over%20capped%20collections.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20cursor.toArray%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Returns%20an%20array%20that%20contains%20all%20documents%20returned%20by%20the%20cursor.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20Database%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20Name%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Description%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.cloneCollection%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Copies%20data%20directly%20between%20MongoDB%20instances.%20WrapscloneCollection.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.cloneDatabase%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Copies%20a%20database%20from%20a%20remote%20host%20to%20the%20current%20host.%20Wraps%20clone.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.commandHelp%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Returns%20help%20information%20for%20a%20database%20command.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.copyDatabase%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Copies%20a%20database%20to%20another%20database%20on%20the%20current%20host.%20Wraps%20copydb.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.createCollection%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Creates%20a%20new%20collection.%20Commonly%20used%20to%20create%20a%20capped%20collection.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.currentOp%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Reports%20the%20current%20in-progress%20operations.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.dropDatabase%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Removes%20the%20current%20database.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.eval%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Deprecated.%20Passes%20a%20JavaScript%20function%20to%20the%20mongod%20instance%20for%20server-side%20JavaScript%20evaluation.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.fsyncLock%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Flushes%20writes%20to%20disk%20and%20locks%20the%20database%20to%20prevent%20write%20operations%20and%20assist%20backup%20operations.%20Wraps%20fsync.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.fsyncUnlock%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Allows%20writes%20to%20continue%20on%20a%20database%20locked%20with%20db.fsyncLock%28%29.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.getCollection%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Returns%20a%20collection%20object.%20Used%20to%20access%20collections%20with%20names%20that%20are%20not%20valid%20in%20the%20mongo%20shell.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.getCollectionInfos%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Returns%20collection%20information%20for%20all%20collections%20in%20the%20current%20database.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.getCollectionNames%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Lists%20all%20collections%20in%20the%20current%20database.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.getLastError%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Checks%20and%20returns%20the%20status%20of%20the%20last%20operation.%20Wraps%20getLastError.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.getLastErrorObj%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Returns%20the%20status%20document%20for%20the%20last%20operation.%20Wraps%20getLastError.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.getLogComponents%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Returns%20the%20log%20message%20verbosity%20levels.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.getMongo%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Returns%20the%20Mongo%28%29%20connection%20object%20for%20the%20current%20connection.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.getName%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Returns%20the%20name%20of%20the%20current%20database.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.getPrevError%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Returns%20a%20status%20document%20containing%20all%20errors%20since%20the%20last%20error%20reset.%20Wraps%20getPrevError.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.getProfilingLevel%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Returns%20the%20current%20profiling%20level%20for%20database%20operations.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.getProfilingStatus%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Returns%20a%20document%20that%20reflects%20the%20current%20profiling%20level%20and%20the%20profiling%20threshold.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.getReplicationInfo%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Returns%20a%20document%20with%20replication%20statistics.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.getSiblingDB%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Provides%20access%20to%20the%20specified%20database.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.help%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Displays%20descriptions%20of%20common%20db%20object%20methods.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.hostInfo%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Returns%20a%20document%20with%20information%20about%20the%20system%20MongoDB%20runs%20on.%20Wraps%20hostInfo%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.isMaster%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Returns%20a%20document%20that%20reports%20the%20state%20of%20the%20replica%20set.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.killOp%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Terminates%20a%20specified%20operation.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.listCommands%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Displays%20a%20list%20of%20common%20database%20commands.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.loadServerScripts%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Loads%20all%20scripts%20in%20the%20system.js%20collection%20for%20the%20current%20database%20into%20the%20shell%20session.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.logout%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Ends%20an%20authenticated%20session.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.printCollectionStats%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Prints%20statistics%20from%20every%20collection.%20Wraps%20db.collection.stats%28%29.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.printReplicationInfo%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Prints%20a%20report%20of%20the%20status%20of%20the%20replica%20set%20from%20the%20perspective%20of%20the%20primary.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.printShardingStatus%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Prints%20a%20report%20of%20the%20sharding%20configuration%20and%20the%20chunk%20ranges.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.printSlaveReplicationInfo%28%29%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Prints%20a%20report%20of%20the%20status%20of%20the%20replica%20set%20from%20the%20perspective%20of%20the%20secondaries.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.repairDatabase%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Runs%20a%20repair%20routine%20on%20the%20current%20database.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.resetError%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Resets%20the%20error%20message%20returned%20by%20db.getPrevError%28%29%20andgetPrevError.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.runCommand%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Runs%20a%20database%20command.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.serverBuildInfo%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Returns%20a%20document%20that%20displays%20the%20compilation%20parameters%20for%20the%20mongodinstance.%20Wraps%20buildinfo.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.serverCmdLineOpts%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Returns%20a%20document%20with%20information%20about%20the%20runtime%20used%20to%20start%20the%20MongoDB%20instance.%20Wraps%20getCmdLineOpts.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.serverStatus%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Returns%20a%20document%20that%20provides%20an%20overview%20of%20the%20state%20of%20the%20database%20process.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.setLogLevel%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Sets%20a%20single%20log%20message%20verbosity%20level.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.setProfilingLevel%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Modifies%20the%20current%20level%20of%20database%20profiling.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.shutdownServer%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Shuts%20down%20the%20current%20mongod%20or%20mongos%20process%20cleanly%20and%20safely.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.stats%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Returns%20a%20document%20that%20reports%20on%20the%20state%20of%20the%20current%20database.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.version%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Returns%20the%20version%20of%20the%20mongod%20instance.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.upgradeCheck%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Performs%20a%20preliminary%20check%20for%20upgrade%20preparedness%20for%20a%20specific%20database%20or%20collection.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.upgradeCheckAllDBs%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Performs%20a%20preliminary%20check%20for%20upgrade%20preparedness%20for%20all%20databases%20and%20collections.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20Query%20Plan%20Cache%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20Name%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Description%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.collection.getPlanCache%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Returns%20an%20interface%20to%20access%20the%20query%20plan%20cache%20object%20and%20associated%20PlanCache%20methods%20for%20a%20collection.%u201D%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20PlanCache.help%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Displays%20the%20methods%20available%20for%20a%20collection%u2019s%20query%20plan%20cache.%20Accessible%20through%20the%20plan%20cache%20object%20of%20a%20specific%20collection%2C%20i.e.db.collection.getPlanCache%28%29.help%28%29.%20%20%20%20%20%20%20%7C%0A%7C%20PlanCache.listQueryShapes%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Displays%20the%20query%20shapes%20for%20which%20cached%20query%20plans%20exist.%20Accessible%20through%20the%20plan%20cache%20object%20of%20a%20specific%20collection%2C%20i.e.db.collection.getPlanCache%28%29.listQueryShapes%28%29.%20%20%7C%0A%7C%20PlanCache.getPlansByQuery%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Displays%20the%20cached%20query%20plans%20for%20the%20specified%20query%20shape.%20Accessible%20through%20the%20plan%20cache%20object%20of%20a%20specific%20collection%2C%20i.e.db.collection.getPlanCache%28%29.getPlansByQuery%28%29.%20%7C%0A%7C%20PlanCache.clearPlansByQuery%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Clears%20the%20cached%20query%20plans%20for%20the%20specified%20query%20shape.%20Accessible%20through%20the%20plan%20cache%20object%20of%20a%20specific%20collection%2C%20i.e.db.collection.getPlanCache%28%29.clearPlansByQuery%28%29%20%20%7C%0A%7C%20PlanCache.clear%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Clears%20all%20the%20cached%20query%20plans%20for%20a%20collection.%20Accessible%20through%20the%20plan%20cache%20object%20of%20a%20specific%20collection%2C%20i.e.db.collection.getPlanCache%28%29.clear%28%29.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20Bulk%20Write%20Operation%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20Name%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Description%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20Bulk%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Bulk%20operations%20builder.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.collection.initializeOrderedBulkOp%28%29%20%20%20%7C%20Initializes%20a%20Bulk%28%29%20operations%20builder%20for%20an%20ordered%20list%20of%20operations.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.collection.initializeUnorderedBulkOp%28%29%20%7C%20Initializes%20a%20Bulk%28%29%20operations%20builder%20for%20an%20unordered%20list%20of%20operations.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20Bulk.insert%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Adds%20an%20insert%20operation%20to%20a%20list%20of%20operations.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20Bulk.find%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Specifies%20the%20query%20condition%20for%20an%20update%20or%20a%20remove%20operation.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20Bulk.find.removeOne%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Adds%20a%20single%20document%20remove%20operation%20to%20a%20list%20of%20operations.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20Bulk.find.remove%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Adds%20a%20multiple%20document%20remove%20operation%20to%20a%20list%20of%20operations.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20Bulk.find.replaceOne%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Adds%20a%20single%20document%20replacement%20operation%20to%20a%20list%20of%20operations.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20Bulk.find.updateOne%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Adds%20a%20single%20document%20update%20operation%20to%20a%20list%20of%20operations.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20Bulk.find.update%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Adds%20a%20multi%20update%20operation%20to%20a%20list%20of%20operations.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20Bulk.find.upsert%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Specifies%20upsert%3A%20true%20for%20an%20update%20operation.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20Bulk.execute%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Executes%20a%20list%20of%20operations%20in%20bulk.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20Bulk.getOperations%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Returns%20an%20array%20of%20write%20operations%20executed%20in%20the%20Bulk%28%29operations%20object.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20Bulk.tojson%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Returns%20a%20JSON%20document%20that%20contains%20the%20number%20of%20operations%20and%20batches%20in%20the%20Bulk%28%29%20operations%20object.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20Bulk.toString%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Returns%20the%20Bulk.tojson%28%29%20results%20as%20a%20string.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20User%20Management%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20Name%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Description%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.auth%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Authenticates%20a%20user%20to%20a%20database.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.createUser%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Creates%20a%20new%20user.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.updateUser%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Updates%20user%20data.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.changeUserPassword%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Changes%20an%20existing%20user%u2019s%20password.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.removeUser%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Deprecated.%20Removes%20a%20user%20from%20a%20database.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.dropAllUsers%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Deletes%20all%20users%20associated%20with%20a%20database.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.dropUser%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Removes%20a%20single%20user.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.grantRolesToUser%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Grants%20a%20role%20and%20its%20privileges%20to%20a%20user.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.revokeRolesFromUser%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Removes%20a%20role%20from%20a%20user.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.getUser%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Returns%20information%20about%20the%20specified%20user.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.getUsers%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Returns%20information%20about%20all%20users%20associated%20with%20a%20database.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20Role%20Management%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20Name%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Description%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.createRole%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Creates%20a%20role%20and%20specifies%20its%20privileges.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.updateRole%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Updates%20a%20user-defined%20role.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.dropRole%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Deletes%20a%20user-defined%20role.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.dropAllRoles%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Deletes%20all%20user-defined%20roles%20associated%20with%20a%20database.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.grantPrivilegesToRole%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Assigns%20privileges%20to%20a%20user-defined%20role.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.revokePrivilegesFromRole%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Removes%20the%20specified%20privileges%20from%20a%20user-defined%20role.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.grantRolesToRole%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Specifies%20roles%20from%20which%20a%20user-defined%20role%20inherits%20privileges.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.revokeRolesFromRole%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Removes%20inherited%20roles%20from%20a%20role.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.getRole%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Returns%20information%20for%20the%20specified%20role.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20db.getRoles%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Returns%20information%20for%20all%20the%20user-defined%20roles%20in%20a%20database.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20Replication%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20Name%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Description%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20rs.add%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Adds%20a%20member%20to%20a%20replica%20set.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20rs.addArb%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Adds%20an%20arbiter%20to%20a%20replica%20set.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20rs.conf%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Returns%20the%20replica%20set%20configuration%20document.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20rs.freeze%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Prevents%20the%20current%20member%20from%20seeking%20election%20as%20primary%20for%20a%20period%20of%20time.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20rs.help%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Returns%20basic%20help%20text%20for%20replica%20set%20functions.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20rs.initiate%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Initializes%20a%20new%20replica%20set.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20rs.printReplicationInfo%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Prints%20a%20report%20of%20the%20status%20of%20the%20replica%20set%20from%20the%20perspective%20of%20the%20primary.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20rs.printSlaveReplicationInfo%28%29%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Prints%20a%20report%20of%20the%20status%20of%20the%20replica%20set%20from%20the%20perspective%20of%20the%20secondaries.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20rs.reconfig%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Re-configures%20a%20replica%20set%20by%20applying%20a%20new%20replica%20set%20configuration%20object.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20rs.remove%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Remove%20a%20member%20from%20a%20replica%20set.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20rs.slaveOk%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Sets%20the%20slaveOk%20property%20for%20the%20current%20connection.%20Deprecated.%20UsereadPref%28%29%20and%20Mongo.setReadPref%28%29%20to%20set%20read%20preference.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20rs.status%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Returns%20a%20document%20with%20information%20about%20the%20state%20of%20the%20replica%20set.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20rs.stepDown%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Causes%20the%20current%20primary%20to%20become%20a%20secondary%20which%20forces%20an%20election.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20rs.syncFrom%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Sets%20the%20member%20that%20this%20replica%20set%20member%20will%20sync%20from%2C%20overriding%20the%20default%20sync%20target%20selection%20logic.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20Sharding%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20Name%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Description%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20sh._adminCommand%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Runs%20a%20database%20command%20against%20the%20admin%20database%2C%20like%20db.runCommand%28%29%2C%20but%20can%20confirm%20that%20it%20is%20issued%20against%20a%20mongos.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20sh.getBalancerLockDetails%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Reports%20on%20the%20active%20balancer%20lock%2C%20if%20it%20exists.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20sh._checkFullName%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Tests%20a%20namespace%20to%20determine%20if%20its%20well%20formed.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20sh._checkMongos%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Tests%20to%20see%20if%20the%20mongo%20shell%20is%20connected%20to%20a%20mongos%20instance.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20sh._lastMigration%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Reports%20on%20the%20last%20chunk%20migration.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20sh.addShard%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Adds%20a%20shard%20to%20a%20sharded%20cluster.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20sh.addShardTag%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Associates%20a%20shard%20with%20a%20tag%2C%20to%20support%20tag%20aware%20sharding.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20sh.addTagRange%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Associates%20range%20of%20shard%20keys%20with%20a%20shard%20tag%2C%20to%20support%20tag%20aware%20sharding.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20sh.removeTagRange%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Removes%20an%20association%20between%20a%20range%20shard%20keys%20and%20a%20shard%20tag.%20Use%20to%20manage%20tag%20aware%20sharding.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20sh.disableBalancing%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Disable%20balancing%20on%20a%20single%20collection%20in%20a%20sharded%20database.%20Does%20not%20affect%20balancing%20of%20other%20collections%20in%20a%20sharded%20cluster.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20sh.enableBalancing%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Activates%20the%20sharded%20collection%20balancer%20process%20if%20previously%20disabled%20usingsh.disableBalancing%28%29.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20sh.enableSharding%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Enables%20sharding%20on%20a%20specific%20database.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20sh.getBalancerHost%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Returns%20the%20name%20of%20a%20mongos%20that%u2019s%20responsible%20for%20the%20balancer%20process.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20sh.getBalancerState%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Returns%20a%20boolean%20to%20report%20if%20the%20balancer%20is%20currently%20enabled.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20sh.help%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Returns%20help%20text%20for%20the%20sh%20methods.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20sh.isBalancerRunning%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Returns%20a%20boolean%20to%20report%20if%20the%20balancer%20process%20is%20currently%20migrating%20chunks.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20sh.moveChunk%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Migrates%20a%20chunk%20in%20a%20sharded%20cluster.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20sh.removeShardTag%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Removes%20the%20association%20between%20a%20shard%20and%20a%20shard%20tag.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20sh.setBalancerState%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Enables%20or%20disables%20the%20balancer%20which%20migrates%20chunks%20between%20shards.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20sh.shardCollection%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Enables%20sharding%20for%20a%20collection.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20sh.splitAt%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Divides%20an%20existing%20chunk%20into%20two%20chunks%20using%20a%20specific%20value%20of%20the%20shard%20key%20as%20the%20dividing%20point.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20sh.splitFind%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Divides%20an%20existing%20chunk%20that%20contains%20a%20document%20matching%20a%20query%20into%20two%20approximately%20equal%20chunks.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20sh.startBalancer%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Enables%20the%20balancer%20and%20waits%20for%20balancing%20to%20start.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20sh.status%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Reports%20on%20the%20status%20of%20a%20sharded%20cluster%2C%20as%20db.printShardingStatus%28%29.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20sh.stopBalancer%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Disables%20the%20balancer%20and%20waits%20for%20any%20in%20progress%20balancing%20rounds%20to%20complete.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20sh.waitForBalancer%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Internal.%20Waits%20for%20the%20balancer%20state%20to%20change.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20sh.waitForBalancerOff%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Internal.%20Waits%20until%20the%20balancer%20stops%20running.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20sh.waitForDLock%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Internal.%20Waits%20for%20a%20specified%20distributed%20sharded%20cluster%20lock.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20sh.waitForPingChange%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Internal.%20Waits%20for%20a%20change%20in%20ping%20state%20from%20one%20of%20the%20mongos%20in%20the%20sharded%20cluster.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20Subprocess%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20Name%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Description%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20clearRawMongoProgramOutput%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20For%20internal%20use.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20rawMongoProgramOutput%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20For%20internal%20use.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20run%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20For%20internal%20use.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20runMongoProgram%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20For%20internal%20use.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20runProgram%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20For%20internal%20use.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20startMongoProgram%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20For%20internal%20use.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20stopMongoProgram%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20For%20internal%20use.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20stopMongoProgramByPid%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20For%20internal%20use.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20stopMongod%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20For%20internal%20use.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20waitMongoProgramOnPort%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20For%20internal%20use.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20waitProgram%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20For%20internal%20use.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20Constructors%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20Name%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Description%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20Date%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Creates%20a%20date%20object.%20By%20default%20creates%20a%20date%20object%20including%20the%20current%20date.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20UUID%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Converts%20a%2032-byte%20hexadecimal%20string%20to%20the%20UUID%20BSON%20subtype.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20ObjectId%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Returns%20an%20ObjectId.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20ObjectId.getTimestamp%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Returns%20the%20timestamp%20portion%20of%20an%20ObjectId.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20ObjectId.toString%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Displays%20the%20string%20representation%20of%20an%20ObjectId.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20ObjectId.valueOf%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Displays%20the%20str%20attribute%20of%20an%20ObjectId%20as%20a%20hexadecimal%20string.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20WriteResult%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Wrapper%20around%20the%20result%20set%20from%20write%20methods.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20WriteResult.hasWriteError%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Returns%20a%20boolean%20specifying%20whether%20the%20results%20includeWriteResult.writeError.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20WriteResult.hasWriteConcernError%28%29%20%20%20%20%20%20%20%20%7C%20Returns%20a%20boolean%20specifying%20whether%20whether%20the%20results%20includeWriteResult.writeConcernError.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20BulkWriteResult%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Wrapper%20around%20the%20result%20set%20from%20Bulk.execute%28%29.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20Connection%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20Name%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Description%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20Mongo.getDB%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Returns%20a%20database%20object.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20Mongo.getReadPrefMode%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Returns%20the%20current%20read%20preference%20mode%20for%20the%20MongoDB%20connection.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20Mongo.getReadPrefTagSet%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Returns%20the%20read%20preference%20tag%20set%20for%20the%20MongoDB%20connection.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20Mongo.setReadPref%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Sets%20the%20read%20preference%20for%20the%20MongoDB%20connection.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20Mongo.setSlaveOk%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Allows%20operations%20on%20the%20current%20connection%20to%20read%20from%20secondary%20members.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20Mongo%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Creates%20a%20new%20connection%20object.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20connect%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Connects%20to%20a%20MongoDB%20instance%20and%20to%20a%20specified%20database%20on%20that%20instance.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20Native%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20Name%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Description%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20cat%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Returns%20the%20contents%20of%20the%20specified%20file.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20version%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Returns%20the%20current%20version%20of%20the%20mongo%20shell%20instance.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20cd%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Changes%20the%20current%20working%20directory%20to%20the%20specified%20path.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20sleep%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Suspends%20the%20mongo%20shell%20for%20a%20given%20period%20of%20time.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20copyDbpath%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Copies%20a%20local%20dbPath.%20For%20internal%20use.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20resetDbpath%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Removes%20a%20local%20dbPath.%20For%20internal%20use.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20fuzzFile%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20For%20internal%20use%20to%20support%20testing.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20getHostName%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Returns%20the%20hostname%20of%20the%20system%20running%20the%20mongo%20shell.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20getMemInfo%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Returns%20a%20document%20that%20reports%20the%20amount%20of%20memory%20used%20by%20the%20shell.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20hostname%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Returns%20the%20hostname%20of%20the%20system%20running%20the%20shell.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20_isWindows%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Returns%20true%20if%20the%20shell%20runs%20on%20a%20Windows%20system%3B%20false%20if%20a%20Unix%20or%20Linux%20system.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20listFiles%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Returns%20an%20array%20of%20documents%20that%20give%20the%20name%20and%20size%20of%20each%20object%20in%20the%20directory.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20load%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Loads%20and%20runs%20a%20JavaScript%20file%20in%20the%20shell.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20ls%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Returns%20a%20list%20of%20the%20files%20in%20the%20current%20directory.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20md5sumFile%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20The%20md5%20hash%20of%20the%20specified%20file.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20mkdir%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Creates%20a%20directory%20at%20the%20specified%20path.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20pwd%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Returns%20the%20current%20directory.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20quit%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Exits%20the%20current%20shell%20session.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20_rand%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Returns%20a%20random%20number%20between%200%20and%201.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20removeFile%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Removes%20the%20specified%20file%20from%20the%20local%20file%20system.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20setVerboseShell%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20Configures%20the%20mongo%20shell%20to%20report%20operation%20timing.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%7C%20_srand%28%29%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20For%20internal%20use.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%0A%0A%0A%23%20MongoDB%u96C6%u7FA4%0A%23%20MongoDB%u7F3A%u9677%0A%0A%23%23%20ObjectId%0A%60ObjectId%60%u5C0F%u5DE7%uFF0C%u552F%u4E00%uFF0C%u53EF%u5FEB%u901F%u751F%u6210%uFF0C%u6613%u4E8E%u6392%u5E8F%u3002%60ObjectId%60%u603B%u5171%u753112-bytes%u7EC4%u6210%u3002%u5176%u4E2D%u524D4%20bytes%u662Funix%u65F6%u95F4%u7F00%uFF0C%u4EE3%u8868%u8BE5%60ObjectId%60%u7684%u751F%u6210%u65F6%u95F4%u3002%0A*%20a%204-byte%20value%20representing%20the%20seconds%20since%20the%20Unix%20epoch%2C%0A*%20a%203-byte%20machine%20identifier%2C%0A*%20a%202-byte%20process%20id%2C%20and%0A*%20a%203-byte%20counter%2C%20starting%20with%20a%20random%20value.%0A%0A%u5728MongoDB%u4E2D%uFF0C%u6BCF%u4E2A%60documents%60%u5B58%u50A8%u5728%60collections%60%u9700%u8981%u4E00%u4E2A%u552F%u4E00%u7684%60_id%60%uFF0C%60_id%60%u626E%u6F14%u7684%u89D2%u8272%u662F%u4E3B%u952E%u3002%u5982%u679C%60_id%60%u9ED8%u8BA4%u6CA1%u6709%u5B9A%u4E49%uFF0C%u5219MongoDB%u9ED8%u8BA4%u4F7F%u7528%20%60ObjectId%60%2C%20%60ObjectId%60%u7684%u521B%u5EFA%u65F6%u95F4%u4E5F%u53EF%u4EE5%u901A%u8FC7%5BObjectId.getTimestamp%28%29%5D%28https%3A//docs.mongodb.org/manual/reference/method/ObjectId.getTimestamp/%23ObjectId.getTimestamp%29%u83B7%u53D6%u3002%0A%0A

原创文章,作者:stanley,如若转载,请注明出处:http://www.178linux.com/13492

(0)
上一篇 2016-03-26 18:53
下一篇 2016-03-27 21:34

相关推荐

  • MariaDB安装与配置

    MariaDB安装与配置  本文是基于CentOS7.2系统来进行mariadb的安装与配置,安装前请关闭selinux和在iptables规则中开放3306端口,在此次我们直接清空了iptables规则。 Iptables –F vim /etc/selinux/config #SELINUX=enforcing ##注释掉此项## #SELIN…

    Linux干货 2017-02-18
  • 关于大型网站技术演进的思考(十三)–网站静态化处理—CSI(5)

    原文出处: 夏天的森林   讲完了SSI,ESI,下面就要讲讲CSI了 ,CSI是浏览器端的动静整合方案,当我文章发表后有朋友就问我,CSI技术是不是就是通过ajax来加载数据啊,我当时的回答只是说你的理解有点片面,那么到底什么是CSI技术了?这个其实要和动静资源整合的角度来定义。 CSI技术其实是在页面进行动静分离后,将页面加…

    2015-03-11
  • 文本处理工具

    文本处理工具 1、查看文件内容 cat -v 显示非打印字符       -E 显示$      -T 显示TAB      -n 显示行号      -s 将连续的重复空行变成一行      -A = -vE…

    2017-07-30
  • Bonding多块网卡绑定同一IP地址

    Bonding多块网卡绑定同一IP地址 就是将多块网卡绑定同一IP地址对外提供服务,可以实现高可用或者负载均衡。当然,直接给两块网卡设置同一IP地址是不可能的。通过bonding,虚拟一块网卡对外提供连接,物理网卡的被修改为相同的MAC地址。 一共有七种模式这里提供三种常用的:   一、Mode 0 (balance-rr)  轮转( Round-robin…

    Linux干货 2016-09-07
  • Linux内核编译过程详解

    前言 Linux内核是Linux操作系统的核心,也是整个Linux功能体现的核心,就如同发动机在汽车中的重要性。内核主要功能包括进程管理、内存管理、文件管理、设备管理、网络管理等。Linux内核是单内核设计,但却采用了微内核的模块化设计,支持内核线程以及动态装载内核模块的能力。 Linux作为一个自由软件,在广大爱好者的支持下,内核版本不断更新。新的内核修订…

    Linux干货 2015-04-01
  • ☞Linux进程管理与性能分析

    Linux进程管理与性能分析 概述 系统维护的一个重要工作就是监控Linux系统的运行状态是否正常,分析系统资源的使用情况,进而对系统进行优化,提高其性能。在实际环境中,系统稳定性尤为重要,可以说系统的稳定性关系到企业的存亡。因此,第一时间掌握CPU、Memory、IO、Network的等系统资源的状态则可以在系统出现问题时及时解决,把损失降到最低。&nbs…

    Linux干货 2016-09-11