Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TimeSeriesOptions

Options used to configure timeseries options.

Added in MongoDB 5.0 https://www.mongodb.com/docs/manual/core/timeseries-collections/

Hierarchy

  • TimeSeriesOptions

Index

Constructors

constructor

Methods

getGranularity

getMetaField

  • getMetaField(): string
  • Returns string

getTimeField

  • getTimeField(): string
  • Returns string

setGranularity

setMetaField

  • Parameters

    • metaField: string

    Returns TimeSeriesOptions

setTimeField

  • Parameters

    • timeField: string

    Returns TimeSeriesOptions

toJson

  • toJson(): {}
  • Returns {}

    • [key: string]: any

Generated using TypeDoc