@classmethod<EOL><INDENT>def many(cls, filter=None, **kwargs):<DEDENT>
from mongoframes.queries import Condition, Group, to_refs<EOL>kwargs['<STR_LIT>'], references, subs =cls._flatten_projection(<EOL>kwargs.get('<STR_LIT>', cls._default_projection)<EOL>)<EOL>if isinstance(filter, (Condition, Group)):<EOL><INDENT>filter = filter.to_dict()<EOL><DEDENT>documents = list(cls.get_collection().find(to_refs(filter), **kwargs))<EOL>if references:<EOL><INDENT>cls._dereference(documents, references)<EOL><DEDENT>if subs:<EOL><INDENT>cls._apply_sub_frames(documents, subs)<EOL><DEDENT>return [cls(d) for d in documents]<EOL>
Return a list of documents matching the filter