How to get a json dump without prefetching? pydantic_model_creator seems to always force join queries/useless prefetching #1582
Unanswered
alexanderankin
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
per the question in the title.
if you use
from_orm
, as per: https://tortoise.github.io/contrib/pydantic.html#:~:text=If%20you%20don%E2%80%99t%20want%20this%2C%20or%20require%20a%20sync%20method%2C%20look%20to%20using%20.from_orm().it does not work because pydantic fails with validation errors. seems like useless prefetching mandated by orm yet again?
Beta Was this translation helpful? Give feedback.
All reactions