T
T
topuserman2020-07-23 20:52:25
MongoDB
topuserman, 2020-07-23 20:52:25

How difficult is it to do this in mongodb?

I have such a classic task: I
need to develop a catalog with filtering and the possibility of CRUD.

The main difficulty faced in relational databases is that our catalog entities have a complex property structure.
Those. an entity can have string properties, checkboxes (yes/no), or complex properties that contain others.

Such a structure is quite difficult and dreary to keep in a relational database.
Thought, in the direction of nosql, to store entities in the form of documents.

Questions:

The main thing that worries me is how difficult it is to implement a filter on all properties?
Those. by default, all properties and their values ​​are displayed for filtering, after applying the filter, the filter also changes along with the result, leaving only those properties and values ​​that exist for the current selection. (like a regular classic filter in online stores)

Are there any built-in features to get a set of all properties and their values ​​in addition to the documents themselves?

Tell me please, what is it called, where can I read about it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
GF, 2020-07-24
@fomenkogregory

Yes, filtering and sorting and pagination and so on are very easy to do. You can read it in the documentation. Here is the course (for 40 hours really), here it is all explained in the first 100 lessons.
https://www.udemy.com/course/nodejs-express-mongod
... True, the lecturer is stuffy sometimes. He starts to explain banal things, he has to skip, but in general, he is normal. + If you look at x2 speed, it doesn't take that long.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question