
This video will give you an overview about the course.
The goal for this video is to answer the questions like What is GraphQL? What problems does solve? How is different than REST?
• Define GraphQL
• Visualize the difference between REST and GraphQL
• A diagram showing the two protocols REST and GraphQL
The goal of the video is to initialize a simple node application and execute the first GraphQL query.
• Create a Node app with all the dependencies. Write GraphQL schema and a query
• Execute execute the GraphQL query
• The user now knows the basic packages/ software needed to get started with GraphQL
This video will cover the steps of passing arguments to the queries.
• Add arguments to the schema and resolvers
• Add an argument to a query
• The user now knows how arguments are declared,accessed, and passed in GraphQL
To get familiar with the five scalar GraphQL types: enums, type modifiers lists, and non-nullsuser defined types.
• Visually declare all types in a query visually add type modifiers in a query visually create user defined object type
• After the visual presentation implement all the knowledge in a Node.js app
• The user will have a pretty good understanding of the GraphQL scalar,enum, and user defined types and how type modifiers work
What are mutations? How can we create them in the schema and the resolvers? How can we execute them? How to pass variables to the queries?
• Visually show how mutations looks like and how variables are created
• After the visual representation implement it hands-on in an application
• The user will have a very clear Idea of how mutations work in GraphQL and how variables are passed in queries and mutations
How can we host own GraphQL endpoint? What packages we need to do that? How can we use the in-browser GraphQL IDE?
• Create a GraphQL HTTP server with Express.js by modifying a copy of previous application
• Execute queries and mutations in the GraphQL IDE and explore the functionality of it
• In this final video the user should be able to build a GraphQL application by defining schema, resolvers, queries/mutations using variables,and know how to serve it with HTTP
A basic installation of Apollo Server, by installing the required packages and refactoring an existing application.
• Install the packages and define the resolver maps
• Once all the packages are installed and the server is configured, the user should be able to query it
• Run queries and mutations in the Apollo Server Playground
What is the context and what is the use for it? How create a synchronous and asynchronous context? How to pass it from the server to the resolvers? External data sources.
• Visually show how the context is added to the server
• Create a copy of an existing app and add a context functionality
• Create a basic web server and add the apollo-datasource-rest package to query the external endpoint
Add another data source to create many-to-many relationship. Present the data source as a graph and show how GraphQL executes that graph.
• Show all the steps visually, schema definition, the changes in the resolvers
• Show the graph and walk through the steps that GraphQL takes to execute a query
• Refactor an existing app. And demonstrate the relationships with queries in the Apollo Playground
How can we add a subscription event pattern to our GraphQL server. With provided by Apollo Server PubSub engine we can easily add that functionality
• Add the Subscription type to the Schema
• Modify the an existing Mutation
• Add a Subscription resolver and test the subscription in the Apollo Playground
Modular development of GraphQL Schema and Resolvers using the GraphQL-tools package, to provide a more agile development
• Show visually how schema can be defined using the tools, and how resolver maps can be broken down
• Split an existing Schema on smaller pieces. Split the resolver map into two objects
• Create another Schema and merged with the existing one. Test the result in the Playground by running queries
Getting started with the React integration of Apollo Client
• OR
• Install all packages, bootstrap a Apollo GraphQL app using create-react-app tool.
• Install all the dependencies and tools needed
• Add a GraphQL server to the front-end React App
• Run both the server and the client concurrently and send the first query from the browser to the server
Working with Apollo Client Provider/Consumer without understanding the Provider/Consumer pattern can be confusing. This video will solve that problem by creating step by step Provider, Consumer and HOC from scratch
• Create React Provider and Consumer using the React Context API
• Pass Apollo Client to the any child component using a HOC
• Send GraphQL query to the server from the child component using the two versions the Consumer and HOC
Here the user will learn how the Apollo Provider and Consumer work. Also will get familiar with the withProvider HOC from the react-apollo package
• Reafactor the previous application to user the Apollo Provider and Consumer
• Pass the Apollo Client as a prop using the withProvider
• Lean how to pass variables to the queries
Learn how to use the two Query and Mutation components provided by react-apollo package
• Add a Query component to the existing applicant and learn what props are needed to have a basic query
• Using the mutate method from the Apollo Client , send mutation to the server
• Add the Mutation Component to send mutation to the server
Learn how the data is cached on the client(browser) Implement polling to automatically re-fetch the latest updates from the server
• Add a query on the server to fetch all the records
• Implement polling in a Query component
• Add start and stop polling buttons to demonstrate the polling
Implementing a real-time query functionality in our full-stack GraphQL apps requires using more advance apollo-client instead of apollo-boost. In this video the user will learn what packages are configurations are needed on both client and server
• List the differences between apollo-boost and apollo-client. Migrate with the minimum boost to the client
• Install and configure apollo server to add websocket listeners
• Have the application fully migrated to apollo-client ready to be realtime
The Query component comes with realtime subscriber and also apollo-react has a Subscription component that can be used to render data in real-time
• Overyview of the subscribeToMore function, How it works?
• Add it subscribeToMore to the existing application
• Implement real-tie with the Subscription component, and have both components in showing real-time updates
Adding a global local state is necessary in complex applications. The video will show how we can use GraphQL to manage that state
• Overview of global store and why we need it
• Create a simple counter app to demonstrate the access to the Apollo Client cache/store
• Add store update to a Mutation component to demonstrate the use of read and write queries locally
In this video, you’ll learn about the course summary of the course
Overview of the each section
GraphQL, an API query-language from Facebook, is designed to illustrate the complex, nested data dependencies of modern web applications. It is quickly becoming the standard for API development and is touted as a game-changer in years to come. React is one of the most popular JavaScript frameworks used to build scalable frontend applications.
This course is a hands-on guide that will help you build strong full-stack applications using React and Apollo GraphQL platform. The course starts with Hello World in GraphQL and in a step-by-step manner progressively introduces advanced topics covered with theoretical and practical examples.
You'll cover challenges and problems and fix them via GraphQL's unique features. By the end of the course, you’ll be able to make architectural and design decisions for your application’s API.
By the end of the course, you will be proficient in using GraphQL and React to all your full-stack development requirements.
About the Author
Dobrin Ganev is a software developer with years of experience working in various development environments, ranging from finance to business process management. In recent years, he has focused on geospatial development and data analytics using languages such as JavaScript, Python, Scala, and R. He has extensive knowledge of open source geospatial and the ESRI platform. Currently, he focuses on big data and its applications across broad industries and sectors. Founded in 2015, chorStream Inc. is a software development firm centered around using big data and big data technologies to help clients work with and leverage large and diverse volumes of data. Dobrin, as a co-founder of chorStream Inc, has worked with an accomplished team of professionals to create and bring to market an application framework (similar to a web app builder) that end users can use to build custom and focused applications without needing any development skills. He is also skilled in Node.js, Meteor, front-end React, and Angular 1, 2, and 4.