simple-graphql
Advanced tools
Comparing version 1.0.4 to 1.0.5
@@ -148,28 +148,29 @@ 'use strict'; | ||
var obj = Object.assign({ | ||
id: { | ||
$type: new graphql.GraphQLNonNull(graphql.GraphQLID), | ||
resolve: function () { | ||
var _ref = _asyncToGenerator(regeneratorRuntime.mark(function _callee(root) { | ||
return regeneratorRuntime.wrap(function _callee$(_context) { | ||
while (1) { | ||
switch (_context.prev = _context.next) { | ||
case 0: | ||
return _context.abrupt('return', relay.toGlobalId(_StringHelper2.default.toInitialUpperCase(model.name), root.id)); | ||
id: {} | ||
}, model.config.fields, model.config.links); | ||
obj.id = { | ||
$type: new graphql.GraphQLNonNull(graphql.GraphQLID), | ||
resolve: function () { | ||
var _ref = _asyncToGenerator(regeneratorRuntime.mark(function _callee(root) { | ||
return regeneratorRuntime.wrap(function _callee$(_context) { | ||
while (1) { | ||
switch (_context.prev = _context.next) { | ||
case 0: | ||
return _context.abrupt('return', relay.toGlobalId(_StringHelper2.default.toInitialUpperCase(model.name), root.id)); | ||
case 1: | ||
case 'end': | ||
return _context.stop(); | ||
} | ||
case 1: | ||
case 'end': | ||
return _context.stop(); | ||
} | ||
}, _callee, this); | ||
})); | ||
} | ||
}, _callee, this); | ||
})); | ||
function resolve(_x) { | ||
return _ref.apply(this, arguments); | ||
} | ||
function resolve(_x) { | ||
return _ref.apply(this, arguments); | ||
} | ||
return resolve; | ||
}() | ||
} | ||
}, model.config.fields, model.config.links); | ||
return resolve; | ||
}() | ||
}; | ||
var interfaces = [this.nodeInterface]; | ||
@@ -176,0 +177,0 @@ |
{ | ||
"name": "simple-graphql", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "The simple way to generates GraphQL schemas and Sequelize models from your models definition.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
{ | ||
"name": "simple-graphql", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "The simple way to generates GraphQL schemas and Sequelize models from your models definition.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5191
300556