Assuming a setup like this:
blogposts
{
title:"Example",
slug:"example-post"
tags: ["foo", "bar"]
},
{
title:"Example2",
slug:"example2"
tags: ["foo"]
}
news
{
headline: "Test"
slug: "test-news"
tags: ["bar"]
}
I know I can get all the blog posts with a specific tag:
$cursor = $blogposts->find(array('tags' => 'bar'));
but is there any way to query multiple collections at once in order to get all documents with the tag? E.g. to show all content with the tag 'bar'.