-
Notifications
You must be signed in to change notification settings - Fork 75
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
map<k,v>
doesn't support bigint and boolean keys
#258
Comments
map<k,v>
doesn't support bigint keysmap<k,v>
doesn't support bigint and boolean keys
Hey @fubhy. That was actually a design choice when writing the library. See our docs on maps here. That being said, though, we are investigating whether we still want to stick with this simple object representation or instead migrate to using an ES I'll keep this issue open until a decision is reached. Thanks for the issue, definitely on our plate to consider. |
Sorry, I must've missed that in the docs. |
No worries. Something we're thinking about also. |
Hi @fubhy. After a lot of deliberation on this, we've decided not to switch to |
The
map<k,v>
field type currently uses a simple object as a representation. However, that doesn't work forbigint
keys.Same for
boolean
keys. That's also theoretically supported and there's even a possible pitfall here (stringified serializing and deserializing booleans that is). So I'd personally prefer to useMap<k, v>()
here unless something speaks against that?The text was updated successfully, but these errors were encountered: