Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where Does Meteor Store It's Data?

I have just started playing around with Meteor and MongoDB for the first time. I come from a .net developer background and MSSQL. I have created a simple web following this tutorial. Also, I have added the accounts-password package to my app as well. Everything works like a charm, I can add data to my application in real time and I can create users and login, etc, etc. However, when I open up Robomongo and look for the stored data, I do not find any information inside my 'carbrands' collection declared in carbrands.js as

CarBrands= new Meteor.Collection("carbrands");

Also, no users collection is created. My Robomongo profile is connected to localhost. If I try to access CarBrands from Chrome console i get the following output:

> CarBrands.find();
> LocalCollection.Cursor {collection: LocalCollection, selector_id: undefined, selector_f: function, sort_f: null, skip: undefined…}

Where is the meteor data being saved to and how can i view it ?

UPDATE**: I have run mongo command in linux terminal and the result returned are local and test. test is empty. Accessing local returns the same collections as viewed in Robomongo

like image 486
ivan Avatar asked Jan 02 '14 03:01

ivan


1 Answers

You need to run:

meteor mongo

from your project, not your usual mongoDB install:

http://docs.meteor.com/#meteormongo

like image 171
7zark7 Avatar answered Oct 06 '22 23:10

7zark7