Function MongoCollection.replaceOne
Replaces at most single document within the collection based on the filter.
UpdateResult replaceOne(T, U)
(
T filter,
U replacement,
UpdateOptions options = UpdateOptions .init
) @safe;
See Also
Standards
https://www.mongodb.com/docs/manual/reference/command/update/