DEV Community

Discussion on: Why GraphQL?

Collapse
 
patarapolw profile image
Pacharapol Withayasakpunt • Edited

I don't really get why you cannot expose req.query.fields or req.body.fields in a REST API. I think OData is doing that.

Also, this idea integrates well with MongoDB projection.

Also, I don't know how much idempotency matters in GraphQL. (e.g. GET vs POST)

Collapse
 
saranshk profile image
saransh kataria

This post might be helpful in understanding the differences: jeffhandley.com/2018-09-13/graphql...

Thread Thread
 
patarapolw profile image
Pacharapol Withayasakpunt

Too long, many links, more of the complaints and telling that the writer is trustworthy; so I still understand nothing.

Not to mention that GraphQL can also be DoS and injected as well.