Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Resource<T>

Type parameters

  • T

Hierarchy

  • Resource

Index

Constructors

Properties

Methods

Constructors

constructor

  • Parameters

    • Optional doc: any

    Returns SubDocument & T

Properties

[GT_SUB_DOCUMENT]

[GT_SUB_DOCUMENT]: boolean

prototype

prototype: SubDocument & T

schema

schema: Schema

Methods

ctor

  • ctor<T>(this: Ctor<T>, doc: Partial<T>): T
  • Like create() but without the save, replaces the constructor. Useful when you want to create a new instance from a base discriminator class

    Type parameters

    Parameters

    • this: Ctor<T>
    • doc: Partial<T>

    Returns T

Generated using TypeDoc