node-mongo-querystring
node-mongo-querystring copied to clipboard
Added option for converting date to string.
Following from #67, this creates an option (date.toString) to use JavaScript date objects in queries rather than ISO strings. I didn't add test coverage for the option against all date formats, as it seemed that demonstrating the option works for each date method is sufficient.
Changing the arrow functions to standard functions does make things a bit uglier, but it's necessary to access the options on the bound this.
@Starefossen Is there a chance you might be able to review this PR and let me know if there's anything I should do to make it ready to merge?