-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sometimes 'Infinity' is returned in the converted result #28
Comments
Looks like this is related to the way that values are checked as numbers. That sequence is parsable as a number with E notation but resolves to a value too large to represent so is returned as Infinity. One solution might be to consider strings that resolve to Infinity (or negative Infinity) as strings instead of number. Looks like I could use |
For a workaround, you can wrap the id in quotes to ensure it isn’t interpreted as a Number. Found it in the README:
|
Fixed in query-to-mongo@0.10.2 Value resolves to a Number only |
thanks for the fix |
For below example code (example for id 5e8454301455190020332048)
The returned result is
{test: Infinity}
For any other id for example for some random id 5ed0a62751dbd6008a0e71ec it works fine.
Only for few select ids for which example id 5e8454301455190020332048 shown above the result returned has Infinity.
The text was updated successfully, but these errors were encountered: