How to create a simple GraphQL API and expose a query in Node.js using Nest.js
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 https://courses.dlighthouse.co/courses/how-to-create-a-simple-graphql-api-in-node-js-using-nest-js Subscribe for more tutorials about Adobe Experience Manager, docker, Keras, and tensorflow.js: https://www.youtube.com/c/ManuelGutierrez?sub_confirmation=1 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: https://www.buymeacoffee.com/ManuelGutierrez 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:34 Configure tsconfig.json to allow JSON files 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: https://youtu.be/WfQenxcQj3Q Watch next Javascript Destructuring assignment https://youtu.be/-Qwj7wXeGBI JavaScript ES6 Features - Computed Property Names https://youtu.be/Gq6nXkaxCxI Creating a Reactjs Component that Renders Nested Children Components Inside https://youtu.be/NkS8m4q_duE Creating a Reactjs Component Using the Styled Components Library https://youtu.be/LTL_OPkGAKY Recommended Playlist Tensorflow.js Basics https://www.youtube.com/playlist?list=PLmkVsLP-rp86vgTiqc4xugipa5tE096YI Adobe Experience Manager https://www.youtube.com/playlist?list=PLmkVsLP-rp87Gu0hoJgwIz9g36e6pUmgw Let’s connect: Twitter – @drginm (https://twitter.com/drginm) LinkedIn – https://www.linkedin.com/in/drginm
Download
1 formatsVideo Formats
Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.