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

GraphQL como una nueva forma revolucionaria de pensar en las APIs!

GraphQL como una nueva forma revolucionaria de pensar en las APIs!

GraphQL es un lenguaje de manipulación y consulta de datos para las APIs desarrollado por Facebook, donde es una de las alternativas que han surgido para solucionar la mayor parte del problema de las tradicionales APIs RESTful, en donde no recibimos simplemente la información que necesitamos, sino todo el conjunto de datos relativos al resource alojado en esa URI, entonces

1. Como podemos utilizar Graphql en iOS?
2. Como usar Apollo iOS?
3. Que ventajas nos ofrece?

IOSdevelopersMx

April 15, 2019
Tweet

More Decks by IOSdevelopersMx

Other Decks in Technology

Transcript

  1. Others benefits Benefits of a Schema & Type System •

    Contract between the client and the server (SCHEMA). • The teams working on frontend and backends can do their work without further communication.
  2. Types type Person { name: String! age: Int! } type

    Post { title: String! author: Person! } type Person { name: String! age: Int! posts: [Post!]! }
  3. Realtime Updates with Subscriptions subscription { newPerson { name age

    } } { "newPerson": { "name": "Jane", "age": 23 } }
  4. Steps 1. Install the Apollo framework into your project and

    link it to your application target 2. Add a code generation build step to your target 3. Add a schema file to your target directory 4. Build your target 5. Add the generated API file to your target 6. Create .graphql files with your queries or mutations and add them to your target