Skip to content

Create a generalized database access interface #2

@ColinT

Description

@ColinT

Currently, the data is retrieved from an object that stubs the original mongoose data access functions.

Instead, we should use our own data access interface which can be implemented for any database.

e.g.:

interface QuestionDatabase {
  getRandomQuestion: () => Question;
  getQuestionById: (id: number) => Question;
  // ... etc.
}

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions