How do i set maximum length for my String fields ?
# orm-help
k
How do i set maximum length for my String fields ?
j
That not something that is GraphQL's job to decide. If you want to do validation I can recommend
joi
or something similar.
k
thanks, Prisma itself as an ORM doesn't have any solution for this ?!
j
Afaik, no. I think by default the type is
TEXT
, so it's uncapped.
k
Hmm that seems to be right, Tnx 👍
🦜 1