complexity
graphql-ruby の提供するAPI制限機構
fieldごとにcompelextyを設定し、queryのcomplexityの合計値に制限をかけられる]
http://graphql-ruby.org/queries/complexity_and_depth.html
Fields have a “complexity” value which can be configured in their definition. It can be a constant (numeric) value, or a proc.
デフォルトだと connection や array の要素はcomplexityにカウントしないので、 items(first: 10000000) といった大量のリクエスをとはじけるわけではない
complexityにprocを渡して個別に計算する方法はあるようだが、Analyzer APIなどでまとめてやるのがよさそう?