Check relation exist for meteor collection
meteor add theara:relation-exist
var relation = relationExist(
[
{collection: TestCollection, selector: {_id: "001"}},
{collection: TestCollection2, selector: {_id: "002"}}
]
);// return boolean
if(relation){
// ...
}
- v 0.0.1 (2014-04-21)
- init