General Mongo
Queries
.find({query})
or in MongoDb Compass find
Example Queries
Structuring Schema
Embedding documents
Embedded documents are documents with schemas of their own that are part of other documents
Lots of unneccessary data could be sent
Many to many get messy, great for one to one
Memory problem
Referenced documents
when you populate it requires an individual query for each
saves are only atomic at the document level, so all referenced saves not atomic
Efficiency problems
Advanced
Storing and Querying Ranges
Store start and end
Query by checking if its greater than start and less then end
Last updated