You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are following the pattern of defining our collections in /collections. However, on some client code, we get errors such as CollectionName is not defined. Where should collections be defined to ensure they are always available in client/server code?
The text was updated successfully, but these errors were encountered:
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?The text was updated successfully, but these errors were encountered: