appscot / sails-orientdb

OrientDB adapter for Waterline / Sails.js ORM
MIT License
25 stars 23 forks source link

Update records based on multi medel ids (Links) #159

Open nomi-ramzan opened 7 years ago

nomi-ramzan commented 7 years ago

I am trying to update multi records based on multi model ids but it is not working properly. When i run query in Orientdb UPDATE items SET status = 1 WHERE link_id IN [#1:1, #1:2] it works fine But when I am trying to run it on sails no record updates Items.update({ link_id: ['#1:1', '#1:2'] }, {status:1}) How can I do this ? Thank you

nomi-ramzan commented 7 years ago

I think I found the problem. Problem is with orientjs I also created an issue on orientjs. Here is Link of that issue