Mateu X. Hunter > Mojito-0.21 > Mojito::Model::Doc::Mongo

Download:
Mojito-0.21.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Module Version: 0.21   Source   Latest Release: Mojito-0.24

Methods ^

get_most_recent_docs

Get the documents sorted by date in reverse chrono order. Returns a cursor to them.

get_feed_docs

Get the documents for a particular feed sorted by date in reverse chrono order. Returns a cursor to them.

get_collections

Get the collections by name sorted by date in reverse chrono order. Returns a cursor to them.

get_collection_pages

Get the pages belonging to a particular collection. NOTE: We get the list of page ids from the collection collected_page_ids value. Then we find all documents corresponding to those ids.

Return an (collection_name, ArrayRef of pages);

syntax highlighting: