Step into GraphQL, the new way of querying data to servers

Target audience

  • Web and mobile developers
  • Back end developers
  • Developers dealing with (REST) API, both consumer and provider side
  • Developers dealing with legacy web servers or multiple sources of info/data

What you’ll learn

  • What is GraphQL and what advantages it could provide over classic REST/webservice approach
  • How to use GraphQL on client/consumer side to optimize data requests to server
  • How to use GraphQL on server/provider side to build up an effective infrastructure

Description

If we wanted to summarize in a single sentence the potentialities offered by GraphQL, this sentence would certainly be "What you ask is what you get". Developers accustomed to interacting with traditional REST architectures or, more generally, services and APIs for the recovery of structured data, know that it is often necessary to manipulate the data returned from the various endpoints consulted in order to obtain the exact desired information. Moreover, assembling all this data into one place could require multiple round trips to the server(s), which risks making end users experience slow and poor, especially on mobile side.

GraphQL is a query language for API -- and of course a runtime for fulfilling those queries with your existing data and the related runtime -- that enables clients to ask only and exactly the data they need and nothing more.

Developed internally by Facebook engineering team to solve this kind of issues, GraphQL was released open source few years ago and it's gaining more and more popularity among mobile and web developers. GraphQL embraces modern trends on how applications are built, where you may have only one back end application and multiple, different clients (web browsers, mobile apps, IoTs, ...) with different capabilities and features.

In short, in GraphQL you have a single smart endpoint where you send all your customized "declarative" data queries. This endpoint acts like a single source of truth to all connected applications and will handle the actual retrieval (and caching) of data and will build the exact and customized response of your query.

In the following videos will be explained basic concepts of GraphQL such as queries, schema, and resolvers, the general client-server architecture, the great powers and the responsibilities on front end/client side, and the advantages in maintenance and multiple provider aggregation on back end/server side.

Course section

Sign in to access a course section

Unlock the courses. Sign in our platform. It's free :)

sign up free
Course features
  • watch_laterDuration
    2h 16m
  • bookmarkCategory
    Front-End
  • languageLanguage
    English
  • gradeSkill
    Beginner