Re:Strong typing, a hill I'm willing to die on
by DanielHB on Thursday October 05, 2023 @07:29AM
(#37777242)
In my opinion this is the single biggest benefit of GraphQL, forced validation of data server-side. Sure you can do that with swagger in REST apis as well but nobody ever bothers to do it strictly and correctly.
Technically you can have more complex and custom validation (email is a valid email address) with annotations but the client-side will not have this information.
Technically you can have more complex and custom validation (email is a valid email address) with annotations but the client-side will not have this information.