问题 I am unable to retrieve documents when an array within an array of elements contains text that should match my search. Here are two example documents: { _id: ..., 'foo': [ { 'name': 'Thing1', 'data': { 'text': ['X', 'X'] } },{ 'name': 'Thing2', 'data': { 'text': ['X', 'Y'] } } ] } { _id: ..., 'foo': [ { 'name': 'Thing3', 'data': { 'text': ['X', 'X'] } },{ 'name': 'Thing4', 'data': { 'text': ['X', 'Y'] } } ] } By using the following query, I am able to return both documents: db.collection.find