-
Hello 😄 I'm following along with your litestar examples. However, one issue is confusing me: Using your SQLALchemyDTO with a nested type. In the litestar_repo_only example it says I added
But it complains that the Book is an unsupported type when trying to serialise the response. How would I get it to work?
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Okay, I figured it out. I stumbed upon one of the pull requests #148 which helped! I was making the model parent be one of the DeclarativeBase of sqlalchemy rather than the UUIDBase. It needs the:
For it to work. I feel like an idiot, but it's solved at least! 🙌 |
Beta Was this translation helpful? Give feedback.
Okay, I figured it out. I stumbed upon one of the pull requests #148 which helped! I was making the model parent be one of the DeclarativeBase of sqlalchemy rather than the UUIDBase.
It needs the:
For it to work. I feel like an idiot, but it's solved at least! 🙌