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

GraphQL & beyond

GraphQL & beyond

Felipe Luiz Soares

November 17, 2018
Tweet

More Decks by Felipe Luiz Soares

Other Decks in Technology

Transcript

  1. +

  2. resolvers = { Query: { users: () => getUsers(), user:

    (_, { id }) => getUser(id), ???: () => fetch(‘api.com/top’) } }
  3. “data”: { users: [ { id: “1”, name: “Felipe Soares”,

    email: “[email protected]” } ] } query { users { id, name, email } }