Closed amos402 closed 3 months ago
This is unexpected way to use models. Internally Beanie uses id
as the _id
field. I'll check if this can be adjusted to support your use case. For now please use id
as the _id
field
This issue is stale because it has been open 30 days with no activity.
This issue was closed because it has been stalled for 14 days with no activity.
Describe the bug
Document.save
failed to create a new doc if the_id
field is a customized field. Thesave
implementation changed in 9e89d30f0f22b2fa2b4fdfcea40e012402ba7dda cause it.To Reproduce
Expected behavior The API should work as it said
insert it if it does not yet exist
.Additional context Add any other context about the problem here.