Skip to content

Schema directives file cannot be read by the plugin #436

@canatufkansu

Description

@canatufkansu

Describe the bug
When I create attached directives trough Lighthouse PHP package artisan command, JS Graphql add-on doesn't accept the file.

To Reproduce
Link to Repo with Reproduction or Steps to Reproduce:

  1. Use this file to in the project -> schema-directives.txt
  2. Check schema.graphql -> schema.txt
  3. See that JS Graphql addon cannot check schema with given directives file.
  4. Change the contents of the schema-directives file this given content -> schema-directives.txt
  5. See that this time JS Graphql can check schema against given directives file.

Expected behavior
When I create directives.graphql file through Lighthouse Php package JS Graphql should recognize the file and check my schema.graphql file according to it.

Screenshots
If applicable, add screenshots to help explain your problem.

Version and Environment Details
Operation system: Macos 11.2.2
IDE name and version: PhpStorm 2020.3
Plugin version: 2.9.0

Additional context
I understand this issue is also related to Lighthouse Php package but I couldn't find any error on their directives file that is generated. Thus I open an issue on your side.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions