Hi @DMehaffy,
Thanks for your reply.
Its fine and makes sense to update an object by passing only id and its enough for an object to get updated.
But my requirement is quite different.Let me explain it for you.
I have structure for polls and there is a count field in polls which holds the number.now i am going to update its value for 4 which is 3 right now and simultaneously another person is giving vote at same time and here if my update works by passing id then it will be 4 …fine …but that’s person’s vote will again update the value to 4 by passing same id,which should not be.It should be 5 …here if my desired filter would have worked then update would have been failed for another user and again another update from 4 to 5 would have been called …here i want to do the AND filter saying that do update only if id matches and count is certain value,then update with my value else do not update.
That’s why i needed the above query.