Join Slack
Powered by
How do i set maximum length for my String fields ?
# orm-help
k
Kianoosh
03/25/2019, 1:27 PM
How do i set maximum length for my String fields ?
j
Jenkins
03/25/2019, 1:59 PM
That not something that is GraphQL's job to decide. If you want to do validation I can recommend
joi
or something similar.
k
Kianoosh
03/25/2019, 2:02 PM
thanks, Prisma itself as an ORM doesn't have any solution for this ?!
j
Jenkins
03/25/2019, 2:05 PM
Afaik, no. I think by default the type is
TEXT
, so it's uncapped.
k
Kianoosh
03/25/2019, 2:07 PM
Hmm that seems to be right, Tnx 👍
🦜 1
2
Views
Open in Slack
Previous
Next