TokenChingy / _api

_api is an autogenerated CRUD API built on LowDB and ExpressJS.
MIT License
76 stars 5 forks source link

Data comparators: _gte, _gt, _lte, _lt on endpoints with filter capability. #4

Open TokenChingy opened 6 years ago

TokenChingy commented 6 years ago

Is your feature request related to a problem? Please describe. No problems, just missing features that I will need to implement.

Describe the solution you'd like A more comprehensive data filtering through the implementation of comparators.

Describe alternatives you've considered The current alternative is to request all the data and compare on the front-end which is not network friendly.

Additional context N/A

TokenChingy commented 6 years ago

I'm working on this currently. Should be done by the weeks end if not sooner. Going to thank @judilsteve for the help on some of the logic as well as cleaning up the logic in the function requestQueryHandler(), hopefully we should shave of some milliseconds in the response.

TokenChingy commented 6 years ago

Data comparators are complete for the find endpoint. Update and remove endpoints to come soon.