Was this page helpful?
Caution
You're viewing documentation for an unstable version of ScyllaDB Node.js Driver. Switch to the latest stable version.
ModelBatchItem¶
mapping~ModelBatchItem(doc, docInfo, handler, cache)
Represents a query or a set of queries used to perform a mutation in a batch.
Constructor¶
new ModelBatchItem(doc, docInfo, handler, cache)
Parameters:
| Name | Type | Description |
|---|---|---|
doc |
Object | |
docInfo |
Object | |
handler |
MappingHandler | |
cache |
Tree |
Methods¶
(abstract) createQueries(docKeys) → {Promise<Array>}
Gets the Promise to create the queries.
Parameters:
| Name | Type | Description |
|---|---|---|
docKeys |
Array<any> |
Returns:
- Type
- Promise<Array>
(abstract) getCacheKey(docKeys) → {Iterator}
Gets the cache key for this item.
Parameters:
| Name | Type | Description |
|---|---|---|
docKeys |
Array<any> |
Returns:
- Type
- Iterator