GraphQL

GraphQL image
GraphQL is a query language for APIs.

GraphQL is an open-source data query and manipulation language for APIs, and a runtime for fulfilling queries with existing data. Unlike most query languages (such as SQL), you don’t use GraphQL to query a particular type of data store (such as a MySQL database). Instead, you use GraphQL to query data from any number of different sources. 

Developed GraphQL was developed internally by Facebook in 2012 before being publicly released in 2015 

Advantages of GraphQL: 
  • Apps using graphQL are fast and stable because GraphQL query return exactly what you need, Not More Not Less. 
  • REST APIs require loading from multiple URLs, GraphQL APIs get all the data your app needs in a single request. 
  • It allows developer to add new fields without impacting existing queries

Why it is important for a QA to know about GraphQL? 

As a QA we should be aware of new tools and technologies which are in high demand. GraphQL is quickly making its place in the industry. Several big companies like Facebook, GitHub, Airbnb, Atlassian, Paypal, Plural sight are listed as GraphQL customers on their Site.

What can we test in GraphQL
  • Schemas
  • Resolvers
  • Performance tests 
  • Static type checking 
  • Unit tests Integration tests 
  • End to End tests
  • Load testing
Explore MoT
Leading With Quality Lean Coffee image
Quality leadership conversations in a virtual lean coffee format
MoT Software Testing Essentials Certificate image
Boost your career in software testing with the MoT Software Testing Essentials Certificate. Learn essential skills, from basic testing techniques to advanced risk analysis, crafted by industry experts.
This Week in Quality image
Debrief the week in Quality via a community radio show hosted by Simon Tomes and members of the community
Subscribe to our newsletter
We'll keep you up to date on all the testing trends.