Skip to content
Snippets Groups Projects
Commit 5562def5 authored by Calen Pennington's avatar Calen Pennington
Browse files

Add documentation of mongo query syntax usage

parent 677c25ee
Branches
Tags release-2020-06-18-04.55
No related merge requests found
......@@ -67,6 +67,9 @@ class MongoKeyStore(KeyStore):
location: Something that can be passed to Location
data: A nested dictionary of problem data
"""
# See http://www.mongodb.org/display/DOCS/Updating for
# atomic update syntax
self.collection.update(
{'location': Location(location).dict()},
{'$set': {'data': data}}
......@@ -80,6 +83,9 @@ class MongoKeyStore(KeyStore):
location: Something that can be passed to Location
children: A list of child item identifiers
"""
# See http://www.mongodb.org/display/DOCS/Updating for
# atomic update syntax
self.collection.update(
{'location': Location(location).dict()},
{'$set': {'children': children}}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment