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 Jan 13, 2023. It is now read-only.
Well, simple encode/decode is already tested by test code (Check queryset integration test), but I think this issue might happens when you code a complex code.
Did you inherit/override something other than mongoengine_goodjson.document.Document?
I don't understand your solution.
My class is quite simple but I also used this package.
Now I have solved it by implementing the to_json method by myself in a class and then all my document Inheriting from it.
Hi,
As far as I read the code of that, flask_mongoengine seems to have their own Document class and QuerySet class that don't inherit mongoengine_goodjson.Document and mongoengine_goodjson.QuerySet. As the solution, you will need to create your own classes that inherit the both of mongoengine_goodjson classes and flask_mongoengine classes.
When I run this:
I get a single document with the ID field formated correctly:
But when I do:
I get the following list without the IDs been formatted:
Am I doing anything wrong?
The text was updated successfully, but these errors were encountered: