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
class Wheel(Document):
name: str
radius: int = 16
class Car(Document):
name: str
wheels: list[Link[Wheel]]
async def example():
wheel = await Wheel.find_one(
Wheels.name == wheels_name)
await wheel.delete()
In this case, the Wheel will be deleted, but ref record remains in Car (something like: ["{ "$ref" : "Wheel", "$id" : "65d25dc3a68e2f067e2827ee" }"]). How to get rid of this?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi All!
In this case, the Wheel will be deleted, but ref record remains in Car (something like: ["{ "$ref" : "Wheel", "$id" : "65d25dc3a68e2f067e2827ee" }"]). How to get rid of this?
Beta Was this translation helpful? Give feedback.
All reactions