We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The text was updated successfully, but these errors were encountered:
在 Room table 中,遊戲是存成 DbRef,該如何 lookup ?
Sorry, something went wrong.
我找到方法了 https://dev.to/saurabh73/mongodb-using-aggregation-pipeline-to-extract-dbref-using-lookup-operator-4ekl
[ { $addFields: { game: { $arrayElemAt: [ { $objectToArray: "$game" }, 1 ] } } }, { $lookup: { from: "gameRegistrationData", localField: "game.v", foreignField: "_id", as: "game" } }, { $addFields: { game: { $arrayElemAt: ["$game", 0] } } } ]
但也太醜了吧 ... 這樣還不如查兩次?
kuoche1712003
Successfully merging a pull request may close this issue.
需要新增的過濾條件
The text was updated successfully, but these errors were encountered: