Method AddToSetWrapped
AddToSetWrapped<T>(string, T)
Adds a wrapped value to a named array element if the value is not already in the array (see $addToSet).
public static UpdateBuilder AddToSetWrapped<T>(string name, T value)
Parameters
name
stringThe name of the array element.
value
TThe wrapped value to add to the set.
Returns
- UpdateBuilder
The builder (so method calls can be chained).
Type Parameters
T
The type of wrapped value.