Methods
- 
        
    
        
      
(static) getShredder(storeName, idAttr, dataMapping) → {Function}
 - 
    
    
    Return the shredder for simple JSON
Parameters:
Name Type Argument Description storeNamestring Name of the Persistent Store into which the shredded data should be stored idAttrstring | Array The id field or array of fields in the JSON data dataMappingDataMapping <optional> 
Optional dataMapping to apply to the data Returns:
shredder The shredder function takes a Response object as parameter and returns a Promise which resolves to an array of objects which have the following structure:{ 'name': storeName, 'resourceIdentifier': resourceIdentifier, 'keys': idArray, 'data': dataArray, 'resourceType' : 'single' or 'collection' }- Type
 - function
 
 - 
        
    
        
      
(static) getUnshredder(dataMapping) → {Function}
 - 
    
    
    Return the unshredder for simple JSON
Parameters:
Name Type Argument Description dataMappingDataMapping <optional> 
Optional dataMapping to apply to the data Returns:
unshredder The unshredder function takes an array of objects and a response object as parameters. The array of objects has the following structure:The unshredder returns a Promise which resolves to a Response object.{ 'name': storeName, 'resourceIdentifier': resourceIdentifier, 'keys': idArray, 'data': dataArray, 'resourceType' : 'single' or 'collection' }- Type
 - function