Method Pull
Pull<TItem>(FieldDefinition<TDocument>, TItem)
Creates a pull operator.
public UpdateDefinition<TDocument> Pull<TItem>(FieldDefinition<TDocument> field, TItem value)
Parameters
field
FieldDefinition<TDocument>The field.
value
TItemThe value.
Returns
- UpdateDefinition<TDocument>
A pull operator.
Type Parameters
TItem
The type of the item.
Pull<TItem>(Expression<Func<TDocument, IEnumerable<TItem>>>, TItem)
Creates a pull operator.
public UpdateDefinition<TDocument> Pull<TItem>(Expression<Func<TDocument, IEnumerable<TItem>>> field, TItem value)
Parameters
field
Expression<Func<TDocument, IEnumerable<TItem>>>The field.
value
TItemThe value.
Returns
- UpdateDefinition<TDocument>
A pull operator.
Type Parameters
TItem
The type of the item.