Closed intellix closed 5 years ago
I'm not sure if this should work really. I can shove all of my logic into the before hook instead the where param. I don't know why I put it there in the first place.
Since we still support where
it probably should work, not exactly sure how it broke, perhaps @Azerothian can lend some assistance.
I personally only use before
, i just find it easier when you have args that might influence eachother etc.
Thanks :) I've moved all logic from where to before. Not sure why I used it before
where
was what i thought would be a clever idea, but in practice it sees little effective use.
Sequelize 4.44
Got something like this:
Caused by this commit with replaceWhereOperators: https://github.com/mickhansen/graphql-sequelize/commit/3cb923f0799092df15cccd033363be7ef7730e97
When stepping through the debugger it seems like the type is lost:
Before:
After: