cool-data-manager
Advanced tools
Comparing version 1.0.7 to 1.0.8
@@ -24,2 +24,4 @@ clog = require('fbkt-clog'); | ||
) { | ||
console.log('options', options); | ||
console.log('this.options', this.options); | ||
clog('EXECUTING GRAPH COOL MUTATION', mutation); | ||
@@ -26,0 +28,0 @@ } |
@@ -29,5 +29,2 @@ const Promise = require('bluebird'); | ||
const fields = this.options.getFields || this.entityInfo.fields; | ||
clog('this.entityInfo', this.entityInfo); | ||
clog('this.options', this.options); | ||
clog('fields', this.fields); | ||
@@ -34,0 +31,0 @@ return Promise.props({ |
@@ -8,2 +8,3 @@ const ClientWrapper = require('./clientWrapper'); | ||
const UpdateOrCreate = require('./updateOrCreate'); | ||
const UpdateOrCreateBatch = require('./updateOrCreateBatch'); | ||
@@ -55,4 +56,10 @@ class graphCoolEntityManager{ | ||
updateOrCreateBatch(entities, options) { | ||
const updateOrCreate = new UpdateOrCreate(this.entityInfo, this.client, options); | ||
const updateOrCreateBatch = new UpdateOrCreateBatch(this.entityInfo, this.client, updateOrCreate.buildMutation, options); | ||
return updateOrCreateBatch._method(entities); | ||
} | ||
} | ||
module.exports = graphCoolEntityManager; |
{ | ||
"name": "cool-data-manager", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"description": "", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "mocha ./**/spec.js ./**/*.spec.js" | ||
"test": "mocha ./test/**/spec.js ./test/**/*.spec.js" | ||
}, | ||
@@ -9,0 +9,0 @@ "dependencies": { |
@@ -37,4 +37,4 @@ const CoolDataManager = require('../../coolDataManager'); | ||
const entityManager = new CoolDataManager(entityInfo, client, { verbose: true }); | ||
const entityManager = new CoolDataManager(entityInfo, client, { verbose: false }); | ||
module.exports = entityManager; |
24381
23
771