Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

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.17 to 0.2.18

2

lib/package.json
{
"name": "simple-graphql",
"version": "0.2.17",
"version": "0.2.18",
"description": "The simple way to generates GraphQL schemas and Sequelize models from your models definition.",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -243,3 +243,3 @@ 'use strict';

var _ref = _asyncToGenerator(regeneratorRuntime.mark(function _callee(args, context, info, models) {
var dbModel, _ref2, _ref2$sort, sort, _ref2$condition, condition, _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, item, include, _args$keywords, fields, value, keywordsCondition, associationType, _iteratorNormalCompletion4, _didIteratorError4, _iteratorError4, _iterator4, _step4, field, fieldName, type, colFieldName;
var dbModel, _ref2, _ref2$sort, sort, _ref2$condition, condition, _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, item, include, includeFields, _args$keywords, fields, value, keywordsCondition, associationType, _iteratorNormalCompletion4, _didIteratorError4, _iteratorError4, _iterator4, _step4, field, fieldName, type, colFieldName;

@@ -329,5 +329,6 @@ return regeneratorRuntime.wrap(function _callee$(_context) {

include = [];
includeFields = {};
if (!(args && args.keywords)) {
_context.next = 49;
_context.next = 50;
break;

@@ -400,3 +401,3 @@ }

_iteratorError4 = undefined;
_context.prev = 32;
_context.prev = 33;

@@ -411,7 +412,10 @@ for (_iterator4 = fields[Symbol.iterator](); !(_iteratorNormalCompletion4 = (_step4 = _iterator4.next()).done); _iteratorNormalCompletion4 = true) {

if (type) {
include.push({
model: dbModel.sequelize.models[type],
as: fieldName,
required: false
});
if (!includeFields[fieldName]) {
includeFields[fieldName] = true;
include.push({
model: dbModel.sequelize.models[type],
as: fieldName,
required: false
});
}
colFieldName = field;

@@ -430,14 +434,14 @@

}
_context.next = 40;
_context.next = 41;
break;
case 36:
_context.prev = 36;
_context.t1 = _context['catch'](32);
case 37:
_context.prev = 37;
_context.t1 = _context['catch'](33);
_didIteratorError4 = true;
_iteratorError4 = _context.t1;
case 40:
_context.prev = 40;
case 41:
_context.prev = 41;
_context.prev = 42;

@@ -448,7 +452,7 @@ if (!_iteratorNormalCompletion4 && _iterator4.return) {

case 43:
_context.prev = 43;
case 44:
_context.prev = 44;
if (!_didIteratorError4) {
_context.next = 46;
_context.next = 47;
break;

@@ -459,15 +463,15 @@ }

case 46:
return _context.finish(43);
case 47:
return _context.finish(40);
return _context.finish(44);
case 48:
return _context.finish(41);
case 49:
condition.$or = keywordsCondition;
case 49:
case 50:
return _context.abrupt('return', _index2.default.Connection.resolve(dbModel, _extends({}, args, { condition: condition, include: include })));
case 50:
case 51:
case 'end':

@@ -477,3 +481,3 @@ return _context.stop();

}
}, _callee, this, [[6, 10, 14, 22], [15,, 17, 21], [32, 36, 40, 48], [41,, 43, 47]]);
}, _callee, this, [[6, 10, 14, 22], [15,, 17, 21], [33, 37, 41, 49], [42,, 44, 48]]);
}));

@@ -480,0 +484,0 @@

{
"name": "simple-graphql",
"version": "0.2.17",
"version": "0.2.18",
"description": "The simple way to generates GraphQL schemas and Sequelize models from your models definition.",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -33,2 +33,6 @@ # Simple-GraphQL

```
## Roadmap
- [ ] Detail usage document
- [ ] Test
- [ ] [ < place for your ideas > ](https://github.com/logerzhu/simple-graphql/issues/new)

@@ -35,0 +39,0 @@ ## Usage

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

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc