DEV Community

Discussion on: Algebraic data types in SQL

Collapse
 
koredefashokun profile image
Oluwakorede Fashokun

In the case of multiple-choice questions, I plan to store the questions, choices and answers. In every other case, just questions and answers. Since I'm using Hasura, it really has to be type-safe, to make sure there are no surprises or edge cases when parsing.