Methods
Static delete
- delete(pathValue: string, id: string): Promise<void>
-
Parameters
-
pathValue: string
-
id: string
Returns Promise<void>
Static deleteAll
- deleteAll(pathValue: string): Promise<void>
-
Parameters
Returns Promise<void>
Static exists
- exists(pathValue: string, id?: string): Promise<boolean>
-
Parameters
-
pathValue: string
-
Optional id: string
Returns Promise<boolean>
Static get
- get(pathValue: string, id: string): Promise<any>
-
Parameters
-
pathValue: string
-
id: string
Returns Promise<any>
Static getAll
- getAll(pathValue: string): Promise<any[]>
-
Parameters
Returns Promise<any[]>
Static insert
- insert(pathValue: string, data: any): Promise<string>
-
Parameters
-
pathValue: string
-
data: any
Returns Promise<string>
Static insertAndGet
- insertAndGet(pathValue: string, data: any): Promise<any>
-
Parameters
-
pathValue: string
-
data: any
Returns Promise<any>
Static insertWithId
- insertWithId(pathValue: string, id: string, data: any): Promise<string>
-
Parameters
-
pathValue: string
-
id: string
-
data: any
Returns Promise<string>
Static update
- update(pathValue: string, id: string, data: any): Promise<void>
-
Parameters
-
pathValue: string
-
id: string
-
data: any
Returns Promise<void>
Static updateAndGet
- updateAndGet(pathValue: string, id: string, data: any): Promise<any>
-
Parameters
-
pathValue: string
-
id: string
-
data: any
Returns Promise<any>
Static updateFields
- updateFields(pathValue: string, id: string, fields: object): Promise<void>
-
Parameters
-
pathValue: string
-
id: string
-
fields: object
Returns Promise<void>
Static updateFieldsAndGet
- updateFieldsAndGet(pathValue: string, id: string, fields: object): Promise<any>
-
Parameters
-
pathValue: string
-
id: string
-
fields: object
Returns Promise<any>