beeman‎.‎dev | Add GraphQL CRUD to a NestJS API - Building the BEEHIVE Platform with BEEMAN.DEV - BLS002 @beeman-dev | Uploaded September 2020 | Updated October 2024, 6 minutes ago.
In this live video you will learn How to Add Graph CRUD to a NestJS API. We are Building the BEEHIVE Platform with BEEMAN.DEV - BLS002. I hope this video will help you much. If this video give some value to you then please smash the like button to push me in YouTube algorithms and if you are new to my channel then please subscribe tp stay updated! Thanks
💡 Subscribe to get all updates: 👉bit.ly/3fR8Exo
Feel free to ask any questions in the commands! Also, feel free to share any useful timestamps I can list here!
Timestamps
[0:00] Introduction
[3:04] Create course library.
[4:09] Define fields for Course and Lesson models.
[6:00] Import CourseModule in AppModule.
[7:26] Implement the Course model.
[9:15] Implement the Lesson model.
[10:14] Define Lessons relation on the Course model.
[11:57] Create the CourseResolver.
[13:09] Implement the 'courses' Query.
[13:58] Provide the CourseResolver in the CourseModule.
[14:34] Fix the error "Cannot determine a GraphQL output type for the 'lessons'".
[15:05] Verify that the courses endpoint got added.
[15:50] Implement the 'course' Query.
[16:38] Fix the error "Cannot return null for non-nullable field Query.course".
[17:15] Add an argument to the 'course' Query .
[18:50] Implement the CourseService.
[22:00] Implement the 'createCourse' Mutation.
[22:51] Implement the 'CreateCourseInput' DTO.
[24:50] Implement the 'createCourse' method in the CourseService.
[25:49] Test the 'createCourse' Mutation.
[27:36] Implement the 'UpdateCourseInput' DTO.
[28:14] Implement the 'updateCourse' Mutation.
[29:11] Implement the 'updateCourse' method in the CourseService.
[30:49] Test the 'updateCourse' Mutation.
[31:40] Implement the 'deleteCourse' Mutation.
[32:35] Implement the 'deleteCourse' method in the CourseService.
[34:22] Test the 'deleteCourse' Mutation.
[37:10] Add Lessons to the dummy data
[39:25] Create the LessonResolver.
[41:26] Implement the 'CreateLessonInput' and 'UpdateLessonInput' DTOs.
[42:11] Implement the 'createLesson' Mutation and method in the LessonService.
[48:14] Test the 'createLesson' Mutation.
[49:18] Implement the 'updateLesson' Mutation and method in the LessonService.
[53:58] Test the 'updateLesson' Mutation.
[55:16] Implement the 'deleteLesson' Mutation and method in the LessonService.
[56:45] Test the 'deleteLesson' Mutation.
[57:57] Review what's been done in this stream.
In this Live Stream we add GraphQL CRUD endpoints to the NestJS API in Nx Workspace - BLS002
🤓 You can find the repo here: github.com/beeman/beehive
Follow me on Dev: dev.to/beeman
Follow me on GitHub: github.com/beeman
Follow me on Twitter: twitter.com/beeman_nl
#BEEMANDEV
In this live video you will learn How to Add Graph CRUD to a NestJS API. We are Building the BEEHIVE Platform with BEEMAN.DEV - BLS002. I hope this video will help you much. If this video give some value to you then please smash the like button to push me in YouTube algorithms and if you are new to my channel then please subscribe tp stay updated! Thanks
💡 Subscribe to get all updates: 👉bit.ly/3fR8Exo
Feel free to ask any questions in the commands! Also, feel free to share any useful timestamps I can list here!
Timestamps
[0:00] Introduction
[3:04] Create course library.
[4:09] Define fields for Course and Lesson models.
[6:00] Import CourseModule in AppModule.
[7:26] Implement the Course model.
[9:15] Implement the Lesson model.
[10:14] Define Lessons relation on the Course model.
[11:57] Create the CourseResolver.
[13:09] Implement the 'courses' Query.
[13:58] Provide the CourseResolver in the CourseModule.
[14:34] Fix the error "Cannot determine a GraphQL output type for the 'lessons'".
[15:05] Verify that the courses endpoint got added.
[15:50] Implement the 'course' Query.
[16:38] Fix the error "Cannot return null for non-nullable field Query.course".
[17:15] Add an argument to the 'course' Query .
[18:50] Implement the CourseService.
[22:00] Implement the 'createCourse' Mutation.
[22:51] Implement the 'CreateCourseInput' DTO.
[24:50] Implement the 'createCourse' method in the CourseService.
[25:49] Test the 'createCourse' Mutation.
[27:36] Implement the 'UpdateCourseInput' DTO.
[28:14] Implement the 'updateCourse' Mutation.
[29:11] Implement the 'updateCourse' method in the CourseService.
[30:49] Test the 'updateCourse' Mutation.
[31:40] Implement the 'deleteCourse' Mutation.
[32:35] Implement the 'deleteCourse' method in the CourseService.
[34:22] Test the 'deleteCourse' Mutation.
[37:10] Add Lessons to the dummy data
[39:25] Create the LessonResolver.
[41:26] Implement the 'CreateLessonInput' and 'UpdateLessonInput' DTOs.
[42:11] Implement the 'createLesson' Mutation and method in the LessonService.
[48:14] Test the 'createLesson' Mutation.
[49:18] Implement the 'updateLesson' Mutation and method in the LessonService.
[53:58] Test the 'updateLesson' Mutation.
[55:16] Implement the 'deleteLesson' Mutation and method in the LessonService.
[56:45] Test the 'deleteLesson' Mutation.
[57:57] Review what's been done in this stream.
In this Live Stream we add GraphQL CRUD endpoints to the NestJS API in Nx Workspace - BLS002
🤓 You can find the repo here: github.com/beeman/beehive
Follow me on Dev: dev.to/beeman
Follow me on GitHub: github.com/beeman
Follow me on Twitter: twitter.com/beeman_nl
#BEEMANDEV