All Projects → matheusrocha89 → Graphql Camara Deputados

matheusrocha89 / Graphql Camara Deputados

Licence: mit
API GraphQL com os dados da câmara de deputados do Brasil

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Graphql Camara Deputados

Graphql Schema comparator
Get changes between two GraphQL schemas 🤖
Stars: ✭ 196 (-3.92%)
Mutual labels:  graphql
Data Curator
Data Curator - share usable open data
Stars: ✭ 199 (-2.45%)
Mutual labels:  open-data
Django Graphql Auth
Django registration and authentication with GraphQL.
Stars: ✭ 200 (-1.96%)
Mutual labels:  graphql
Nexus
Code-First, Type-Safe, GraphQL Schema Construction
Stars: ✭ 2,722 (+1234.31%)
Mutual labels:  graphql
Conventions
GraphQL Conventions Library for .NET
Stars: ✭ 198 (-2.94%)
Mutual labels:  graphql
Rails Devise Graphql
A Rails 6 boilerplate to create your next Saas product. Preloaded with graphQL, devise, JWT, CanCanCan, RailsAdmin, Rubocop, Rspec, i18n and more.
Stars: ✭ 199 (-2.45%)
Mutual labels:  graphql
Magda
A federated, open-source data catalog for all your big data and small data
Stars: ✭ 193 (-5.39%)
Mutual labels:  open-data
The Road To Graphql
📓The Road to GraphQL: Your journey to master pragmatic GraphQL in JavaScript
Stars: ✭ 203 (-0.49%)
Mutual labels:  graphql
Basically Fullstack Graphql
Code that aims to explain the client and the server side of using GraphQL in apps.
Stars: ✭ 199 (-2.45%)
Mutual labels:  graphql
Magellan
Real-time streaming GraphQL server for Go.
Stars: ✭ 202 (-0.98%)
Mutual labels:  graphql
Join Monster
A GraphQL to SQL query execution layer for query planning and batch data fetching.
Stars: ✭ 2,395 (+1074.02%)
Mutual labels:  graphql
Gramps Legacy
The core data source combination engine of GrAMPS.
Stars: ✭ 198 (-2.94%)
Mutual labels:  graphql
Express Graphql Boilerplate
Express GraphQL API with JWT Authentication and support for sqlite, mysql, and postgresql
Stars: ✭ 201 (-1.47%)
Mutual labels:  graphql
Crudl Example Express
CRUDL with Node/Express and MongoDB
Stars: ✭ 197 (-3.43%)
Mutual labels:  graphql
Graphql Doctor
Prevent Breaking Changes in a GraphQL API with GitHub Checks
Stars: ✭ 203 (-0.49%)
Mutual labels:  graphql
Relay Workshop
Material for my Relay Workshop
Stars: ✭ 197 (-3.43%)
Mutual labels:  graphql
Pudl
The Public Utility Data Liberation Project
Stars: ✭ 200 (-1.96%)
Mutual labels:  open-data
Graphql Parser
A graphql query language and schema definition language parser and formatter for rust
Stars: ✭ 203 (-0.49%)
Mutual labels:  graphql
Reason Urql
Reason bindings for Formidable's Universal React Query Library, urql.
Stars: ✭ 203 (-0.49%)
Mutual labels:  graphql
Djangochannelsgraphqlws
Django Channels based WebSocket GraphQL server with Graphene-like subscriptions
Stars: ✭ 203 (-0.49%)
Mutual labels:  graphql

GraphQL - Câmara dos Deputados

GraphQL API with data of the brazilian deputies chamber.

image

Purpose of the project

The purpose that motivated me to create this project is to make easier for developers to consume this data and create new apps (mobile, web, etc.) to deliver good information for citizens in Brazil or the world.

Original REST API doc

https://dadosabertos.camara.leg.br/swagger/api.html

Demo

Demo

Install

Install all the dependencies with: yarn

Run dev server

To run the server just run: yarn start:dev

Run production server

To run the production version of the server already transpiled and without the need of babel-node, follow these steps.

You just need to run one command and the transpiled code will be created on ./dist folder. And run the production code:

yarn start

If you just want to build the production mode you can just run:

yarn build

Some examples of queries

# List of deputies
query {
  deputados (first: 20, after: "MQ==") {
    pageInfo {
      endCursor
      hasNextPage
    }
    edges {
      cursor
      node {
        id
        siglaPartido
        urlFoto
      }
    }
  }
}
# Data from one deputy
query {
  deputado(id: "178912") {
    id
    nomeCivil
    cpf
    dataNascimento
    escolaridade
    municipioNascimento
    ufNascimento
    dataFalecimento
    sexo
    ultimoStatus {
      siglaPartido
      uriPartido
      urlFoto
      gabinete {
        andar
        email
        nome
        predio
        sala
        telefone
      }
    }
  }
}
# Expenses of a deputy
query {
  deputadoDespesas(id: "178912", after: "MQ==", first: 15) {
    pageInfo {
      endCursor
      hasNextPage
    }
    edges {
      cursor
      node {
        ano
        valorDocumento
        valorLiquido
        cnpjCpfFornecedor
        dataDocumento
        tipoDespesa
        urlDocumento
      }
    }
  }
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].