[18:43:51] <lavaman> Is there a way to suppress the version and connecting strings from mongo shell? Trying to run a javascript file and just get the output from the javascript.
[19:42:35] <fruitFly_> ranman: where? i have only once instance of terminal running, do I have to manually kill it somehow?
[19:44:52] <ranman> fruitFly_: are you on OSX? It is possible that a service called launchd (the service that launches background programs on OSX) has already started one for you. Depending on how you installed mongodb this may happen whenever your computer starts. You could confirm by running `mongo` and seeing if it connects to a database or you can just run ps aux | grep mongod and see if a mongod is running
[20:18:05] <lavaman> mongod is the database itself that anything can connect to
[20:18:11] <Joeskyyy> mongod is the database daemon process
[20:18:16] <lavaman> mongo is jsut the shell they provide to manually interact with mongod
[20:18:17] <Joeskyyy> mongo is the shell client to connect to a database.
[20:19:39] <fruitFly_> so if I want to create documents i have to be in the shell...... and does mongod need to be running at the same time? or when does mongod need to be running exactly?
[20:19:57] <Joeskyyy> mongod needs to be running whenever you need your database up
[20:20:00] <lavaman> whenever you want to access the db through any means (mongo shell, application code, etc)
[20:30:09] <fruitFly_> so how do I view all my collections, and documents etc. because in my project folder is a bunch of mystery magic, nothing that clearly makes sense... and it created some new files called test.0 and test.1, why would it created files called test when I saved a document called "kases"?
[20:30:43] <Joeskyyy> "show collections" will show all collections in a db
[20:34:44] <Joeskyyy> Those are the indexes on your collection.
[20:34:52] <Joeskyyy> By default _id is indexed on a collection
[20:36:09] <Joeskyyy> kali: yeah you're right, you can set it in mongodb.conf though if I'm not mistaken? I know at the very least in your mongo connection you can.
[20:36:21] <lavaman> you can def. set it in mongodb.conf
[20:36:31] <lavaman> i just thought that's where it pulled the default of test from
[20:36:37] <kali> Joeskyyy: i don't use mongdb.conf, so i'm not sure
[20:42:06] <Joeskyyy> That's all the params there.
[20:42:18] <carbonpile> oh sorry, i was thinking __v, which is a mongoose feature
[20:43:35] <ChristianDC> hello.. I'm sort of new to mongodb and document stores. say for example I have documents that also can be assigned tags. Should my Document store an array of the tags (each my string) or should that array store the ObjectId of the specific tag in another collection? So have 2 collections (Documents and Tags) or just Documents and embed each individual tag string
[20:44:00] <joannac> Are your tags likely to need changing?
[20:44:14] <joannac> How oftwn are you going to need tags?
[20:44:27] <ChristianDC> each document is going to have multiple tags
[20:44:58] <ChristianDC> each document will have at least 1 tag
[20:46:31] <ChristianDC> my first attempt has been to just create 2 different collections and assign the objectId to the array but i'm kind of struggling and getting it working. I have to check if the tag exists, and if not then create it.. then add the new objectId to the array
[20:47:03] <ChristianDC> not sure if mongo provides a simple method for doing that
[21:32:33] <Industrial> How do I search for 'where username or email matches this "handle"' ?