Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
First Check
Commit to Help
Example Code
Description
How can I add an attribute to a
SQLModel
instance? Let's say "group". I triedsetattr("group", "Z")
andhero.group = "Z"
, but it's not working. I want to add attributes to the instance since the SQLModel instance I'm returning in my mutation needs to match my GraphQL schema, which is slightly different.Operating System
macOS
Operating System Details
No response
SQLModel Version
0.0.8
Python Version
3.9.17
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions