Skip to content

Commit eef95ba

Browse files
committed
dont add context to findOptions as Sequelize might memory leak
1 parent 5d7178a commit eef95ba

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/resolver.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,6 @@ function resolverFactory(target, options) {
4444
type = type.ofType || type;
4545

4646
findOptions.attributes = targetAttributes;
47-
48-
findOptions.root = context;
49-
findOptions.context = context;
5047
findOptions.logging = findOptions.logging || context.logging;
5148

5249
return Promise.resolve(options.before(findOptions, args, context, info)).then(function (findOptions) {

0 commit comments

Comments
 (0)