Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
rocket-micha opened this issue Feb 16, 2024 · 0 comments · Fixed by #2510
Closed

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

rocket-micha opened this issue Feb 16, 2024 · 0 comments · Fixed by #2510

Comments

@rocket-micha
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant