You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 5, 2019. It is now read-only.
I'm trying to maintain the order of JSON variables, for some silly reason that matters to my project.
In the PyMongo driver, I use mongo.find({},as_class=OrderedDict) to force it to return as an OrderedDict, rather than a traditional, unordered dictionary.
This is a 2.7+ (or PyPy) feature, but it's a very useful one to me.
Is there any way using asyncmongo to force it to return using an OrderedDict, using as_class, or globally changing something?
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I'm trying to maintain the order of JSON variables, for some silly reason that matters to my project.
In the PyMongo driver, I use mongo.find({},as_class=OrderedDict) to force it to return as an OrderedDict, rather than a traditional, unordered dictionary.
This is a 2.7+ (or PyPy) feature, but it's a very useful one to me.
Is there any way using asyncmongo to force it to return using an OrderedDict, using as_class, or globally changing something?
The text was updated successfully, but these errors were encountered: