> If you let’s say have a public api, you’ll have more control than in rest, no less, because it’s easier to reason about what your api users need.
REST: you know exact queries that frontend uses, and can optimize accordingly
GraphQL: users can and will construct ad-hoc queries of any complexity, so they can and will hit unoptimised paths
lyxsus on HN: GraphQL gives you more control than REST.