For this assignment, you will be updating documents in the Pytech database.
MongoDB: update_one Example
result = db.collection.update_one({student_id: 1007}, {$set: {last_name: Smith}})

Instructions
  1. Create a new directory under csd-310 and name it module_6.
  2. Inside the module_6 directory create a new file and name it pytech_update.py.
  3. Add the required Python code to connect to the students collection (refer to previous assignments for help).
  4. Call the find() method and output the documents to the terminal window.
  5. Call the update_one method by student_id 1007 and update the last name to something different than the originally saved name.
  6. Call the find_one method by student_id 1007 and output the document to the terminal window.
  7. Styling guidelines:
    • The format must match mine (this is gradable).
    • You may use the data Ive provided or supply your own values.
    • The only exception is you must use student_ids 1007, 1008, and 1009.
Output

 
Deliverables

  1. pytech_update.py

What Students Are Saying About Us

.......... Customer ID: 12*** | Rating: ⭐⭐⭐⭐⭐
"Honestly, I was afraid to send my paper to you, but you proved you are a trustworthy service. My essay was done in less than a day, and I received a brilliant piece. I didn’t even believe it was my essay at first 🙂 Great job, thank you!"

.......... Customer ID: 11***| Rating: ⭐⭐⭐⭐⭐
"This company is the best there is. They saved me so many times, I cannot even keep count. Now I recommend it to all my friends, and none of them have complained about it. The writers here are excellent."


“Order a custom Paper on Similar Assignment at essayfount.com! No Plagiarism! Enjoy 20% Discount!”