How to create a simple GraphQL API and expose a query in Node.js using Nest.js

preview_player
Показать описание
If you want to create a simple GraphQL API following the code first approach using Nestjs but you don’t know where to start, in this quick tips episode, you will learn how.

Free Mini-Courses
Javascript Features Basics FREE Mini-Course

If you enjoyed my video and it helped you learning something new or solving a problem, and you would like to Buy me a coffee, you can do just that at:

00:00 Topics for the video
00:17 Channel Intro
00:41 What we will create for this video
01:01 Install the Nestjs CLI
01:16 Create a new app using the Nestjs CLI
01:24 Install required packages for GraphQL
01:45 Steps for creating the GraphQL API
02:23 Create a Nestjs module
02:33 Create an object type for the GraphQL API
03:10 Create a Nestjs service
03:17 The JSON file with the data for our app
03:23 Add a method to the service to return quizzes
03:44 Create a Nestjs resolver for exposing our GraphQL queries and mutations
03:51 Adding a simple query to the GrapQL API
04:14 Configure the GraphQL module
04:27 Start the server
04:30 Open the GraphQL playground in the browser
04:40 Type a simple query and execute it
04:59 Add some other fields to the query
05:09 Create a request in Postman
05:25 Configure it for GraphQL and test a query
05:39 Se the results
05:49 Query for more fields
06:01 Coming next!
06:13 Mini-Course

Share this video with a friend:

Watch next
Javascript Destructuring assignment

JavaScript ES6 Features - Computed Property Names

Creating a Reactjs Component that Renders Nested Children Components Inside

Creating a Reactjs Component Using the Styled Components Library

Recommended Playlist

Adobe Experience Manager

Let’s connect:
Рекомендации по теме
visit shbcf.ru