Method AddToSet
AddToSet(string, BsonValue)
Adds a value to a named array element if the value is not already in the array (see $addToSet).
public static UpdateBuilder AddToSet(string name, BsonValue value)
Parameters
Returns
- UpdateBuilder
The builder (so method calls can be chained).