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/html2023/country] runQuery Issue: Cannot query field "type" on type "Entity". #376

Open
Ksan8 opened this issue Jun 6, 2024 · 0 comments

Comments

@Ksan8
Copy link

Ksan8 commented Jun 6, 2024

Edition ID

html2023

Block ID

country

Filters:

{
  "options": {
    "showDefaultSeries": false,
    "enableYearSelect": false,
    "mode": "grid",
    "queryOnLoad": false,
    "cutoff": 1,
    "cutoffType": "percent",
    "limit": 20,
    "mergeOtherBuckets": true,
    "preventQuery": false
  },
  "filters": [
    {
      "year": 2023,
      "conditions": [
        {
          "fieldId": "gender",
          "sectionId": "user_info",
          "operator": "eq",
          "value": "female"
        }
      ]
    },
    {
      "year": 2023,
      "conditions": [
        {
          "fieldId": "age",
          "sectionId": "user_info",
          "operator": "eq",
          "value": "range_40_49"
        }
      ]
    }
  ]
}

Query:


query {
  surveys {
  state_of_html {
      html2023 {
      user_info {
          
      country_1: country {
          
          
          responses(filters: {user_info__gender:{eq:female}}, parameters: {cutoffPercent:1,facetCutoffPercent:1,limit:20,mergeOtherBuckets:true}) {
          currentEdition {
              
              completion {
                  count
                  percentageSurvey
                  total
              }
              average
              percentiles {
                  p50
              }
              buckets {
              
                  count
                  id
                  percentageQuestion
                  percentageSurvey
                  hasInsufficientData
                  entity {
  name
  nameHtml
  nameClean
  description
  descriptionHtml
  descriptionClean
  id
  type
  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 {
          
          
          responses(filters: {user_info__age:{eq:range_40_49}}, parameters: {cutoffPercent:1,facetCutoffPercent:1,limit:20,mergeOtherBuckets:true}) {
          currentEdition {
              
              completion {
                  count
                  percentageSurvey
                  total
              }
              average
              percentiles {
                  p50
              }
              buckets {
              
                  count
                  id
                  percentageQuestion
                  percentageSurvey
                  hasInsufficientData
                  entity {
  name
  nameHtml
  nameClean
  description
  descriptionHtml
  descriptionClean
  id
  type
  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.stateofhtml.com/en-US/demographics/

Timestamp

Thu Jun 06 2024 19:48:08 GMT+0200 (Central European Summer Time)

Error:

Screenshot 2024-06-06 at 7 48 38 PM
{
"message": "Cannot query field \"type\" on type \"Entity\".",
"locations": [
  {
    "line": 38,
    "column": 5
  }
],
"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