doyensec / GQLSpection

GQLSpection - parses GraphQL introspection schema and generates possible queries
Apache License 2.0
66 stars 7 forks source link

Replace recursion with a stack & loop #33

Closed execveat closed 11 months ago

execveat commented 11 months ago

The query generation happens recursively right now (lib/GQLSpection/src/gqlspection/GQLSubQuery.py) which might lead to stack exhaustion at certain depth levels. Replace this naive implementation with manual stack management & iterative loop.