Table of Contents

Property JavaScriptMode

Namespace
MongoDB.Driver.Core.Operations
Assembly
MongoDB.Driver.Core.dll

JavaScriptMode

Gets or sets a value indicating whether objects emitted by the map function remain as JavaScript objects.

[Obsolete("JavaScriptMode is ignored by server versions 4.4.0 and newer.")]
public bool? JavaScriptMode { get; set; }

Property Value

bool?
Setting this value to true can result in faster execution, but requires more memory on the server, and if there are too many emitted objects the map-reduce operation may fail. true if objects emitted by the map function remain as JavaScript objects; otherwise, false.