GraphQL and Apollo with Android: From Novice to Expert

Video description

Build modern, flexible, and extensible APIs with GraphQL and Apollo

About This Video

  • Gain proficiency in creating APIs with GraphQL and Apollo
  • Build an Android client app from scratch with Apollo
  • Understand development in the front-end and back-end

In Detail

GraphQL is the new way of building scalable and reliable APIs that any client can consume. This course will get you up and running with GraphQL quickly, providing you the core knowledge you need to build GraphQL APIs and deploy them remotely. You will also be able to incorporate Apollo middleware so you can consume the data in Android applications quickly.

The course begins by helping you understand why GraphQL is the ideal way to build robust APIs. You will explore the fundamentals and basics of GraphQL - scalable types and schemas. In addition to this, you will gain a deep understanding of what Graph in GraphQL means. As you progress, you will learn how to set up the server-side code with Node and Express, and JavaScript, along with MongoDB Collections. The course will also focus on GraphQL queries and mutations, along with creating relationships between your data objects.

By the end of this course, you will have the skills you need to create GraphQL APIs confidently and tie them up with a web or Android client.

Publisher resources

Download Example Code

Table of contents

  1. Chapter 1 : Introduction
    1. Welcome to the Course 00:02:55
  2. Chapter 2 : Why GraphQL – GraphQL vs REST
    1. GraphQL - What is it? Why GraphQL? 00:07:23
    2. GraphQL Who Created it? 00:04:02
    3. GraphQL - Overview and Graph Theory 00:08:07
    4. Demo - GraphQL Quick Demo 00:08:23
  3. Chapter 3 : Getting Started with GraphQL, Server Side and Development Environment Setup
    1. Section Introduction 00:02:49
    2. Development Tools to Install - Cmdr, VSCode and Nodejs 00:07:37
    3. Understanding the basics of the IDE - Extensions, Keyboard Shortcuts 00:04:47
    4. Setting up Our First Project 00:09:06
    5. Install NodeJS and Express 00:05:08
    6. Installing GraphQL and Express 00:10:12
    7. Creating and Understanding Schemas 00:10:46
    8. Creating Our Very First GraphQL Query and RootQueries 00:15:53
    9. The Resolve Method - Returning Data back 00:10:14
    10. Adding a Hobby Type and RootQuery 00:08:30
    11. Adding the Post Type 00:08:40
    12. Adding Relationship between Types 00:05:22
    13. Showing Users Relationship 00:10:45
    14. User Type Relationship to Hobby 00:05:42
    15. Posts Query 00:07:38
    16. Hobbies Query - Adding Fields 00:04:03
  4. Chapter 4 : GraphQL – Core Concepts - Mutations
    1. Introduction to Mutations in GraphQL 00:01:38
    2. Creating a User with Mutations 00:11:42
    3. Creating a Post with Mutations 00:06:38
    4. Creating a Hobby with Mutations 00:07:54
    5. Adding a Post Query 00:06:05
    6. Post and Hobby Queries 00:04:55
  5. Chapter 5 : GraphQL - Types
    1. Understanding GraphQL Scalar Types - Part 1 00:10:58
    2. GraphQL - Types - Non Nullables 00:04:03
    3. GraphQL - Scalar Types and Object Types 00:08:43
  6. Chapter 6 : Connecting to an External Database - MongoDB
    1. MongoDB and Relational Databases - Presentation 00:09:17
    2. Creating an mLab - MongoDB Account 00:05:54
    3. Installing Mongoose Package and Connecting 00:06:18
    4. Creating Mongoose Models - User Model 00:09:13
  7. Chapter 7 : GraphQL – Intermediate Concepts - Mutations
    1. Mutation in GraphQL - Updating a User Type 00:14:41
    2. Mutation in GraphQL - Updating a Post and Hobby Types 00:12:16
    3. Mutation in GraphQL - Removing a User Type 00:05:33
    4. Mutation in GraphQL - Remove Mutation - Final 00:06:31
  8. Chapter 8 : Deploying Our Project to Heroku
    1. Introduction to Remote Servers 00:02:24
    2. Deploying our Node GraphQL App to Heroku 00:18:58
    3. Using Prisma Playground 00:06:45
  9. Chapter 9 : Building the Android GraphQL Client App
    1. Learning Path 00:02:53
    2. About Apollo and the Documentation 00:06:24
    3. Adding Apollo Dependencies to Android Studio 00:08:13
    4. Generating the JSON Schema File 00:07:04
    5. Android Apollo Project File Structure 00:11:39
    6. Setting up Apollo Project and Getting GraphQL Data 00:15:48
    7. Fetching More Data and Showing on the Screen 00:09:36
    8. Setting up Android Client's App User Interface - Row Cell 00:12:18
    9. RecyclerView Adapter 00:10:39
    10. Finalizing Our Recyclerview Adapter 00:12:50
    11. RecyclerView Adapter - Final 00:10:29
    12. Showing List of Users on Screen 00:12:14
    13. Creating UI for Details Screen 00:14:02
    14. Passing Data to Details Activity 00:11:47
    15. Restructuring Details View 00:06:55
    16. Apollo and Gradle Gotchas and FIXES! 00:06:39
    17. Showing Users Hobbies and Posts 00:21:00
    18. Creating Details RecyclerView - Part 1 00:13:29
    19. Setting up Details Activity Adapter 00:13:15
    20. Finalizing Details Screen (Activity) 00:05:13
  10. Chapter 10 : Building the Android GraphQL Client App - Continuation
    1. Fixing the User Filtering Process 00:10:36
    2. Hide View if No Hobbies or Posts Found 00:10:06
    3. Setting up Add User Activity 00:10:31
    4. Setting up Mutation Classes 00:09:04
    5. Adding a User 00:15:29
    6. Finalizing Adding User, Hobbies and Posts 00:16:06
  11. Chapter 11 : Update and Delete – Android Apollo Client App
    1. Setting up UI for Updates 00:10:31
    2. Updating a User 00:08:01
    3. Updating a User - Final 00:10:29
    4. CHALLENGE: Implement Save Hobby and Save Post 00:01:04
    5. Finish Adding Post and Hobby 00:09:33
    6. User Interface for Delete Mutation 00:11:43
    7. Delete User - Congratulations - Finished App 00:14:40
  12. Chapter 12 : Wrap-up
    1. Course Round-up 00:02:42

Product information

  • Title: GraphQL and Apollo with Android: From Novice to Expert
  • Author(s): Paulo Dichone
  • Release date: May 2020
  • Publisher(s): Packt Publishing
  • ISBN: 9781800564626