mongodb - Namespaced Collections in Meteor -


i'm developing meteor application based on different packages (maybe created different developers).

my question if there's meteor'ish way namespace collections won't collide other available collections.

for example, have package uses collection name 'todos' , 1 may include collection name 'todos'. there way namespace these collections (e.g. package-name prepended)?

i've found out there's option namespacing in mongodb '.': http://docs.mongodb.org/manual/faq/developers/#what-is-a-namespace-in-mongodb

is best way namespace collections in meteor?

coming meteor rails background, can remember can create namespaced engines in rails (which creates namespaced database-tables). there similar in meteor?

the closest came issue i've found: https://github.com/collectionfs/meteor-cfs-gridfs/issues/6

thanks in advance!

using period in collection name fine namespacing scheme meteor collections if using mongodb alone.

var todocollection = meteor.collection('packagename.todos'); 

packages such collectionfs use technique avoid collection name collisions.


Comments

Popular posts from this blog

c# - Unity IoC Lifetime per HttpRequest for UserStore -

Change the color of an oval at click in Java AWT -

I am trying to solve the error message 'incompatible ranks 0 and 1 in assignment' in a fortran 95 program. -