nuwave / lighthouse

A framework for serving GraphQL from Laravel
https://lighthouse-php.com
MIT License
3.36k stars 438 forks source link

CanArgs is defined twice in schema-directives.graphql #2507

Closed rocket-micha closed 7 months ago

rocket-micha commented 7 months ago

Describe the bug

After running artisan lighthouse:ide-helper command, the generated schema-directives.graphql file contains the following error:

image

I assume it's because the (deprecated) CanDirective defines it itself because it inherits from BaseDirective (instead of BaseCanDirective). I guess this will be gone automatically as soon as the CanDirective class is removed in the 7.x upgrade as it's already marked deprecated and for removal.

Is there a chance to get this fixed in the 6.x until then?

Expected behavior/Solution

IDE helper generates error-free schema-directives.graphql file.

Steps to reproduce

  1. run artisan lighthouse:ide-helper
  2. check GraphQL tool window in phpstorm

Lighthouse Version

6.29.1