We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This is an optional feature proposal for removing properties from documents with the updateMany function.
updateMany
For example:
function updateUsers() { // data/users.json = { "users": [{ "username": "john_doe", "age": 21, "student": true, "promoted": true }, {"username": "jane_doe", "age": 24, "student": true, "promoted": true }] } const res = await users.updateMany({ promoted: true }, { $rem: ['promoted'] }{ updateAll: true }); console.log(res) // [{ username: 'john_doe', age: 21, student: true }, {username: 'jane_doe', age: 24, student: false }] }
The value of the $rem special character will be an array of properties to remove from the group of documents.
$rem
The text was updated successfully, but these errors were encountered:
No branches or pull requests
This is an optional feature proposal for removing properties from documents with the
updateMany
function.For example:
The value of the
$rem
special character will be an array of properties to remove from the group of documents.The text was updated successfully, but these errors were encountered: