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"? #448

Open atarashiiwilmer opened 2 weeks ago

atarashiiwilmer commented 2 weeks 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

  comments {
    currentEdition {
      count
    }
  }

            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 {
                _metadata {
    axis1Sort {
    property
    order
    }
    axis2Sort {
    property
    order
    }
}

                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

  comments {
    currentEdition {
      count
    }
  }

            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 {
                _metadata {
    axis1Sort {
    property
    order
    }
    axis2Sort {
    property
    order
    }
}

                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

Fri Nov 08 2024 00:07:18 GMT+0800 (China 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": 18,
      "column": 63
    }
  ],
  "extensions": {
    "code": "GRAPHQL_VALIDATION_FAILED"
  }
}