7 ms·
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 n
by DanielHB 3y ago
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.