
Install GraphQL with npm, set up an Apollo Server in a Node.js project, define a schema and resolver, and start the server on port 4000 to test a hello query.
Install mongodb on windows via on-premises setup, configure data folder and path, start mongod, then use the mongo shell to create a books collection and insert documents.
Install and launch MongoDB Compass, connect to localhost on port 27017, and explore a sample database with a books collection, including inserting documents.
Learn how to use MongoDB Compass to create a database and collections, insert, update, copy, and delete documents, switch between list and JSON views, and explore basic aggregation operations.
Learn to query MongoDB with find and projection to display only names, exclude _id, sort results, and apply skip and limit, including collation for language settings.
Learn to use MongoDB aggregation with the $match stage to filter user documents, insert dummy data from a REST API, and explore matching expressions.
Learn how to use MongoDB's $project stage to shape query results, selecting fields like name, email, phone, and website while optionally excluding _id in responses.
Learn how to use MongoDB's $addFields in an aggregation to extract nested fields from an object, such as geolocation data with latitude and longitude, into top-level fields.
Discover how to sort MongoDB data in ascending and descending order using 1 and -1, understand the default sort, and note that grouping is covered next.
Master MongoDB's $group to count documents by a field and return total counts per group. See how grouping by website produces entries with each site and its total count.
Define and export GraphQL resolvers to query articles from MongoDB, including find all and find by id, and extend with mutations for insert, update, and delete.
Learn to build a GraphQL server with Node.js and MongoDB using Apollo. Define schemas and resolvers, connect via Mongoose, and query articles by id.
Delete article data using GraphQL in a node.js and MongoDB setup by id with find-by-id and delete, returning no data; covers typedefs, resolvers, and a mongoose model.
You will learn the following things in the course:
Learn GraphQL API with Apollo Server in Node.js, Express, and MongoDB.
More and more teams are choosing GraphQL instead of (or along with) REST for their web APIs. GraphQL queries give clients great flexibility in the way they request data from the server, preventing issues such as fetching or under fetching of data, and allowing multiple resources to be retrieved in a single request.
In this course, you'll learn how to use GraphQL both on the server-side and in client applications through practical examples in the form of full-stack JavaScript applications. You will be introduced to all the main GraphQL concepts like schema definition, Queries, Mutations, and Subscriptions, as well as to solutions to common requirements such as handling authentication/authorization and client-side caching.
The examples use Apollo Server with Node.js and Express on the backend and Apollo Client with React on the frontend. The aim however is not just to cover specific GraphQL libraries, but to give you a more general understanding of the underlying concepts. For instance, Apollo Client is only introduced after learning how to write a simple client "by hand" to make sure you understand GraphQL over HTTP format.
Introduction to GraphQL
Core Concept of GraphQL
Project Creation
First GraphQL Demo
MongoDB complete course
Mongoose Model
TypeDef
Resolvers
GraphQL Server
GraphQL Insert
GraphQL Update
GraphQL Delete
This course assumes a good knowledge of modern JavaScript, and ideally some familiarity with Node.js/Express and React.