Table of Contents

Property IsUpsert

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

IsUpsert

Gets a value indicating whether a document should be inserted if no matching document is found.

public bool IsUpsert { get; set; }

Property Value

bool

true if a document should be inserted if no matching document is found; otherwise, false.