I want to implement сode in nodejs on how to select pages when printing pages for printing from the MongoDB database in such a way that they are cut or selected using a string of information and all are received together in an array. Like the following example:
Field of choice: 1, 4, 5-7, 8, 10-100
In this case, data numbers 1, 4, 5 to 7, 8, and 10 to 100 are extracted from all the data in the Mongo database.
As far as I know, it is only possible to specify the skip and limit of an interval only once, and I did not find anything else.
Hosein zendedel is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.