Skip to content

Conversation

@Jeet0105
Copy link

@Jeet0105 Jeet0105 commented Oct 15, 2025

Description

This PR fully implements the Question feature as described in Issue #6 .

Changes included:

  • Created Question Mongoose model with required fields, validations, and indexes.
  • Implemented addUpvote instance method for toggling upvotes.
  • Built questionController.js with all CRUD operations:
    • createQuestion
    • getAllQuestions (with filtering, sorting, pagination)
    • getQuestionById
    • updateQuestion
    • deleteQuestion
    • upvoteQuestion
    • getQuestionUpvotes
    • searchQuestions
    • getCategories

Closes #6

@Tirth9978
Copy link
Collaborator

@Jeet0105 , Your PR has conflicts that must be resolved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

backend/models/Question.js : Fully Implement the Question Mongoose Model

2 participants