simple-graphql
Advanced tools
Comparing version 1.0.11 to 1.0.12
{ | ||
"name": "simple-graphql", | ||
"version": "1.0.11", | ||
"version": "1.0.12", | ||
"description": "The simple way to generates GraphQL schemas and Sequelize models from your models definition.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -114,2 +114,3 @@ 'use strict'; | ||
var _ref2 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2(root) { | ||
var fieldName; | ||
return regeneratorRuntime.wrap(function _callee2$(_context2) { | ||
@@ -119,13 +120,15 @@ while (1) { | ||
case 0: | ||
if (!root[name]) { | ||
_context2.next = 4; | ||
fieldName = name.split('.').slice(-1)[0]; | ||
if (!root[fieldName]) { | ||
_context2.next = 5; | ||
break; | ||
} | ||
return _context2.abrupt('return', !relay.toGlobalId(fieldType.substr(0, fieldType.length - 'Id'.length), root[name])); | ||
return _context2.abrupt('return', !relay.toGlobalId(fieldType.substr(0, fieldType.length - 'Id'.length), root[fieldName])); | ||
case 4: | ||
case 5: | ||
return _context2.abrupt('return', null); | ||
case 5: | ||
case 6: | ||
case 'end': | ||
@@ -132,0 +135,0 @@ return _context2.stop(); |
{ | ||
"name": "simple-graphql", | ||
"version": "1.0.11", | ||
"version": "1.0.12", | ||
"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
303520
5250