我正在使用MEAN STACK應用程序。
我不能在貓鼬貓鼬查詢等作爲MySQL查詢這是考慮波紋管mongoose mongodb按某個列表排序?
SELECT _id, username
FROM user
ORDER BY FIELD(_id, "575123d687ed49be12404584", "575123d687ed49be12404587", "572d8b5aab1db7e1160a273a", "575123d687ed49be124045a5")
從這個我想擺脫投入使用貓鼬
first document (record) -> 575123d687ed49be12404584
second document (record) -> 575123d687ed49be12404587
third document (record) -> 572d8b5aab1db7e1160a273a
fourth document (record) -> 575123d687ed49be124045a5
remaining are in ascending order.
任何一個可以給我下面的順序一個適當的解決方案,讓結果給ORDER BY。
如果你知道如何讓這種類型的放出來的,請給我一個解決方案。 – laxman