Docs Home / Node.js Driver

Issues & Help问题和帮助

Our developer community is vibrant and highly engaged, with extensive experience using Node.js with MongoDB.开发人员社区充满活力,高度参与,拥有将Node.js与MongoDB结合使用的丰富经验。

You can find support for general questions by using the MongoDB Stack Overflow tag or the MongoDB Reddit community.您可以通过使用MongoDB Stack Overflow标签或MongoDB Reddit社区找到对一般问题的支持。

Refer to our support channels documentation for more information.有关更多信息,请参阅支持渠道文档。

Bugs / Feature RequestsBug/功能请求

To report a bug or to request a new feature in the Node.js driver, please open a case in our issue management tool, JIRA:要报告错误或请求Node.js驱动程序中的新功能,请在问题管理工具JIRA中打开一个案例:

Bug reports in JIRA for the Node.js driver and the Core Server (SERVER) project are public.Node.js驱动程序和核心服务器(Server)项目的JIRA中的Bug报告是公开的

If you’ve identified a security vulnerability in a driver or any other MongoDB project, please report it according to the instructions found in the Create a Vulnerability Report.如果您在驱动程序或任何其他MongoDB项目中发现了安全漏洞,请根据创建漏洞报告中的说明进行报告。

Pull Requests拉取请求

We are happy to accept contributions to help improve the driver. We will review user contributions to ensure they meet the standards of the codebase. Pull requests must pass the travis.ci checks, include documentation, and include tests.我们很乐意接受捐款,以帮助改善司机。我们将审查用户的贡献,以确保它们符合代码库的标准。Pull请求必须通过travis.ci检查,包括文档和测试。

To get started check out the source and work on a branch:要开始,请查看源代码并处理分支:

git clone https://github.com/mongodb/node-mongodb-native.git
cd node-mongodb-native
npm install
git checkout -b myNewFeature

To run the test suite, you must have a server topology running and provide the URI to the command. For example, if you have a single server running at "mongodb://localhost:27017", you can run the following:要运行测试套件,您必须运行服务器拓扑并向命令提供URI。例如,如果您有一台服务器在"mongodb://localhost:27017",您可以运行以下命令:

MONGODB_URI="mongodb://localhost:27017" npm test

Note that the tests run on your feature are different depending on the type of topology that you are running, such as for a standalone instance or replica set.请注意,根据您运行的拓扑类型(例如独立实例或副本集),在您的功能上运行的测试是不同的。

Note

There are many tools that can help you with setting up different topologies for local testing. Some examples are mtools and mongo-orchestration.有许多工具可以帮助您为本地测试设置不同的拓扑。一些例子是mtoolsmongo-orchestration