Replies: 2 comments 2 replies
-
Try using return teamUsersRepo
.query()
.whereIn('id', userIds)
.with('role')
.get() |
Beta Was this translation helpful? Give feedback.
-
I thought It worked, but now I see it does keep the order provided, 1st object are the Changed the order of the I did not notice order was not working because I had an Edit: I see now that the order kept is the first call done to the API, then it stays frozen. Is there some kind of cache set by default? It's a bit weird that only respects the order first time and then when changing the ids object content it stays the same. |
Beta Was this translation helpful? Give feedback.
-
Hello, I'm migrating from vuex-orm and I'm stuck because
whereIdIn
seems to be missing .As an alternative I've tried
whereIn
, but has issues.In vuex-orm
whereIdIn
worked, and also it kept the order given in the array on the results.Will this function exist in the package?
Beta Was this translation helpful? Give feedback.
All reactions