simple-graphql
Advanced tools
Comparing version 3.1.15 to 3.1.16
@@ -72,2 +72,11 @@ "use strict"; | ||
} | ||
else if (typeof root[fieldName].id === 'string') { | ||
const { type, id } = relay.fromGlobalId(root[fieldName]); | ||
if (type === typeName) { | ||
return sgContext.models[typeName].findByPkForGraphQL(id, {}, context, info); | ||
} | ||
else { | ||
return root[fieldName]; | ||
} | ||
} | ||
else { | ||
@@ -74,0 +83,0 @@ return root[fieldName]; |
{ | ||
"name": "simple-graphql", | ||
"version": "3.1.15", | ||
"version": "3.1.16", | ||
"description": "The simple way to generates GraphQL schemas and Sequelize models from your models definition.", | ||
@@ -5,0 +5,0 @@ "main": "dist/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
326626
4637