Replies: 2 comments 2 replies
-
You define the type field via the schema params. For example:
|
Beta Was this translation helpful? Give feedback.
1 reply
-
There can only be one setting for the type field, you cannot vary per model. So it must be defined in the schema params. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
According to the documentation:
"OneTable will automatically add a _type attribute to each model that is set to the name of the model. However, you can explicitly define your type attribute in your model schema if you wish."
However when I try to set a custom value like this:
The value is still overriden by OneTable to the name of the model.
How do I do this correctly?
Beta Was this translation helpful? Give feedback.
All reactions