GraphQL 101

Kasun Vithanage

query Content {

   theProblem

   whatIsGraphQL

   handsOnExperience

   bestPractices

   errorHandling

   notASilverBullet

   conclusion

}

theProblem

RESTful APIs

  • Defines fine-grained resources
    • POST /api/user will create a new user
    • GET /api/user/:userId will fetch the user
  • Naming conventions can be non-intutive
  • Depending on your situation, you might do under fetching or over fetching
  • This leads to multiple roundtrips toward server
  • This makes its hard to evolve an API

This is a serious issue for mobiles

Facebook introduced GraphQL

So

whatIsGraphQL

It's a Query Language

for your Data

Title Text

Subtitle

GraphQL 101

By Kasun Vithanage