MongoDB find 'in' returns empty result set

67 views
Skip to first unread message

Kai Janson

unread,
May 19, 2012, 9:58:03 PM5/19/12
to chica...@googlegroups.com
Hi group,

Has anyone seen this?  I am using MongoDB for a project and when I am trying to query for a list of items using the

boss_db:find(playlist, [{id, 'in', ["", "", ...]   }])

syntax, I get nothing. Ever.  Not with one or more elements in the list.

Example:
boss_db:find(playlist, [{id, 'in', ["playlist-4fb5dfa4cfddce21ff000175"]}]).
[]

But this works:
(pr@mymachine)11> boss_db:find("playlist-4fb5dfa4cfddce21ff000175").                                                              
{playlist,"playlist-4fb5dfa4cfddce21ff000175",
          "member-4fb3349dcfddced73d000007",
          "display-4fb5deb0cfddce21ff000174",
          <<"Kilroy was here">>,<<"Test description">>,
          "playlist_item-4fb46882cfddce7449000001",0}

Thanks!
—Kai

Reply all
Reply to author
Forward
0 new messages