in reply to Perl and MongoDB find error

this should get only the user object from the collection

Why? You specify two users ... Maybe you'd like to use find_one?

Replies are listed 'Best First'.
Re^2: Perl and MongoDB find error
by Kanishka.black0 (Scribe) on Apr 09, 2012 at 04:52 UTC
    it seems that mongodb "find" doesn't support query for fields, i though its would support them as in "find_one"

      it seems that mongodb "find" doesn't support query for fields, i though its would support them as in "find_one"

      It doesn't seem that way to me. See MongoDB::Examples

        that example might have been outdated, i checked the code of module , it doesn't support