Devographics / Monorepo

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

[results/js2023/language_pain_points] runQuery Issue: Field "nin" is not defined by type "StateOfJsYearsOfExperienceFilter". #395

Open wtlin1228 opened 1 week ago

wtlin1228 commented 1 week ago

Edition ID

js2023

Block ID

language_pain_points

Filters:

{
  "options": {
    "showDefaultSeries": false,
    "enableYearSelect": false,
    "mode": "grid",
    "queryOnLoad": false,
    "cutoff": 10,
    "cutoffType": "count",
    "limit": 20,
    "mergeOtherBuckets": false,
    "preventQuery": false
  },
  "filters": [
    {
      "year": 2023,
      "conditions": [
        {
          "fieldId": "years_of_experience",
          "sectionId": "user_info",
          "operator": "nin",
          "value": [
            "range_under_1",
            "range_1_3",
            "range_4_6"
          ]
        }
      ]
    }
  ]
}

Query:


query {
    surveys {
    state_of_js {
        js2023 {
        features {

        language_pain_points_1: language_pain_points {
            id

            freeform(filters: {user_info__years_of_experience:{nin:[range_under_1,range_1_3,range_4_6]}}, parameters: {cutoff:10,facetCutoff:10,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
    }
}

                    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
    }
}

                }
                }
            }
            }
        }
        }
        }
    }
    }
}

Location

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

Timestamp

Mon Jun 24 2024 23:13:26 GMT+0800 (台北標準時間)

Error:

  {
  "message": "Field \"nin\" is not defined by type \"StateOfJsYearsOfExperienceFilter\".",
  "locations": [
    {
      "line": 12,
      "column": 64
    }
  ],
  "extensions": {
    "code": "GRAPHQL_VALIDATION_FAILED"
  }
}