Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
MongoDB クエリを使用して著者の名を投影するにはどうすればよいですか
{ name: "Wings Of Fire", author: { first: "Abdul", last: "Kalam" } }
フィールド セレクターでドット表記を使用して、サブドキュメント フィールドを射影することができます。シェル内:
db.test.find({}, {'author.first': 1})