V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
makuta
V2EX  ›  问与答

mongo 查询

  •  
  •   makuta · 2015-05-28 12:03:20 +08:00 · 1749 次点击
    这是一个创建于 3260 天前的主题,其中的信息可能已经有所发展或是发生改变。
    {
    "_id" : ObjectId("4ec0b2a4ecb31ca1968000fd"),
    "id" : 1001,
    "singer" : "刘德华",
    "someReview" : [{
    "user" : "dong",
    "text" : "不好听"
    }, {
    "user" : "wan",
    "text" : "打酱油"
    }, {
    "user" : "wan",
    "text" : "真的挺不错,一直很喜欢刘德华"
    }]
    }

    只希望查出的结果是

    {
    "user" : "wan",
    "text" : "打酱油"
    }
    请问该怎么查??谢谢
    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1845 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 00:27 · PVG 08:27 · LAX 17:27 · JFK 20:27
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.