This repository was archived by the owner on May 1, 2025. It is now read-only.

Description
qs.parse({"foo":">1"}) results in {"foo":{"$gt":1}} and not {"foo":{"$gt":"1"}} where the '1' is converted to a Number field automatically. If the foo field is a string field in the database than this search query will find nothing.
I haven't tested it but this will probably also be true for booleans. So you probably can't filter a text field on the word 'true'.
There should be a way to force the creation of a string filter for values that could also be a number or a boolean.