Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

[DevDay2019] Layering GraphQL on top of existing infrastructure - By Phan Thanh Linh, Senior Software Engineer at CodeComplete Vietnam

23 views

Published on

This is a demonstration of how to layering GraphQL on top of existing infrastructure without rewriting any data layer. In this demonstration, you and me will build a simple GraphQL endpoint then try to layer it on top of several types of data access layer like Mysql DAL, ORM, Rest API, etc.

Published in: Technology
  • Be the first to comment

  • Be the first to like this

[DevDay2019] Layering GraphQL on top of existing infrastructure - By Phan Thanh Linh, Senior Software Engineer at CodeComplete Vietnam

  1. 1. LAYERING GRAPHQL ON TOP OF EXISTING INFRASTRUCTURE Linh Phan Senior Software Engineer CodeComplete Vietnam
  2. 2. Today ● What is GraphQL? ● Layering GraphQL on top of existing infrastructure ● Demonstration
  3. 3. What is GraphQL?
  4. 4. Designed to build Open sourced in 2015 Tool developed by
  5. 5. 01 Amet, consectetur adipiscing elit. Curabitur eleifend a diam quis suscipit. Class aptent taciti sociosqu ad litora torquent per conubia nostra. 03 Consectetur adipiscing elit. Curabitur eleifend lorem a diam quis suscipit. Class aptent taciti sociosqu ad litora torquent ipsum per conubia nostra.
  6. 6. Query Language a query language for your Database a query language for your API
  7. 7. Describe your data Ask for what you want Get predictable results TABLE users ( id int(10), name varchar(255) ) SELECT id, name FROM users WHERE id=1; id name 1 “Iron Man” type User { id: String name: String } query { user(id: "1") { id name } } "user": { "id": "1", "name": "Iron Man" } Query Language
  8. 8. Layering GraphQL on top of Existing Infrastructure
  9. 9. GraphQL MySQL GraphQL ORM GraphQL Rest API
  10. 10. Demonstration
  11. 11. References ● Demo source code ● Inspiring talk: Zero to GraphQL in 30 Minutes – Steven Luscher
  12. 12. Thank You!!!

×