Devographics / Monorepo

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

[results/js2023/people] runQuery Issue: Cannot query field "token" on type "FacetBucket". #378

Closed sylwiavargas closed 2 weeks ago

sylwiavargas commented 2 weeks ago

Edition ID

js2023

Block ID

people

Filters:

{
  "options": {
    "showDefaultSeries": false,
    "enableYearSelect": false,
    "mode": "grid",
    "queryOnLoad": false,
    "cutoff": 10,
    "cutoffType": "count",
    "limit": 40,
    "mergeOtherBuckets": false,
    "preventQuery": false
  },
  "filters": [
    {
      "year": 2023,
      "conditions": [
        {
          "fieldId": "age",
          "sectionId": "user_info",
          "operator": "eq",
          "value": "range_under_20"
        },
        {
          "fieldId": "syntax_features",
          "sectionId": "features",
          "operator": "eq",
          "value": "dynamic_import"
        }
      ]
    }
  ],
  "facet": {
    "sectionId": "user_info",
    "id": "gender"
  }
}

Query:


query {
    surveys {
    state_of_js {
        js2023 {
        resources {

        people_by_gender_1: people {
            id

            freeform(facet: user_info__gender, filters: {user_info__age:{eq:range_under_20},features__syntax_features:{eq:dynamic_import}}, parameters: {cutoff:10,facetCutoff:10,limit:40}) {
            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
    }
}
                    averageByFacet

    percentilesByFacet {
        p0
        p10
        p25
        p50
        p75
        p90
        p100
    }

    facetBuckets {
        id
        count
        percentageBucket
        percentageQuestion
        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
    }
}
        token {
    id
    parentId
}
    }

                    groupedBuckets {
                    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
    }
}
                    averageByFacet

    percentilesByFacet {
        p0
        p10
        p25
        p50
        p75
        p90
        p100
    }

    facetBuckets {
        id
        count
        percentageBucket
        percentageQuestion
        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
    }
}
        token {
    id
    parentId
}
    }

                }
                }
            }
            }
        }
        }
        }
    }
    }
}

Location

https://2023.stateofjs.com/en-US/resources/

Timestamp

Thu Jun 20 2024 09:03:45 GMT+0100 (British Summer Time)

Error:

  {
  "message": "Cannot query field \"token\" on type \"FacetBucket\".",
  "locations": [
    {
      "line": 164,
      "column": 9
    }
  ],
  "extensions": {
    "code": "GRAPHQL_VALIDATION_FAILED"
  }
}
sylwiavargas commented 2 weeks ago

I think I reported the same error last year.

SachaG commented 2 weeks ago

I think I reported the same error last year.

Actually, just like we have new data every year, I also work very hard to make sure I introduce a lot of new errors every year, too!

sylwiavargas commented 2 weeks ago

Oh I didn’t mean it in a snarky way. Just it seems familiar and appeared in the same actions as last year so I hoped that in this way it’s easier to fix it.

SachaG commented 2 weeks ago

Sorry I was just making a bad joke! I'm on it :)

SachaG commented 2 weeks ago

This should be fixed now.