Options
Menu

Class ModelResult

Represents a single read-only result entry from a model query. Includes the relevant data and metadata for a particular model.

Hierarchy

  • ModelResult

Index

Constructors

constructor

  • new ModelResult(data: {}, collectionId?: string, modelId?: string, created?: Date, modified?: Date, version?: number): ModelResult
  • Parameters

    • data: {}
      • [key: string]: any
    • collectionId: string
    • modelId: string
    • created: Date
    • modified: Date
    • version: number

    Returns ModelResult

Properties

collectionId

collectionId: string

The model's collection ID

created

created: Date

The creation timestamp of the model

data

data: {}

The contents of the model.

Type declaration

  • [key: string]: any

modelId

modelId: string

The model's unique ID

modified

modified: Date

The timestamp at which the model's data was last modified

version

version: number

The model's current version