-
-
Notifications
You must be signed in to change notification settings - Fork 23
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
Mongo error #44
Comments
Are there any workarounds for the errors happening in MongoRepo? `Fatal error encountered. Shutting down... During handling of the above exception, another exception occurred: Traceback (most recent call last): |
need to comment the json["_id"] out for it to work as self.id_field is none and likely the same for all the operations
def item_to_data(self, item:BaseModel):
json = self.item_to_dict(item, exclude_unset=False)
# Rename whatever is as id_field to _id
#json["_id"] = json.pop(self.id_field)
return json
The text was updated successfully, but these errors were encountered: