[Notes] GraphQL vs. REST: What you didn’t know

The focus with GraphQL is more on how data is queried and less on how resources are modeled.

To start with, a GraphQL query could map to many different resolving functions, any of which could fail. As a result, a response could be partially successful and partially failed at the same time.

This vulnerability exists with other servers as well, but in the case of a GraphQL server, your API schema may expose potentially complex and expensive query patterns that could bring down your system easily.

Leave a comment