O GraphQL resolve!! (Parte I)

João Pedro || Zero
Mar 9, 2018 · 5 min read
GET /api/escolas?cidade=saopaulo
GET /api/alunos?escola=pedrosegundo
GET /api/alunos?id=1
GET /api/escolas?id=2

Vamos ao código

npm install express graphql apollo-server-express — save

Criando os Tipos

server.js
Apollo Engine

Conclusão

Fontes:

João Pedro || Zero

Written by

Historias rápidas sobre coisas simples que me ensinaram de forma pratica sobre ser o Zero

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade