You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm implementing Migrations for LiteDb. In other NoSql Dbs, they have an unset command, which allows you to clear a property from a document (or a set of documents). Is there something similar with LiteDb?
I know I can load all documents from a collection, call BsonDocument.Remove(propertyName) to remove a property, then call collection.Update(doc) - but that requires loading every document. To add a property / set a property, I can use the collection.UpdateMany method with a BsonDocument containing the changes I want to make, so no need to load everything. Is there something like that to remove a property from a list of documents without having to load them all?
The text was updated successfully, but these errors were encountered:
I'm implementing Migrations for LiteDb. In other NoSql Dbs, they have an
unset
command, which allows you to clear a property from a document (or a set of documents). Is there something similar with LiteDb?I know I can load all documents from a collection, call
BsonDocument.Remove(propertyName)
to remove a property, then callcollection.Update(doc)
- but that requires loading every document. To add a property / set a property, I can use thecollection.UpdateMany
method with a BsonDocument containing the changes I want to make, so no need to load everything. Is there something like that to remove a property from a list of documents without having to load them all?The text was updated successfully, but these errors were encountered: