An open API service indexing awesome lists of open source software.

https://github.com/rodrigo-dev7/intro-gql

Indrodução ao GraphQL
https://github.com/rodrigo-dev7/intro-gql

gql graphql javascript

Last synced: 11 months ago
JSON representation

Indrodução ao GraphQL

Awesome Lists containing this project

README

          

# Introdução ao GraphQL

- O **GraphQL** é uma linguagem de consulta para APIs. O GraphQL fornece uma descrição completa e compreensível dos dados em sua API, oferece aos clientes o poder de solicitar exatamente o que eles **precisam e nada mais**, facilita a evolução das APIs ao longo do tempo e permite poderosas ferramentas de desenvolvedor.

- Query

![gql](https://user-images.githubusercontent.com/60434681/83362785-4e13c200-a36a-11ea-8d12-7ccd2acf7fcd.png)

- Mutation

![gql-mutation](https://user-images.githubusercontent.com/60434681/83362839-d2fedb80-a36a-11ea-8623-e85431da6895.png)

### Como Realizar Resquests
```
Toda request é POST
Toda request bate no MESMO endpoint (/graphql)

Query -> Obert informações (GET)
Mutation -> Manipular dados (POST/PUT/PATCH/DELETE)
Scalar Types -> String, Int, Boolean, Float e ID
```