GraphQL seems like a nice idea.
Are there any negatives that might not be obvious from just reading the docs?
Are there any negatives that might not be obvious from just reading the docs?
GraphQL does the same when it compares itself to REST. It has problems of its own and it's a false dichotomy. It's just marketting.
Any application where a user might want/need bits and pieces of various objects pieced together would be appropriate and that's a lot of applications.
For example if you are loading a user's dashboard view you may need basic user info, their unread messages, the list of objects they are looking at (e.g. list of invoices) and things like that.
Without GraphQL you'd be making separate requests to pull all of that together, with GraphQL it can happen in one round-trip.