JetBrains / js-graphql-intellij-plugin

GraphQL language support for WebStorm, IntelliJ IDEA and other IDEs based on the IntelliJ Platform.
https://jimkyndemeyer.github.io/js-graphql-intellij-plugin/
MIT License
879 stars 97 forks source link

Deprecated input fields get removed from the schema.json #622

Open MarNwk opened 1 year ago

MarNwk commented 1 year ago

Describe the bug Retrieving the schema with the plugin removes all input fields that are deprecated. Is there any way to keep the deprecated input fields in schema.json?

To Reproduce

  1. Fetch a schema with deprecated input fields using the plugin with a .graphqlconfig looking like this :
    {
    "name": "Random Schema",
    "schemaPath": "schema.json",
    "extensions": {
    "endpoints": {
      "Default Endpoint": {
        "url": "https://random.graphql.cloud/graphql",
        "headers": {
          "user-agent": "JS GraphQL",
        },
        "introspect": false
      }
    }
    }
    }
  2. All the input fields that got marked as deprecated are removed from the schema.json

Expected behavior Deprecated input fields should still be included in schema.json

Version and Environment Details Operation system: macOS Monterey 12.6 IDE name and version: Android Studio Flamingo Canary 6 Plugin version: 3.3.0