links: GraphQL MOC


GraphQL is good because

  • You don’t have to guess api response. there is a contract between backend and client
  • Formal specification on how to do things which rest-api lacks
  • Meaningful discussions on api request and response
  • Single network hop (one api endpoint is all you need)
  • Selective data requests (can select what fields you need in response)
  • Merge multiple data sources
  • Code generation

tags: graphql , rest-api