阅读背景:

Meteor.js:使用Collection来存储该集合的状态

来源:互联网 

Happy Friday!

I have a somewhat newbie question for the community here and couldn't find a previous answer. I don't necessarily have enough code to create a package yet, but I wanted to store some helper methods on my collection that can be re-used everywhere and also re-use the "Words" collection namespace. I'm storing the client side in my lib folder. When I do this, am I doing anything weird to Mongo DB? From what I understand, Words initializes the Mongo collection but the actual variable is just a regular JS variable that you can add methods and properties to - the Mongo side of things can only be accessed via your .find(), .insert(), etc. methods. Is this accurate? And also generally, in general is this a good practice?I have a somewhat newbie questi




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: