Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DocumentStore

Hierarchy

  • DocumentStore

Index

Methods

checkAndDelete

  • checkAndDelete(_id: string, condition: any, callback?: Callback): void | Promise<any>

checkAndReplace

  • checkAndReplace(document: any, condition: any, callback?: Callback): void | Promise<any>
  • Parameters

    • document: any
    • condition: any
    • Optional callback: Callback

    Returns void | Promise<any>

checkAndUpdate

  • checkAndUpdate(_id: string, mutation: any, condition: any, callback?: Callback): void | Promise<any>
  • Parameters

    • _id: string
    • mutation: any
    • condition: any
    • Optional callback: Callback

    Returns void | Promise<any>

delete

  • delete(_id: string, callback?: Callback): void | Promise<any>

find

findById

  • findById(id: string | Buffer, condition?: any, projections?: string[], callback?: Callback): void | Promise<any>
  • Parameters

    • id: string | Buffer
    • Optional condition: any
    • Optional projections: string[]
    • Optional callback: Callback

    Returns void | Promise<any>

insert

  • insert(document: any, callback?: Callback): void | Promise<any>

insertOrReplace

  • insertOrReplace(document: any, callback?: Callback): void | Promise<any>

replace

  • replace(document: any, callback?: Callback): void | Promise<any>

update

  • update(_id: string, mutation: any, callback?: Callback): void | Promise<any>

Generated using TypeDoc