Was this page helpful?
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 |
Returns:
(abstract) getCacheKey(docKeys) → {Iterator}
Gets the cache key for this item.
Parameters:
| Name | Type | Description |
|---|---|---|
docKeys |
Array |
Returns:
- Type
- Iterator