これはばかげた質問になるでしょうが、この形式の Mongo オブジェクトがあるとします。
{
"url": "google.com",
"statusCode": 301,
"headers": {
"location": "http://www.google.com/",
"content-type": "text/html; charset=UTF-8",
"date": "Fri, 22 Mar 2013 16:27:55 GMT",
"expires": "Sun, 21 Apr 2013 16:27:55 GMT",
"cache-control": "public, max-age=2592000",
"server": "gws",
"content-length": "219",
"x-xss-protection": "1; mode=block",
"x-frame-options": "SAMEORIGIN"
}
}
を使用して、キー、または別のキー内にネストされているキーdb.collections.find()
を見つけるにはどうすればよいですか?server
私が試してみましたdb.collections.find({headers:{server:"gws"}})
可能なすべての組み合わせでそれらを引用しようとしましたが、出力は常に空白でした、または...
任意の提案をいただければ幸いです。