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
I'm working on a FastAPI application with ODMantic and it's fantastic. However, I'm a bit confused by how references to external models are handled. Maybe I did it all wrong, but I came up with the same solution than #127 (comment) in order to avoid a validation error
Let's say that I'm trying to model a project and its builds:
Hi,
I'm working on a FastAPI application with ODMantic and it's fantastic. However, I'm a bit confused by how references to external models are handled. Maybe I did it all wrong, but I came up with the same solution than #127 (comment) in order to avoid a validation error
Let's say that I'm trying to model a project and its builds:
I must use an additional model:
Or
project_id: Optional[ObjectId]
but it's the same.And then to:
As in this example endpoint:
This is cumbersome and errorprone so I'm sure I am missing something.
The text was updated successfully, but these errors were encountered: