vibe.d beta banner
get vibe.d
0.10.1

Asynchronous I/O that doesn’t get in your way, written in D

Struct UpdateOptions

struct UpdateOptions ;

Fields

NameTypeDescription
arrayFilters std.typecons.Nullable!(vibe.data.bson.Bson[])A set of filters specifying to which array elements an update should apply.
bypassDocumentValidation std.typecons.Nullable!(bool)If true, allows the write to opt-out of document level validation.
collation std.typecons.Nullable!(vibe.db.mongo.collection.Collation)Collation allows users to specify language-specific rules for string comparison, such as rules for letter-case and accent marks.
comment std.typecons.Nullable!(string)Users can specify an arbitrary string to help trace the operation through the database profiler, currentOp, and logs.
hint std.typecons.Nullable!(vibe.data.bson.Bson)The index to use. Specify either the index name as a string or the index key pattern.
upsert std.typecons.Nullable!(bool)When true, creates a new document if no document matches the query.
writeConcern std.typecons.Nullable!(vibe.db.mongo.collection.WriteConcern)A document that expresses the write concern of the insert command. Omit to use the default write concern.

See Also

https://docs.mongodb.com/manual/reference/command/update/

Standards

https://github.com/mongodb/specifications/blob/525dae0aa8791e782ad9dd93e507b60c55a737bb/source/crud/crud.rst#insert-update-replace-delete-and-bulk-writes

Authors

Jan Jurzitza

Copyright

© 2022 Jan Jurzitza

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.