# ModelBatchItem

<div class="jsdoc-content"><header>
    
        <h2><span class="attribs"><span class="type-signature"></span></span>
            <span class="ancestors"><a href="index.html">mapping</a>~</span>ModelBatchItem<span class="signature">(doc, docInfo, handler, cache)</span><span class="type-signature"></span></h2>
        
            <div class="class-description"><p>Represents a query or a set of queries used to perform a mutation in a batch.</p></div>
        
    
</header>


    
        

    
    </div>

## Constructor

<div class="jsdoc-content">
    

    
    <h4 class="name" id="ModelBatchItem"><span class="type-signature"></span>new ModelBatchItem<span class="signature">(doc, docInfo, handler, cache)</span><span class="type-signature"></span></h4>
    

    











    <h5>Parameters:</h5>
    

<table class="params docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>doc</code></td>
            

            <td class="type">
            
                
<span class="param-type">Object</span>


            
            </td>

            

            

            <td class="description last"></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>docInfo</code></td>
            

            <td class="type">
            
                
<span class="param-type">Object</span>


            
            </td>

            

            

            <td class="description last"></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>handler</code></td>
            

            <td class="type">
            
                
<span class="param-type"><a href="MappingHandler.html">MappingHandler</a></span>


            
            </td>

            

            

            <td class="description last"></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>cache</code></td>
            

            <td class="type">
            
                
<span class="param-type"><a href="Tree.html">Tree</a></span>


            
            </td>

            

            

            <td class="description last"></td>
        </tr>

    
    </tbody>
</table>






<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.6.1/lib/mapping/model-batch-item.js#L10" target="_blank" rel="noopener">mapping/model-batch-item.js, line 10</a></p></div>




















    
    

    

    

    

    

    

    

    

    
        </div>

## Methods

<div class="jsdoc-content">

        
            

    

    
    <h4 class="name" id="createQueries"><span class="type-signature">(abstract) </span>createQueries<span class="signature">(docKeys)</span><span class="type-signature"> &rarr; {Promise&lt;Array>}</span></h4>
    

    



<div class="description">
    <p>Gets the Promise to create the queries.</p>
</div>









    <h5>Parameters:</h5>
    

<table class="params docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>docKeys</code></td>
            

            <td class="type">
            
                
<span class="param-type">Array&lt;any></span>


            
            </td>

            

            

            <td class="description last"></td>
        </tr>

    
    </tbody>
</table>






<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.6.1/lib/mapping/model-batch-item.js#L60" target="_blank" rel="noopener">mapping/model-batch-item.js, line 60</a></p></div>















<h5>Returns:</h5>

        


<dl>
    <dt>
        Type
    </dt>
    <dd>
        
<span class="param-type">Promise&lt;Array></span>


    </dd>
</dl>

    





        
            

    

    
    <h4 class="name" id="getCacheKey"><span class="type-signature">(abstract) </span>getCacheKey<span class="signature">(docKeys)</span><span class="type-signature"> &rarr; {Iterator}</span></h4>
    

    



<div class="description">
    <p>Gets the cache key for this item.</p>
</div>









    <h5>Parameters:</h5>
    

<table class="params docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>docKeys</code></td>
            

            <td class="type">
            
                
<span class="param-type">Array&lt;any></span>


            
            </td>

            

            

            <td class="description last"></td>
        </tr>

    
    </tbody>
</table>






<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.6.1/lib/mapping/model-batch-item.js#L50" target="_blank" rel="noopener">mapping/model-batch-item.js, line 50</a></p></div>















<h5>Returns:</h5>

        


<dl>
    <dt>
        Type
    </dt>
    <dd>
        
<span class="param-type">Iterator</span>


    </dd>
</dl></div>
