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

[results/css2023/country_low_vs_high_income] runQuery Issue: Value "range_0_10" does not exist in "StateOfCssYearlySalaryID" enum. Did you mean the enum value "range_0_20", "range_20_40", "range_40_60", "range_60_80", or "range_80_100"? #410

Open
nahu-casap opened this issue Jul 30, 2024 · 0 comments

Comments

@nahu-casap
Copy link

Edition ID

css2023

Block ID

country_low_vs_high_income

Filters:

{
  "options": {
    "showDefaultSeries": false,
    "enableYearSelect": false,
    "mode": "grid",
    "queryOnLoad": false,
    "cutoff": 1,
    "cutoffType": "percent",
    "limit": 20,
    "mergeOtherBuckets": false,
    "supportedModes": [
      "grid",
      "facet"
    ],
    "preventQuery": false
  },
  "filters": [
    {
      "conditions": [
        {
          "fieldId": "yearly_salary",
          "sectionId": "user_info",
          "operator": "in",
          "value": [
            "range_0_10",
            "range_10_30",
            "range_30_50"
          ]
        }
      ]
    },
    {
      "conditions": [
        {
          "fieldId": "yearly_salary",
          "sectionId": "user_info",
          "operator": "in",
          "value": [
            "range_50_100",
            "range_100_200",
            "range_more_than_200"
          ]
        }
      ]
    }
  ]
}

Query:


query {
  surveys {
  state_of_css {
      css2023 {
      user_info {
          
      country_1: country {
          id
          
          
          responses(filters: {user_info__yearly_salary:{in:[range_0_10,range_10_30,range_30_50]}}, parameters: {showNoAnswer:true,limit:20,cutoffPercent:1,facetCutoffPercent:1}) {
          currentEdition {
              
              completion {
                  count
                  percentageSurvey
                  total
              }
              average
              percentiles {
                  p50
              }
              
              buckets {
                  count
                  id
                  percentageQuestion
                  percentageSurvey
                  hasInsufficientData
                  entity {
  name
  nameHtml
  nameClean
  alias
  description
  descriptionHtml
  descriptionClean
  id
  entityType
  example {
    label
    language
    code
    codeHighlighted
  }
  avatar {
    url
  }
  homepage {
    url
  }
  youtube {
    url
  }
  twitter {
    url
  }
  twitch {
    url
  }
  rss {
    url
  }
  blog {
      url
  }
  mastodon {
      url
  }
  github {
      url
  }
  npm {
      url
  }
  mdn {
      url
  }
  caniuse {
      url
  }
  resources {
      url
      title
  }
}
                  
                  
                  
                  
              }
          }
          }
      },
      country_2: country {
          id
          
          
          responses(filters: {user_info__yearly_salary:{in:[range_50_100,range_100_200,range_more_than_200]}}, parameters: {showNoAnswer:true,limit:20,cutoffPercent:1,facetCutoffPercent:1}) {
          currentEdition {
              
              completion {
                  count
                  percentageSurvey
                  total
              }
              average
              percentiles {
                  p50
              }
              
              buckets {
                  count
                  id
                  percentageQuestion
                  percentageSurvey
                  hasInsufficientData
                  entity {
  name
  nameHtml
  nameClean
  alias
  description
  descriptionHtml
  descriptionClean
  id
  entityType
  example {
    label
    language
    code
    codeHighlighted
  }
  avatar {
    url
  }
  homepage {
    url
  }
  youtube {
    url
  }
  twitter {
    url
  }
  twitch {
    url
  }
  rss {
    url
  }
  blog {
      url
  }
  mastodon {
      url
  }
  github {
      url
  }
  npm {
      url
  }
  mdn {
      url
  }
  caniuse {
      url
  }
  resources {
      url
      title
  }
}
                  
                  
                  
                  
              }
          }
          }
      }
      }
      }
  }
  }
}

Location

https://2023.stateofcss.com/en-US/demographics/?xField=yearly_salary&yField=years_of_experience&xSection=user_info&ySection=user_info&unit=percentage&respondentsPerDot=10&percentsPerDot=1&dotsPerLine=10&showCellCounts=true&showNoAnswer=false

Timestamp

Mon Jul 29 2024 21:51:59 GMT-0300 (Argentina Standard Time)

Error:

{
"message": "Value \"range_0_10\" does not exist in \"StateOfCssYearlySalaryID\" enum. Did you mean the enum value \"range_0_20\", \"range_20_40\", \"range_40_60\", \"range_60_80\", or \"range_80_100\"?",
"locations": [
  {
    "line": 12,
    "column": 63
  }
],
"extensions": {
  "code": "GRAPHQL_VALIDATION_FAILED"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant