I tried to put an maximum on hasMany, but it did not work with maxRows or maxDepth.
Is there any way to fix it? or do i just set an description with only the first 3 will be seen
Are you using Typescript? maxRows/minRows is not currently supported on relationship fields - but sounds like it might be useful as a feature. You should start up a github discussion related to this and we will see where we can slate it into our roadmap.
As for wha you can do
now, I think using a description paired with a
validatefunction would get you pretty far. This way when the user submits, you can let them know before storing the data in the db.
👍 thx
Star
Discord
online
Get dedicated engineering support directly from the Payload team.