Code Inspections in MongoJS
This topic lists all PhpStorm code inspections available in MongoJS.
You can toggle specific inspections or change their severity level on the Editor | Inspections page of the IDE settings Ctrl+Alt+S.
Inspection | Description | Default Severity |
---|---|---|
Reports usages of deprecated methods in MongoDB and JavaScript code.
db.my_collection.insert()
After the quick-fix is applied:
db.my_collection.insertOne()
| Warning | |
Reports unresolved references in MongoDB and JavaScript code. db
use foo
-- a reference to a non-existing collection
db.non_existing_collection
db['non_existing_collection']
db['non_existing_collection'].find().hasNext() The non_existing_collection collection does not exist in the database and will be reported. | Warning | |
Reports statements that may cause side effects while the data source is in read-only mode.
db.my_collection.insertOne()
| Warning |
Last modified: 01 December 2021