mickhansen / graphql-sequelize

GraphQL & Relay for MySQL & Postgres via Sequelize
MIT License
1.9k stars 172 forks source link

Where operators not being replaced when using relay resolver #665

Closed Azerothian closed 5 years ago

Azerothian commented 5 years ago

with fix #624 we stopped mutating the args.where object,

this in turn has broken the argsToWhere function in the before event on the relay resolver.

As it processes the original args.where object and wipes out the previously converted options.where. leaving the operators unconverted and causes an error for any complex query.

e.g. { "name": { "iLike": "someone" } }

https://github.com/mickhansen/graphql-sequelize/blob/master/src/relay.js#L258

Azerothian commented 5 years ago

thank you