Hi all,
Is this available in API? I am trying to do an $elemMatch projection, and was not able to get it to work.
This is the mongodb query I am trying to perform:
db.test.find({}, {"change": {"$elemMatch": {"latest": 1}}});
I tried this in cfmongodb:
<cfset result = test.find(criteria={}, keys='{"change" : {"$elemMatch" : {"latest" : 1}}}').asArray() />
Where "latest" is a field in the "change" array. The result returned does not actually contain the field I am looking for.
Thanks in advance for any help.