Closed purplecones closed 9 years ago
You can't use this package right now. I haven't updated it yet to work with Astronomy 1.0. Right now I'm working on the forms
package and after that I will be working on the relations
package. Most of the features of the relations
package can be implemented by hand.
Thanks. What do you recommend in the meantime? Publish Composite?
If you just want to define relations then you don't need any package. However, if you want to publish multiple cursors I've found publishComposite helpful. However there is a better package for the reactive publications from @peerlibrary peerlibrary:reactive-publish
.
Thanks, I will check it out. Is there a downside in doing something like this using methods on an AstroClass?
Collection = Astro.Class({
name: 'Collection',
collection: Collections,
fields: {
...
},
methods: {
getRelatedDocumentsFromAnotherCollection() {
return RelatedCollection.find({relatedId: this._id}).fetch();
}
}
});
No it's ok to do it in the way you presented. Actually the relations
package is doing it in the same way.
@purplecones What an awesome idea! Exactly what I was looking for.
Receive the following error when adding this package