@classmethod<EOL><INDENT>def insert_many(cls, documents):<DEDENT>
from mongoframes.queries import to_refs<EOL>frames = cls._ensure_frames(documents)<EOL>signal('<STR_LIT>').send(cls, frames=frames)<EOL>documents = [to_refs(f._document) for f in frames]<EOL>ids = cls.get_collection().insert_many(documents).inserted_ids<EOL>for i, id in enumerate(ids):<EOL><INDENT>frames[i]._id = id<EOL><DEDENT>signal('<STR_LIT>').send(cls, frames=frames)<EOL>return frames<EOL>
Insert a list of documents