🌐 AI搜索 & 代理 主页
Skip to content

Conversation

@schenkd
Copy link

@schenkd schenkd commented Feb 12, 2024

Summary

Hey @pcorpet and @mdomke,

first of all, thank you for maintaining mongomock!

Today I've encountered that the current version of mongomock is not aligned with latest pymongo create_index behaviour. Not a big deal, but it will be more convienient for applications using pymongo >= 4.4.0 in combination with mongomock not be forced to set direction because mongomock enforces it.

Best David

* pymongo version >= 4.4.0 allows setting list of fields with optional direction.
* If no direction is given, ASCENDING will be assumed.
* pymongo version >= 4.4.0 allows setting list of fields with optional direction.
* If no direction is given, ASCENDING will be assumed.
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.

1 participant