-
Notifications
You must be signed in to change notification settings - Fork 10
Description
This goal of this project will be to let users post and retrieve comments on courses. This module creates 1 query and 1 mutation:
Features:
Query: Retrieve all comments for a specific course (Extra pod points: filter by user).
Mutation: Add a new comment for a course.
MongoDB Schema: Stores user comments with timestamps.
Structure:
📂 discussion/typedefs/discussion.ts – GraphQL schema
📂 discussion/controller.ts – Business logic
📂 discussion/resolver.ts – Connects GraphQL to controllers
📂 discussion/formatter.ts – Formats data for output
📂 packages/../models/Discussion.ts – MongoDB schema
Reference the backend module docs for more information on the file structure of a module!
Instructions on getting your local developer environment set up are on the docs
Do this in a branch off of the gql branch, and submit a PR once you are done, tagging this issue and adding @maxmwang, @abhisheksuresh2004, @ARtheboss , @adit-bala as reviewers.