makuta
V2EX  ›  问与答

mongo 查询

  •  
  •   makuta · May 28, 2015 · 2498 views
    This topic created in 4030 days ago, the information mentioned may be changed or developed.
    {
    "_id" : ObjectId("4ec0b2a4ecb31ca1968000fd"),
    "id" : 1001,
    "singer" : "刘德华",
    "someReview" : [{
    "user" : "dong",
    "text" : "不好听"
    }, {
    "user" : "wan",
    "text" : "打酱油"
    }, {
    "user" : "wan",
    "text" : "真的挺不错,一直很喜欢刘德华"
    }]
    }

    只希望查出的结果是

    {
    "user" : "wan",
    "text" : "打酱油"
    }
    请问该怎么查??谢谢
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5437 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 01:16 · PVG 09:16 · LAX 18:16 · JFK 21:16
    ♥ Do have faith in what you're doing.