Skip to content
This repository was archived by the owner on May 3, 2026. It is now read-only.

Latest commit

 

History

History
49 lines (40 loc) · 592 Bytes

File metadata and controls

49 lines (40 loc) · 592 Bytes

GraphQL

Notes on our usage of the GraphQL-based query API.

sample queries

go to '/graphql/' which opens the GraphiQL browser

gemeinden

{
  municipalities {
    edges {
      node {
        bfsNumber
        name
      }
    }
  }
}

The MunicipalityNode has the fields

  • id: ID!, The ID of the object.
  • name: String!
  • canton: MunicipalityCanton!, enum
  • bfsNumber: Int

snapshots

all

{
  snapshots {
    edges {
      node {
        id
        data
        slugHash
        screenshot {
          url
        }
      }
    }
  }
}