Advertisement
Guest User

Untitled

a guest
Jun 22nd, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.36 KB | None | 0 0
  1. (8:14:00 AM) royal_screwup21: {08:13:23} How do I insert documents into a collection on my local monGOdb server? I tried doing something like this: https://paste.pound-python.org/show/sS0hgaiHTjqDRlb2qtGL/ but when I checked my server, I discovered the document wasn't inserted into my collection. Apparently the documents inserted into a collection via the script aren't being reflected on
  2. (8:14:00 AM) royal_screwup21: {08:13:23} the actual server. Weird. Where am I going wrong?
  3. (10:22:38 AM) Lenolium: royal_screwup21: Your first problem was using MongoDB.
  4. (10:23:18 AM) marvthegrate: royal_screwup21: your second was not having a clean audit before posting questions
  5. (10:23:36 AM) Lenolium: I bet your e-meter reading is off the charts.
  6. (12:00:31 PM) royal_screwup21: marvthegrate: clean audit? What do you mean?
  7. (12:01:09 PM) Lenolium: royal_screwup21: What are your body theatan levels?
  8. (12:01:13 PM) royal_screwup21: Lenolium: thanks, that was super helpful
  9. (12:01:49 PM) Lenolium: If you wanted your data, you would use postgres.
  10. (12:05:01 PM) royal_screwup21: Lenolium: Okay, I'll keep that in mind from here on out. Just in case anyone's facing a similar problem, the solution is to syntactically use the database as a dictionary. So something like db.<collection> should be replaced by db[<collection>]
  11. (12:06:14 PM) det3: MongoDB was created by a bunch of SPs. Sad!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement