GraphQL vs DTO and Automapper
If you control both the front-end and back-end and you’re not exposing an API for public use, can you use GraphQL in place of DTOs? I’m using DTOs purely to cut down on unneeded data for front-end requests but if GraphQL will allow me to request exactly what I need, I don’t see why I should keep the DTOs (and automapper) around.
0 comments:
Post a Comment