lighthouse icon indicating copy to clipboard operation
lighthouse copied to clipboard

Duplicate tracing paths in queries with pagination

Open robsontenorio opened this issue 5 years ago • 1 comments

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

  1. Eneable Tracing
  2. Execute any query with args and pagination
  3. The resulting tracing duplicates first path.

Output/Logs

Click to expand

Duplicates first tracing resolver path

image

image

image

Does not duplicates

image

image

image

Lighthouse Version

5.alpha-4

robsontenorio avatar Sep 17 '20 19:09 robsontenorio

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

spawnia avatar Sep 18 '20 07:09 spawnia