db.update can i use doc_id??? #364
-
HI wondering if I can use doc_id = 1 when using db.update i.e. db.update({"Name": "Damien, "Seen": True), doc_id = 1) the example of your guide uses only mentions doc_id = [list] so I could do doc_ids = [1,] but seems a little "wrong" touse a list for one item. thanks Damien |
Beta Was this translation helpful? Give feedback.
Answered by
eugene-eeo
Jan 12, 2021
Replies: 1 comment 1 reply
-
Nope, you can't use an integer in place -- using |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
msiemens
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Nope, you can't use an integer in place -- using
doc_ids=[doc_id]
is fine.