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

IJ plugin: IDE misses some variable validation errors #6219

Open
martinbonnin opened this issue Oct 24, 2024 · 0 comments
Open

IJ plugin: IDE misses some variable validation errors #6219

martinbonnin opened this issue Oct 24, 2024 · 0 comments
Assignees

Comments

@martinbonnin
Copy link
Contributor

Version

4.0.1

Summary

This query using the internal platform API:

query GetSparklines($graph: String!){
  service(id: $graph) {
    today: statsWindow(from: "-86400", to: "-0", resolution: R15M) {
      queryStats {
        timestamp
        metrics {
          totalRequestCount
          requestsWithErrorsCount
        }
      }
    }
  }
}

Fails validation with

> A failure occurred while executing com.apollographql.apollo.gradle.internal.GenerateSources
   > e: /Users/martinbonnin/git/studio-companion-app/android/app/src/main/graphql/apollo-platform/internal/GetSparklines.graphql: (2, 15): Variable `graph` of type `String!` used in position expecting type `ID!`
     ----------------------------------------------------
     [1]:query GetSparklines($graph: String!){
     [2]:  service(id: $graph) {
     [3]:    today: statsWindow(from: "-86400", to: "-0", resolution: R15M) {
     ----------------------------------------------------

But no error is shown in the editor

Screenshot 2024-10-24 at 17 12 10

Steps to reproduce the behavior

No response

Logs

No response

@BoD BoD self-assigned this Oct 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants