Description
In this course, you will learn:
- GraphQL—a query language for APIs that was originally built by Facebook—makes it easier for you to get the data you actually need from a query.
- How to get started with GraphQL. Instructor Emmanuel Henri walks through how to set up GraphQL, explores the GraphQL schema, and goes over the basic types and fields.
- How to set up persistence—including how to use SQL and Mongo DB with GraphQL; covers how to add new items with mutations; and shares how to leverage some advanced features in your queries.
Syllabus:
- Introduction
- Learn GraphQL essentials
- Course prerequisites
1. Setup and Introduction
- IDE and requires tools
- GraphQL overview
- Server setup with latest ECMAScript
- The initial GraphQL setup
- Basic GraphQL schema
2. Types and Schemas
- Object types and fields
- Query and mutation types
- What is the resolver and its role?
- Scalar types
- Enumeration types
- List of types inside another
- Using GraphQL tools
3. Setting Up Persistence
- Installing Mongo for GraphQL
- Final setup of Mongo with GraphQL
- Finalize the database connectors
- Data persistence with SQL
4. Mutations
- Add new items with mutations
- Update items with mutations
- Delete items with mutations
5. Queries in Depth
- Simple query with persistence
- Querying with arguments
- Querying with aliases
- Querying with fragments