fix: matched_count for idempotent updates; document drop-on-missing-key (v0.1.2)
- update_document_field/update_document_operator/document_pop_array return matched_count > 0, so an idempotent write that matched a doc but changed nothing ( to the same value, of an absent value) reports success instead of False (L19) - document the bare-proxy escape hatch is mongo.collection(name) not mongo[name], and that get_document_hashmap/get_document_fields skip docs missing the key (nits). Signed-off-by: disqualifier <dev@disqualifier.me>
This commit is contained in:
+1
-1
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
||||
|
||||
[project]
|
||||
name = "mongo"
|
||||
version = "0.1.1"
|
||||
version = "0.1.2"
|
||||
description = "async mongodb wrapper over motor with a raw escape hatch"
|
||||
requires-python = ">=3.10"
|
||||
dependencies = [
|
||||
|
||||
Reference in New Issue
Block a user