java - How to GET last dates within a certain constraint -


i trying figure out how can pull records mongo database using jongo check date on object in db , return object data from, in case, last 3 current dates. i'm using localdate set date on object.

so that's problem, i'm doing have angularjs web ui interfaces java backend , i'm trying scale down scope, because current way i'm displaying data not feasibly scalable. want limit response receive last 3 objects created instead of of objects. , i'm point need check on date can't seem find reasonable solution. isafter() , isbefore() started initial effort, can't guarantee dates in way don't know set constraints.

the code i'm working on doesn't matter, i'm more interested in how can check in general.

thanks in advance help, if @ all, can offered!


Comments

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -