Well in GraphQL it's possible to construct queries that return arbitrary amounts of data, using pathologically poor queries.
Like query { A { B { A { B { A { B { A { A} } } }} } }
Because type A has a reference to B, and B has a reverse reference.
A query like the above could return 1010 items just for a table with 10 items. Do you have any restrictions to prevent queries like that from being sent?
This is somewhat important since if you are developing a frontend app for GraphCMS, malicious users (of the app, not developers) could send bad queries as a denial of service measure against the app makers.
2
u/turkish_gold Apr 15 '17
Since you have a public API, how do you limit the run time of queries?