Table of Contents

Struct RenderArgs<TDocument>

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

Encapsulates settings needed for rendering Builder definitions.

public record struct RenderArgs<TDocument> : IEquatable<RenderArgs<TDocument>>

Type Parameters

TDocument

The type of the document.

Implements
Inherited Members

Constructors

RenderArgs(IBsonSerializer<TDocument>, IBsonSerializerRegistry, PathRenderArgs, bool, bool, bool, ExpressionTranslationOptions)

Initializes a new instance of the RenderArgs<TDocument> record.

Properties

DocumentSerializer

Gets the document serializer.

PathRenderArgs

Gets the path render arguments.

RenderDollarForm

Gets the value indicating whether full dollar form should be rendered.

RenderForElemMatch

Gets the value indicating whether Render is being called for ElemMatch.

RenderForFind

Gets the value indicating whether Render is being called for Find.

SerializerRegistry

Gets the serializer registry.

TranslationOptions

Gets the translation options used when translation Expressions to MQL.

Methods

GetSerializer<T>()

Returns DocumentSerializer if it implements IBsonSerializer{T} or resolves IBsonSerializer{T} from SerializerRegistry.

WithNewDocumentType<TNewDocument>(IBsonSerializer<TNewDocument>)

Creates a new RenderArgs with new document type {TNewDocument}