Hacker News new | ask | show | jobs
by asp2insp 3019 days ago
The graphql tutorial has a chapter devoted to this: https://www.howtographql.com/advanced/4-security/

In a nutshell, you can limit the depth to which a query will resolve in order to prevent abuse. You can also go much further and whitelist a specific set of queries (which comes with some additional bandwidth wins!) See https://dev-blog.apollodata.com/persisted-graphql-queries-wi...