question.db.ts 193 Bytes
Newer Older
Jiwon Yoon's avatar
Jiwon Yoon committed
1
2
3
4
import { Question, IQuestion } from "../models";

export const createQuestion = async (question: IQuestion) => {
  const newQuestion = await Question.create(question);
Jiwon Yoon's avatar
Jiwon Yoon committed
5
  return newQuestion;
Jiwon Yoon's avatar
Jiwon Yoon committed
6
};