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

PersistedQueryNotSupported #641

Closed webuniverseio closed 1 year ago

webuniverseio commented 1 year ago

Describe the bug I'm trying to run a query against an endpoint and it results in PersistedQueryNotSupported. I know that is related to how server is configured, but I have no control over server. This is an issue with a specific endpoint, others are working fine. My understanding is that if server does not support persisted queries then client should send a request in a specific manner to avoid the issue. I know I might be naive to assume that this is currently supported (since I was not able to find anyone mention that issue), but I wonder if there is a setting which I overlooked which helps to avoid the problem.

{
  "errors": [
    {
      "message": "PersistedQueryNotSupported",
      "extensions": {
        "code": "PERSISTED_QUERY_NOT_SUPPORTED"
      }
    }
  ],
  "data": null
}

Version and Environment Details Operation system: Monterey 12.6.3 IDE name and version: webstorm 2022.3.1 Plugin version: 3.3.0

webuniverseio commented 1 year ago

According to https://www.apollographql.com/docs/react/api/link/persisted-queries/ this is a deliberate action by the server to not persisted queries, I doubt there is much that client can do in this case