I am new to mongodb / mongomapper and cannot find the answer to this question.
I have a mongomapper class with the following fields
key :author_id, Integer key :partecipant_ids, Array
Say I have a βrecordβ with the following attributes:
{ :author_id => 10, :partecipant_ids => [10,15,201] }
I want to get all the objects in which partecipant with identifier 15 is involved. I did not find a mention in the documentation.
Itβs strange that I did this request before
MessageThread.where :partecipant_ids => [15]
which worked, but after a (possibly) change in the gem / mongodb version, it stops working. Unfortunately, I do not know which version of mongodb and mongomapper I used before.
source share