I have connected two applications via DDP. I expected to get the DB data also on the second service application, but I don’t get them.
What am I doing wrong?
- Starting main web application:
meteor
(which should load mongodb on port 3001) - Starting service application:
MONGO_URL=mongodb://localhost:3001/mydb meteor --port 3100
Web (main)
**/server/main.js
var serviceConn = DDP.connect("http://localhost:3100");
console.log(Examples.find().count()); // Returns 21
Service 1
/server/main.js
Examples = new Mongo.Collection('examples');
console.log(Examples.find().count()); // Returns 0 !
So why can’t I get the collection data on the service application as it gives me 0 results?