How to custom GraphQL validation rule
Hi guys, can you tell me how to add a validation field in twenty's graphQL, for example with
CreateOneAttachment
API I want to add authorId
field as required, which file in the twenty-server package should I look for?2 Replies
Hi @Hung Do,
There is no easy way to do that right now but there is a workaround, you can check how it works with messaging with MessageFindOnePreQueryHook class. You can register a pre-hook on your object for that validation step
Hi @Weiko
Thank you for your reply and suggestion. I will check that.