Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AbstractOperation<TResult>

This class acts as a parent class for any operation and is responsible for setting this.options, as well as setting and getting a session. Additionally, this class implements hasAspect, which determines whether an operation has a specific aspect.

internal

Type parameters

  • TResult = any

Hierarchy

Index

Constructors

constructor

Properties

[kSession]

[kSession]: ClientSession

Optional bsonOptions

bypassPinningCheck

bypassPinningCheck: boolean

cmd

ns

options

options: Document

readPreference

readPreference: ReadPreference

server

server: Server

Accessors

canRetryRead

  • get canRetryRead(): boolean

canRetryWrite

  • get canRetryWrite(): boolean

session

Methods

Abstract execute

hasAspect

  • hasAspect(aspect: symbol): boolean

Generated using TypeDoc