Class: 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
Source:

Methods

(abstract) createQueries(docKeys) → {Promise.<Array>}

Gets the Promise to create the queries.

Parameters:
Name Type Description
docKeys Array
Source:
Returns:
Type
Promise.<Array>

(abstract) getCacheKey(docKeys) → {Iterator}

Gets the cache key for this item.

Parameters:
Name Type Description
docKeys Array
Source:
Returns:
Type
Iterator