What is MongoDBs strict mode and is it a good idea to use?

后端 未结 2 2012
后悔当初
后悔当初 2020-12-19 00:22

I\'m working on a node.js app that uses MongoDB and I read this from the docs:

db.collection

Fetch a specific collection (contain

2条回答
  •  盖世英雄少女心
    2020-12-19 01:04

    It might be referring to Javascript's strict mode instead of a Mongo specific feature. strict mode enables some optional but backwards incompatible changes in the Javascript language that help catch some bugs:

    What does "use strict" do in JavaScript, and what is the reasoning behind it?

提交回复
热议问题