Closed MatejJan closed 8 years ago
Hm, so why not specifying then this MyCollection
to PeerDB?
See here example for custom DDP connection. You can do a similar thing for multiple databases, no?
But really, multiple MongoDB databases, what type of an app you are doing? ;-)
Ah, yes, I forget that you can pass exactly which collection to use directly as well.
I was going to have store purchases in a separate database than the main app db. I'm now reconsidering how useful this is. :)
Sometimes you need to connect to multiple mongo databases from the same app. That can be done by specifying the internal mongo driver when creating the collection as show here:
This could work in PeerDB in a similar fashion that you can specify a custom collection to use.