I need to obtain from a database of mongo
users whose points range from 0-10
, 11-20
, 21-30
... so up to 100
points.
The points field is of type string.
The final idea is to get something similar to this:
0-10.
Usuario :554545 Puntos:1.
Usuario :111154 Puntos:7.
11-20.
Usuario :554545 Puntos:15.
Usuario :554545 Puntos:18.
Etc...
I need to do tests in Robo3T
but the idea of the query will be to associate it with a batch (in java) that will consult the database and get the result in a file.
Thank you very much.