lighthouse
lighthouse copied to clipboard
Duplicate tracing paths in queries with pagination
Describe the bug
https://lighthouse-php.com/4.16/performance/tracing.html
Queries with args and pagination duplicates first tracing resolver path.
Expected behavior/Solution
Should be parsed once per path. Am i missing something?
Steps to reproduce
- Eneable
Tracing - Execute any query with args and pagination
- The resulting tracing duplicates first path.
Output/Logs
Click to expand
Duplicates first tracing resolver path



Does not duplicates



Lighthouse Version
5.alpha-4
I guess the reason for that might have to do with the AST manipulation that occurs within the @paginate directive: https://github.com/nuwave/lighthouse/blob/f1173128eb21f37f6a15805310ec993961098a92/src/Pagination/PaginateDirective.php#L63-L85