We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Collection.index_information
Mongita Collection returns a List[Dict], and should instead return a MutableMapping[str, Any] See https://pymongo.readthedocs.io/en/stable/api/pymongo/collection.html#pymongo.collection.Collection.index_information
List[Dict]
MutableMapping[str, Any]
My suggested implementation:
def index_information(self): ret = {'_id_': {'key': [('_id', 1)]}} metadata = self._Collection__get_metadata() for idx in metadata.get('indexes', {}).values(): ret[idx['_id']] = {'key': [(idx['key_str'], idx['direction'])]} return ret
The text was updated successfully, but these errors were encountered:
This looks correct as well. Not sure how I messed that up first round through. Still need a few days to get it in
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Mongita Collection returns a
List[Dict]
, and should instead return aMutableMapping[str, Any]
See https://pymongo.readthedocs.io/en/stable/api/pymongo/collection.html#pymongo.collection.Collection.index_information
My suggested implementation:
The text was updated successfully, but these errors were encountered: