{"action":"created","issue":{"url":"https://api.github.com/repos/ga-dc/pbj-project4/issues/12","labels_url":"https://api.github.com/repos/ga-dc/pbj-project4/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/ga-dc/pbj-project4/issues/12/comments","events_url":"https://api.github.com/repos/ga-dc/pbj-project4/issues/12/events","html_url":"https://github.com/ga-dc/pbj-project4/issues/12","id":106598805,"number":12,"title":"Wiring up MongoDB and Express","user":{"login":"petergcutler","id":11398019,"avatar_url":"https://avatars.githubusercontent.com/u/11398019?v=3","gravatar_id":"","url":"https://api.github.com/users/petergcutler","html_url":"https://github.com/petergcutler","followers_url":"https://api.github.com/users/petergcutler/followers","following_url":"https://api.github.com/users/petergcutler/following{/other_user}","gists_url":"https://api.github.com/users/petergcutler/gists{/gist_id}","starred_url":"https://api.github.com/users/petergcutler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petergcutler/subscriptions","organizations_url":"https://api.github.com/users/petergcutler/orgs","repos_url":"https://api.github.com/users/petergcutler/repos","events_url":"https://api.github.com/users/petergcutler/events{/privacy}","received_events_url":"https://api.github.com/users/petergcutler/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-09-15T16:51:17Z","updated_at":"2015-09-15T17:07:14Z","closed_at":null,"body":"Running into issues trying to connect Mongo and Express\r\n\r\nIn order to do the wiring, I've been attempting to use mongojs, mongodb, and monk in different approaches, and none of them are coming through. Right now, I'm just using a simple connection in my app.js:\r\n\r\n```\r\nvar dbUrl = \"d3bq\";\r\nvar collections = [\"barbecues\"];\r\n\r\nconsole.log(db.barbecues.find().pretty())\r\nvar db = require(\"mongojs\").connect(dbUrl, collections);\r\n```\r\n\r\nbut the second I reference the db.barbecues.find() expression, I'm receiving errors.\r\n\r\nI have my app running via nodemon, my mongo database running via mongod, and my mongo server running. I have an object stored within my collection, \"barbecues\" , within my mongo database, \"d3bq\"\r\n\r\nThanks for any tips.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/ga-dc/pbj-project4/issues/comments/140465264","html_url":"https://github.com/ga-dc/pbj-project4/issues/12#issuecomment-140465264","issue_url":"https://api.github.com/repos/ga-dc/pbj-project4/issues/12","id":140465264,"user":{"login":"petergcutler","id":11398019,"avatar_url":"https://avatars.githubusercontent.com/u/11398019?v=3","gravatar_id":"","url":"https://api.github.com/users/petergcutler","html_url":"https://github.com/petergcutler","followers_url":"https://api.github.com/users/petergcutler/followers","following_url":"https://api.github.com/users/petergcutler/following{/other_user}","gists_url":"https://api.github.com/users/petergcutler/gists{/gist_id}","starred_url":"https://api.github.com/users/petergcutler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petergcutler/subscriptions","organizations_url":"https://api.github.com/users/petergcutler/orgs","repos_url":"https://api.github.com/users/petergcutler/repos","events_url":"https://api.github.com/users/petergcutler/events{/privacy}","received_events_url":"https://api.github.com/users/petergcutler/received_events","type":"User","site_admin":false},"created_at":"2015-09-15T17:07:14Z","updated_at":"2015-09-15T17:07:14Z","body":"http://localhost:3000/ and http://localhost:3000/barbecues"}}