Hacker News new | ask | show | jobs
The Evolution of GraphQL at Scale (apollographql.com)
9 points by stemmlerjs 2052 days ago
1 comments

Is GQL still an abstraction that doesn't map at all to the underlying datastore, so that any given query can be arbitrarily slow?
Kind-of, but there are workarounds. There are a number of plugins to various GraphQL servers that can compute a query complexity and disallow queries that exceed the complexity. You can also restrict arbitrary queries and only the queries in your codebase (e.g., to prevent external people from executing extremely costly queries).

Kind-of because you can structure your database to work well with GraphQL, especially using DataLoader to solve N+1 problems.