DEV Community

[Comment from a deleted post]
Collapse
 
mvoloskov profile image
Miloslav 🏳️‍🌈 🦋 Voloskov
  1. Adjustability. If you have a very rich data model, for example, if one order of your e-shop must return the full thing when you need it and just order id and order date for the orders list.
  2. Multiple sources. For example, you may want to have Cassandra DB for analytics (cheap writes, expensive reads) and some SQL DB for everything else (cheap reads, expensive writes) and want to assemble this all to provide some unified API

Aside from that, GraphQL just reduces the amount of code you have to write, and less code means less bugs :)