8000 Change insertion order of keys in data dicts maintained in Collection._store by YotamAlon · Pull Request #827 · mongomock/mongomock · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Change insertion order of keys in data dicts maintained in Collection._store #827

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

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

YotamAlon
Copy link

Some external libraries (mongoengine is one example), depend on the insertion order of the fields in the dict returned by pymongo, specifically in this fix that the "_id" field is first. I've confirmed that this is how pymongo is providing the data.

Incidentally, this also fixes #641

…nsertion order of the fields in the dict returned by pymongo, specifically that the "_id" field is first.

Incidentally, this also fixes mongomock#641
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

Successfully merging this pull request may close these issues.

mongoengine field with db_field="id" doesn't work as expected
1 participant
0