title: How do you prevent nested attack on GraphQL/Apollo server?
body: <p>How do you prevent a nested attack against an Apollo server with a query such as:</p>
  
  <pre><code>{
    authors {
      firstName
      posts {
        title
        author {
          firstName
          posts{
            title
            author {
              firstName
              posts {
                title
                [n author]
                  [n post]
              }
            }
          }
        }
      }
    }
  }
  </code></pre>
  
  <p>In other words, how can you limit the number of recursions being submitted in a query? This could be a potential server vulnerability. </p>