_MongoCollection.Replace (gb.mongodb)

Sub Replace ( Filter As Collection, Document As Collection [ , Options As Collection ] )

Replace one document matching the specified query.

  • Filter : The query that should match only one document.

  • Document : The new document that will replace the old one.

  • Options : Additional command options. See the MongoDB documentation for more details.

If the new document is NULL, the old document will be removed.

See the MongoDB documentation for the syntax of the query filter.