Devographics / Monorepo

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

[New Feature] question.editions field #415

Closed SachaG closed 1 month ago

SachaG commented 2 months ago

Add a new question.editions metadata field that lists all survey editions a specific question appears in.

SachaG commented 2 months ago

Done. For example on https://graphiql.devographics.com/ try the following query:

query MyQuery {
  entity(id: "subgrid") {
    id
    name
    appearsIn {
      survey {
        name
      }
      edition {
        year
      }
      section {
        id
      }
      question {
        id
      }
      as
    }
  }
}

(note that currently this does not give you access to the results of the survey, you still have to go through the surveys > etc. branch of the graph for that)