Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
SevereOverfl0w opened this issue Nov 21, 2019 · 0 comments

Comments

@SevereOverfl0w
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant