Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (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
- (8:14:00 AM) royal_screwup21: {08:13:23} the actual server. Weird. Where am I going wrong?
- (10:22:38 AM) Lenolium: royal_screwup21: Your first problem was using MongoDB.
- (10:23:18 AM) marvthegrate: royal_screwup21: your second was not having a clean audit before posting questions
- (10:23:36 AM) Lenolium: I bet your e-meter reading is off the charts.
- (12:00:31 PM) royal_screwup21: marvthegrate: clean audit? What do you mean?
- (12:01:09 PM) Lenolium: royal_screwup21: What are your body theatan levels?
- (12:01:13 PM) royal_screwup21: Lenolium: thanks, that was super helpful
- (12:01:49 PM) Lenolium: If you wanted your data, you would use postgres.
- (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>]
- (12:06:14 PM) det3: MongoDB was created by a bunch of SPs. Sad!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement