Options
All
  • Public
  • Public/Protected
  • All
Menu

Class of Tessra Collection Performs all the functions of TessraDB collections (find, delete, insert, update, etc.)

Hierarchy

  • TessraCollection

Index

Constructors

Properties

#locked: boolean = false
name: string
path: string

Methods

  • #init(): void
  • #isFiltValid(filt: Object, obj: Object): boolean
  • checking the object for compliance with the filter

    Parameters

    • filt: Object

      filter for object find({id:1, type:"help"})

    • obj: Object

      object to compare

    Returns boolean

  • function to find documents by filter in collection

    Parameters

    • filter: Object

      filter object find({id:1, type:"help"})

    Returns Promise<collectionDocument[]>

  • function to find one document by filter in collection

    Parameters

    • filter: Object

      filter object find({id:1, type:"help"})

    Returns Promise<collectionDocument>

Generated using TypeDoc