Cap Collectif Developers - GraphQL API

Look up proposals

Looking up steps with proposals is not yet available on our public API.

But don't worry, we wrote this interactive guide to give you all the information that you need !

Interactive section

The following query looks up the "Consultation sur le quartier de la gare (scénario 1 - boîte à idées lancement juillet) - Proposez vos idées pour le réaménagement de la gare" step, finds the first 10 proposals, and returns each proposal's title, body, author username and responses with question title:

{
  node(id: "Q29sbGVjdFN0ZXA6NzJhZjRlNTItOTQwNy0xMWU5LWFiZGMtMDI0MmFjMTEwMDA3") {
    ... on CollectStep {
      proposals(first: 10, after: null) {
        totalCount
        edges {
          node {
            title
            body
            author {
              username
            }
            responses {
              question {
                title
              }
              ... on ValueResponse {
                value
              }
            }
          }
        }
      }
    }
  }
}