js-graphql-intellij-plugin icon indicating copy to clipboard operation
js-graphql-intellij-plugin copied to clipboard

Deprecated input fields get removed from the schema.json

Open MarNwk opened this issue 1 year ago • 0 comments

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
      }
    }
  }
}
  1. 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

MarNwk avatar Nov 03 '22 10:11 MarNwk