Table of Contents

Method Rename

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

Rename(string, string)

Renames an element (see $rename).

public static UpdateBuilder Rename(string oldElementName, string newElementName)

Parameters

oldElementName string

The name of the element to be renamed.

newElementName string

The new name of the element.

Returns

UpdateBuilder

An UpdateDocuemnt.