Navigation

    Compatibility Changes with Legacy mongo Shell

    The following behaviors in mongosh affect compatibility with operations performed in the legacy mongo shell.

    The following shell methods are deprecated in mongosh. Instead, use the methods listed in the Alternative Methods column.

    Deprecated Method
    Alternative Methods
    db.collection.insert()
    db.collection.remove()
    db.collection.save()
    db.collection.update()
    Give Feedback