From the course: Building a Server with TypeScript and GraphQL
Unlock this course with a free trial
Join today to access over 25,300 courses taught by industry experts.
Introduction to GraphQL
From the course: Building a Server with TypeScript and GraphQL
Introduction to GraphQL
- [Instructor] Now we're going to talk about GraphQL. Before we talk about how to write a server using TypeScript in GraphQL, let's go through a brief overview on GraphQL. GraphQL is a query and runtime language that is used in API development. Some of the key components of GraphQL is that it uses a schema definition language to describe the data structure and types available in the API. GraphQL also has efficient data functionality by allowing clients to only retrieve the data that they need. This reduces the amount of data transferred over the network. GraphQL supports subscriptions which allow clients to receive real-time updates when their data changes. While GraphQL and SQL are both used for managing and querying data, they have some distinct differences. SQL is a query language used for managing relational databases and follows a tabular structure. GraphQL, on the other hand, is a query language for APIs and represents data in a hierarchal structure using a graph like schema. In…