DEV Community

Discussion on: What are the cons of GraphQL?

Collapse
 
dorshinar profile image
Dor Shinar

Queries can be more expensive to run - due to the multiple layers of resolvers and schema validation, nested queries can be more expensive. Schema validation is a big plus, don't get me wrong, but it does come with a trade-off.

Collapse
 
gklijs profile image
Gerard Klijs

Queries might be more expensive, but using data loader one GraphQL query could be one query to the database, which with REST it might needed hundred simpler calls.

Collapse
 
totally_waqas profile image
Waqas

it’s just beautiful how data loaders work

Collapse
 
kumareth profile image
Kumar Abhirup

thanks for the info