
In this video, we will first create a server folder and install the necessary package such as graphql express and apollo-server-express. We will also test the graphql with simple Query to return a string.
In this part, we are going to extract the typeDefs and Resolvers to two separate files. Then we will test a simple query
In this video, we are going to create a model with Mongoose which is used to create and reading documents in MongoDB later.
In this video, we are going to connect our project to the MongoDB
In this part, we are going to create the Query in graphql to fetch the data (todo lists) from the MongoDB
In this part, we are going to create todo by mutation
In this part, we are going to get the single todo from MongoDB with graphQL. It will return that specific todo if we pass the id to the function.
In this part, we are going to delete the todo by providing the id with mutations
In this part, we will pass the id and also the updated value to update the todo inside MongoDB with graphql.
After finishing the server side, we start to create the client side. So this part we focus on creating a react app and add the Bootstrap to the app.
In this part, we are going to add bootstrap to our form so the app look more beautiful.
In this part, we are going to copy the listgroup items from Bootstrap to our React App.
In this part, we are going to install the apollo client and also the graphql to our react app.
In this part, we just make two files inside the graphql folder, one is Mutation.js and the other is Query.js. Here we create a very simple query to get all the todos in display inside the console.
Last part, we already can see the todos data, this part we are going to render the todo lists
In this part, we are going to extract the form and the todo item into separate react components.
In this part, we are going to use the useMutation to create addtodo function, after create a new todo, we will use refetch queries to get all the updated todo list.
In this part, we will pass the id to the function to delete the specific todo with mutation.
In this part, we are using the useRef to help to define which area we want to detect. If the user is inside the input area, it will display "inside the input area" in developer console.
In this part, we are going to store the selected id with React Context.
In this part, we are going to change the ui according to the change of the value of the selected id.
In this part, we are going to update a specific todo.
Do you want to learn to implement GraphQL, React, Express, NodeJS and MongoDB in one project?
Why we need GraphQL?
The fact that clients can receive exactly the data they need from the API is frequently mentioned as a major benefit of GraphQL by developers. They are no longer reliant on REST endpoints that return predetermined and inflexible data structures. Instead, the client has control over the shape of the API response objects.
Why choose ReactJS?
Facebook, Dropbox, Khan Academy, CodeAcademy, Netflix, Airbnb, PayPal, Walmart, Tesla Motors, IMDb, and more well-known companies and startups use React. React is used in a slew of well-known apps.
Why is this technology being used by so many excellent companies and startups? The answer is that it is unquestionably a high-quality frontend development tool.
Given that React is used by such well-known organizations as Facebook and PayPal, it must be a very helpful library.
Why learn NodeJS?
Node. js may easily be used as a server-side proxy, handling a huge number of concurrent connections in a non-blocking manner. It's particularly handy for proxying various services with varying response times or collecting data from multiple sources.
What we will learn inside in this course?
We will create a Todo app which level up your skill on creating a CRUD app which is useful for building almost different types of app like social media app, which also need to know how to implement CRUD operations.
We will walk through
At the server side
Create NodeJS server and install necessary framework like Express and other dependencies
Create typedefs and resolvers files
Mongoose and Model Setup
Connecting to MongoDB
Fetch data with graphql
Create data(todo) using Mutations
Fetch a single data with Query
Delete a todo with Mutations
Update the data with Mutations
At client side
Create react app and add bootstrap
Install graphql and add custom CSS
Add Bootstrap list group
Install Apollo client
Create graphql query and mutation
Render todos
Extract React components
Create a new todo
Delete specific todo
using useRef to define area
use Context to store the selected Id
Change UI according to selected id
Update todo
Get single todo and fix bugs
It's the most up-to-date and entertaining GraphQL course on the market, and it's backed by a 30-day Udemy money-back guarantee.