Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Graphql a goodbye to massive datas, the basic w...

Graphql a goodbye to massive datas, the basic what you need to know

Avatar for Tauan Tathiell

Tauan Tathiell

October 17, 2018

Other Decks in Technology

Transcript

  1. A goodbye to massive datas, the basic what you need

    to know Tauan Tathiell de Aleluia Camargo Helio Vitorino Soares Junior
  2. About us Tauan Tathiell / @lukyhenson ➢ Developer at Codeminer42

    Helio S. Junior / @hjJunior ➢ Developer at Codeminer42
  3. VS

  4. REST: Representational State Transfer • History • Architecture Model •

    Resources based in endpoints(URL’s) • Works with the HTTP verbs [GET, POST, PUT, PATCH, DELETE]
  5. Was created by Roy Fielding and he defended the REST

    pattern on his doctorate degree in 2000, but REST has been developed in between 1996 - 1999. HIstory
  6. query It expect to get information Mutation It expect to

    make changes Subscription Websocket to real time changes
  7. Getting started A simple example of fetch { myShop {

    name location { city address } products(orderby: POPULARITY) { name price } }
  8. The result One endpoint | One fetch { "myShop": {

    "name": "Full Stack Fest Shop", "location": { "city": "Barcelona", "address": "Av. Diagonal 547" }, "products": [ { "name": "Conferece Ticket", "price": 5000.99 }, { "name": "Cool T-Shirt", "price": 2000.10 } ] }