simple-graphql
Advanced tools
Comparing version 1.0.16 to 1.0.17
@@ -355,5 +355,5 @@ 'use strict'; | ||
var self = this; | ||
_lodash2.default.forOwn(self.schemas, function (schema, key) { | ||
_lodash2.default.forOwn(self.schemas, function (schema, schemaName) { | ||
_lodash2.default.forOwn(schema.config.associations.hasOne, function (config, key) { | ||
self.dbModel(schema.name).hasOne(self.dbModel(config.target), _extends({}, config.options, { | ||
self.dbModel(schema.name).hasOne(self.dbModel(config.target), _extends({}, config, { | ||
as: key, | ||
@@ -365,3 +365,3 @@ foreignKey: config.foreignField + 'Id' | ||
_lodash2.default.forOwn(schema.config.associations.belongsTo, function (config, key) { | ||
self.dbModel(schema.name).belongsTo(self.dbModel(config.target), _extends({}, config.options, { | ||
self.dbModel(schema.name).belongsTo(self.dbModel(config.target), _extends({}, config, { | ||
as: key, | ||
@@ -372,3 +372,3 @@ foreignKey: config.foreignField + 'Id' | ||
_lodash2.default.forOwn(schema.config.associations.hasMany, function (config, key) { | ||
self.dbModel(schema.name).hasMany(self.dbModel(config.target), _extends({}, config.options, { | ||
self.dbModel(schema.name).hasMany(self.dbModel(config.target), _extends({}, config, { | ||
as: key, | ||
@@ -379,3 +379,3 @@ foreignKey: config.foreignKey || config.foreignField + 'Id' | ||
_lodash2.default.forOwn(schema.config.associations.belongsToMany, function (config, key) { | ||
self.dbModel(schema.name).belongsToMany(self.dbModel(config.target), _extends({}, config.options, { | ||
self.dbModel(schema.name).belongsToMany(self.dbModel(config.target), _extends({}, config, { | ||
as: key, | ||
@@ -382,0 +382,0 @@ foreignKey: config.foreignField + 'Id' |
{ | ||
"name": "simple-graphql", | ||
"version": "1.0.16", | ||
"version": "1.0.17", | ||
"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.16", | ||
"version": "1.0.17", | ||
"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
304538