මේ වගේ එකක් කරන්නේ කොහොමද
In the UI a user can change position of items(eg moving Bob to first position, john gets position 2, tom - position 3). Is there any way to update all positions in all documents at once?
බම්ප් එකක් හරි ගෙන යන්න ෆ්රෙන්ඩ්ස්
JSON:
[{
"_id":1,
"name":"john",
"position":1
},
{"_id":2,
"name":"bob",
"position":2
},
{"_id":3,
"name":"tom",
"position":3
}]
In the UI a user can change position of items(eg moving Bob to first position, john gets position 2, tom - position 3). Is there any way to update all positions in all documents at once?
බම්ප් එකක් හරි ගෙන යන්න ෆ්රෙන්ඩ්ස්