jwpf100 / node-blog

Blogging App - CRUD backend for Admin to add, amend and delete articles. API to pass data on to Frontend. Express used for routing. MongoDB for storage. Hosted on AWS using NginX reverse proxy.
0 stars 0 forks source link

Create a schema for the blog database #6

Open jwpf100 opened 4 years ago

Moppler commented 4 years ago

Data in MongoDB has a flexible schema. Collections do not enforce document structure by default. https://docs.mongodb.com/manual/data-modeling/

Does to schema validation feature of MongoDB provide functionality you are looking for? Considering the rigid nature of blog data, would a relational database fit your purposes better?

(^This is purely a thought exercise. MongoDB would work perfectly well for you, it's just a good opportunity to get exposure to other options and weigh up the pros and cons).