GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - datenguide/datenguide-api: datenguide GraphQL API Server

BranchesTags
Open more actions menu

Latest commit

 

History

240 Commits
240 Commits

Folders and files

NameName
Last commit message
Last commit date
config
config
 
 
docs
docs
 
 
public
public
 
 
src
src
 
 
.editorconfig
.editorconfig
 
 
.env.sample
.env.sample
 
 
.gitignore
.gitignore
 
 
.npmignore
.npmignore
 
 
.travis.yml
.travis.yml
 
 
CHANGELOG.md
CHANGELOG.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
app.json
app.json
 
 
package.json
package.json
 
 
schema.json
schema.json
 
 
yarn.lock
yarn.lock
 
 

Repository files navigation

datenguide-api

Build Status

Datenguide API server

About

This project uses Feathers. An open source web framework for building modern real-time applications.

Getting Started

yarn install
yarn dev

Using the API

Try the GraphQL playground: https://api.datengui.de/graphql

Query for a single region:

{
  region(id: "11") {
    id
    name
    WAHL09(year: 2017, PART04: CDU) {
      year
      value
      PART04
    }
  }
}

Query across all regions:

# default page size is 10 , maximum page size is 1000
# ⚠️ pagination starts a 0

{
  allRegions(page: 0, itemsPerPage: 10) {
    regions(parent: "11") {
      id
      name
      WAHL09(year: 2017, PART04: B90_GRUENE) {
        value
        year
        PART04
      }
    }
    page
    itemsPerPage
    total
  }
}

Using argument arrays:

{
  region(id: "11") {
    id
    name
    WAHL09(year: [2012, 2017], PART04: [DIELINKE, SPD]) {
      year
      value
      PART04
    }
  }
}

Using argument filters:

# ⚠️ Filter arguments are currently Strings, not Enum Values
# if filters and regular arguments for a value attribute are both present, their results will be merged with 'or'

{
  region(id: "11") {
    id
    name
    WAHL09(year: 2017, filter: { PART04: { nin: ["AFD", "CDU"] } }) {
      year
      value
      PART04
    }
  }
}

General remarks

nuts only goes from 1-3, 'Gemeinden' can be selected with lau=1 or lau=2. Currently they both return the same thing: everything below nuts level. (because lau=1 is not implemented yet).

License

Copyright (c) 2016

Licensed under the MIT license.

About

datenguide GraphQL API Server

Resources

Readme
MIT license
Activity
Custom properties

Stars

11 stars

Watchers

3 watching

Forks

1 fork
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.