-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to use raw where clause #233
Comments
This is what params.sequelize is intended to be used for. |
@daffl Yes, I'm using params.sequelize. Below is my code block. I'm struggling to find a way to place raw where condition in this line
|
What exactly is the problem then? Has you tried testing the query in isolation? |
Finally i was able to get that working. Thanks. I'm posting the working code, it might help someone having same problem
|
I'm trying to figure out how to use raw where clause in feathers-sequelize
eg:
where TIME_TO_SEC(timediff(NOW(), last_viewed_at)) <=10
Sequelize seems like support for that (sequelize/sequelize#9410 (comment))
{where: Sequelize.literal('your special where clause here') }
How can we use this in feathers-sequelize ?
Thanks
The text was updated successfully, but these errors were encountered: