Open brylie opened 9 years ago
Two times when we are getting the CollectionName is not defined
:
CollectionName
from within /lib
or /both
CollectionName
from within /collections/hooks/
If you can wrap your code in Meteor.startup
when you want to access collection object. Other pattern you may use is to define collections in a local package (or each collection in separate packages) and add it to your project.
We are following the pattern of defining our collections in
/collections
. However, on some client code, we get errors such asCollectionName is not defined
. Where should collections be defined to ensure they are always available in client/server code?