simple-graphql
Advanced tools
Comparing version 0.2.7 to 0.2.8
@@ -177,2 +177,3 @@ 'use strict'; | ||
Object.assign(obj, _query2.default.hasManyQueryFields(model)); | ||
Object.assign(obj, _query2.default.hasOneQueryFields(model)); | ||
@@ -362,2 +363,3 @@ this.graphQLObjectTypes[typeName] = _transformer2.default.toGraphQLFieldConfig(typeName, '', obj, this, interfaces).type; | ||
model.config.associations.hasOne.forEach(function (config) { | ||
console.log('*****', config); | ||
self.dbModel(model.name).hasOne(self.dbModel(config.target), config.options); | ||
@@ -364,0 +366,0 @@ }); |
{ | ||
"name": "simple-graphql", | ||
"version": "0.2.7", | ||
"version": "0.2.8", | ||
"description": "The simple way to generates GraphQL schemas and Sequelize models from your models definition.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -19,2 +19,6 @@ 'use strict'; | ||
var _hasOne = require('./fields/hasOne'); | ||
var _hasOne2 = _interopRequireDefault(_hasOne); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -26,3 +30,4 @@ | ||
hasManyQueryFields: _hasMany2.default | ||
hasManyQueryFields: _hasMany2.default, | ||
hasOneQueryFields: _hasOne2.default | ||
}; |
{ | ||
"name": "simple-graphql", | ||
"version": "0.2.7", | ||
"version": "0.2.8", | ||
"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
Sorry, the diff of this file is not supported yet
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
493098
97
4691