Table of Contents

Method Rename

Namespace
MongoDB.Driver.Builders
Assembly
MongoDB.Driver.Legacy.dll

Rename(string, string)

Renames an element (see $rename).

public UpdateBuilder Rename(string oldElementName, string newElementName)

Parameters

oldElementName string

The old element name.

newElementName string

The new element name.

Returns

UpdateBuilder

The builder (so method calls can be chained).