Socket
Socket
Sign inDemoInstall

simple-graphql

Package Overview
Dependencies
Maintainers
1
Versions
300
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simple-graphql - npm Package Compare versions

Comparing version 0.2.7 to 0.2.8

lib/query/fields/hasOne.js

2

lib/Context.js

@@ -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 @@ });

2

lib/package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc