Devographics / Monorepo

Monorepo containing the State of JS apps
surveyform-sigma.vercel.app
Other
134 stars 52 forks source link

[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"? #413

Closed Fibonoir closed 3 months ago

Fibonoir commented 3 months ago

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

Sat Aug 03 2024 14:36:16 GMT+0200 (Central European Summer 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"
  }
}
eric-burel commented 3 months ago

dupe of #410