How can I create multiple Meteor collections which have the same underlying MongoDB collection? So multiple collections with same name? I would like those collections to have different transform
and allow
and deny
parameters.
Asked
Active
Viewed 148 times
3

Mitar
- 6,756
- 5
- 54
- 86
-
I explained all this, and more, at http://stackoverflow.com/a/18880927/586086 – Andrew Mao Mar 14 '14 at 15:14
-
@AndrewMao do you? I see how you describe how to subscribe to serveral different publications, but they end up in the same collection on the client, which is not what is desired here, I think. – Christian Fritz Mar 18 '14 at 04:09
-
`transform` is defined on the client, so you can certainly do that with different collections. `allow` and `deny` are defined on the server, so it would not be possible, unless you opened multiple mongo connections. – Andrew Mao Mar 18 '14 at 06:12
1 Answers
0
see the thread at the google discussion group at https://groups.google.com/forum/#!topic/meteor-talk/EYKiEii4veA

lukemt
- 9
- 3
-
This will fail because you are calling `Meteor.Collection` with same name twice. – Mitar Mar 15 '14 at 07:33