How to change the permitted length of the @Fields.string() #233
Replies: 1 comment 1 reply
-
Hi @SubliminalGuy , The limitation is coming from the underlying database, not from remult. You can determine the text field length that will be sent to the database on the create script, using the @Fields.string({maxLength:200}) If you want to use a different datatype when you create the table, you can specify that data type in the valueConverter property: Fields.string({valueConverter:{
fieldTypeInDb:'varchar(max)'
}}) Note that Let me know if this helps |
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
-
Hi everyone,
in one of my apps i'm initiating a String Field with
When i'm trying to POST a string above a certain threshold i'm receiving an error from the backend:
"Data too long for column 'sprechertext' at row 1"
Is there an implicit length constraint on the string field? What can I do, to process longer strings?
Thanks for your help!
Beta Was this translation helpful? Give feedback.
All reactions