Methods
checkAndDelete
- checkAndDelete(_id: string, condition: any, callback?: Callback): void | Promise<any>
-
Parameters
-
_id: string
-
condition: any
-
Optional callback: Callback
Returns 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>
-
Parameters
-
_id: string
-
Optional callback: Callback
Returns void
|
Promise<any>
find
-
Parameters
-
query: any
-
Default value findOptions: FindOptions = {'ojai.mapr.query.include-query-plan': false,}
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>
-
Parameters
-
document: any
-
Optional callback: Callback
Returns void
|
Promise<any>
insertOrReplace
- insertOrReplace(document: any, callback?: Callback): void | Promise<any>
-
Parameters
-
document: any
-
Optional callback: Callback
Returns void
|
Promise<any>
replace
- replace(document: any, callback?: Callback): void | Promise<any>
-
Parameters
-
document: any
-
Optional callback: Callback
Returns void
|
Promise<any>
update
- update(_id: string, mutation: any, callback?: Callback): void | Promise<any>
-
Parameters
-
_id: string
-
mutation: any
-
Optional callback: Callback
Returns void
|
Promise<any>