Matthew - It worked!!!

myChap =     MongoCollectionFind(
                         'openbd',
                         'mycol2',
                         {'chapter.chapterid' : 1 },
                         {'chapter' : { $elemMatch : { 'chapterid' : 1 } } }
                     ); 


What I didn't realize was that the section:

*{'chapter' : { $elemMatch : { 'chapterid' : 1 } } }*

was to be placed into the area where you *limit* the fields to be 
returned.  Since I considered the $elemMatch to be more a condition, I 
placed that code into the condition section as such:


myChap =     MongoCollectionFind(
                         'openbd',
                         'mycol2',
                        
{
{'chapter.chapterid' : 1 },
                    {'chapter' : { $elemMatch : { 'chapterid' : 1 } } }
}
{
chapter:1, _id:0
}
                     ); 

Thank you VERY much for the help.  I was closely one decision away from 
leaving mongodb alone and going back to mysql instead.  

OpenBD + MongoDB = Beauty!

-- 
-- 
online documentation: http://openbd.org/manual/
 http://groups.google.com/group/openbd?hl=en

--- 
You received this message because you are subscribed to the Google Groups "Open 
BlueDragon" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to