Method Unset
Unset<TMember>(Expression<Func<TDocument, TMember>>)
Removes the named element from the document (see $unset).
public UpdateBuilder<TDocument> Unset<TMember>(Expression<Func<TDocument, TMember>> memberExpression)
Parameters
memberExpression
Expression<Func<TDocument, TMember>>The member expression.
Returns
- UpdateBuilder<TDocument>
The builder (so method calls can be chained).
Type Parameters
TMember
The type of the member.