monger icon indicating copy to clipboard operation
monger copied to clipboard

mc/insert-and-return does not return the same value as mc/find-one-as-map

Open SevereOverfl0w opened this issue 4 years ago • 0 comments

mc is monger.collection.

If I insert:

{:foo {"a" 1}}

then insert-and-return gives {:foo {"a" 1} :_id "..."} but find-one-as-map gives {:foo {:a 1} :_id "..."} when querying back out. This is because these functions do not perform the keywordization they otherwise do on return values.

SevereOverfl0w avatar Nov 21 '19 15:11 SevereOverfl0w