GraphQLParser nesting limitation

GraphQLParser nesting limitation


0

I’m using Facebook’s C++ library GraphQLParser to parse GraphQL queries.

If a pass the library a query with an extremely large number of nested selection sets – it crashes due to stack overflow.

Query for example:

query X {
  name {
    name {
      name {
  ...
}

Is there a way to configure the library to impose a restriction on the depth of nested selection sets

Thanks

New contributor

Yaniv Gabay is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

1

  • You should file a bug for that. GraphQL queries tend to be sent by end users and the library should handle too deep nesting gracefully.

    – Botje

    32 mins ago


Load 7 more related questions


Show fewer related questions

0



Leave a Reply

Your email address will not be published. Required fields are marked *