node-mongo-querystring icon indicating copy to clipboard operation
node-mongo-querystring copied to clipboard

Added option for converting date to string.

Open michaek opened this issue 7 years ago • 1 comments

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.

michaek avatar Oct 30 '18 14:10 michaek

@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?

michaek avatar Apr 08 '20 15:04 michaek