Question¶
- class database.service.question.QuestionService¶
Class that provide services for question database operations
- create(db: Session, obj_in: QuestionCreate, embed: Tuple[bool, bool] | bool = False)¶
Create a new question object in the database
- Parameters:
db (Session) – Database session
obj_in (QuestionCreate) – Pydantic schema
embed (Tuple[bool, bool], optional) – Whether question and/or answer should be embedded