Devographics / Monorepo

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

[results/js2023/yearly_salary] runQuery Issue: Float cannot represent non numeric value: range_7_9 #397

Open luisaterrabrito opened 1 week ago

luisaterrabrito commented 1 week ago

Edition ID

js2023

Block ID

yearly_salary

Filters:

{
  "options": {
    "showDefaultSeries": false,
    "enableYearSelect": false,
    "mode": "grid",
    "queryOnLoad": false,
    "cutoff": 1,
    "cutoffType": "percent",
    "limit": 20,
    "mergeOtherBuckets": false,
    "preventQuery": false
  },
  "filters": [
    {
      "year": 2023,
      "conditions": [
        {
          "fieldId": "country",
          "sectionId": "user_info",
          "operator": "eq",
          "value": "GBR"
        },
        {
          "fieldId": "years_of_experience",
          "sectionId": "user_info",
          "operator": "eq",
          "value": "range_7_9"
        }
      ]
    }
  ]
}

Query:


query {
    surveys {
    state_of_js {
        js2023 {
        user_info {

        yearly_salary_1: yearly_salary {
            id

            responses(filters: {user_info__country:{eq:GBR},user_info__years_of_experience:{eq:range_7_9}}, parameters: {showNoAnswer:true,mergeOtherBuckets:false,cutoffPercent:1,facetCutoffPercent:1,limit:20}) {
            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.stateofjs.com/en-US/demographics/

Timestamp

Tue Jun 25 2024 18:21:24 GMT+0100 (British Summer Time)

Error:

  {
  "message": "Float cannot represent non numeric value: range_7_9",
  "locations": [
    {
      "line": 12,
      "column": 96
    }
  ],
  "extensions": {
    "code": "GRAPHQL_VALIDATION_FAILED"
  }
}