You are viewing a single comment's thread from:

RE: Learn Python Series (#19) - PyMongo Part 2

in #utopian-io7 years ago

The submission is reviewed and approved. Thank you for your contributions to open source community.

I have a question for the update methods, how would we update many values in a subset of a document or documents in a collection, like as we would change the reviewed state of many posts in an account or accounts? Should we define a variable like coll = db.accounts , but for the subset of the accounts? Or is there a different syntax of update_many() to this?


Need help? Write a ticket on https://support.utopian.io.
Chat with us on Discord.

[utopian-moderator]

Sort:  

Hey @roj, I just gave you a tip for your hard work on moderation. Upvote this comment to support the utopian moderators and increase your future rewards!