You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This boolean option allows users to make driver accept and represent
integer values as native JavaScript `Number`s instead of driver's
special `Integer`s. When this option is set to `true` driver will
fail to encode `Integer` values passed as query parameters. All
returned `Record`, `Node`, `Relationship`, etc. will have their
integer fields as native `Number`s. Object returned by `Record#toObject()`
will also contain native numbers.
**Warning:** enabling this setting can potentially make driver return
lossy integer values. This would be the case when database contain
integer values which do not fit in
`[Number.MIN_SAFE_INTEGER, Number.MAX_SAFE_INTEGER]` range. Such
integers will then be represented as `Number.NEGATIVE_INFINITY` or
`Number.POSITIVE_INFINITY`, which is lossy and different from what is
actually stored in the database. That is why this option is set to
`false` by default. Driver's `Integer` class is able to represent
integer values beyond `[Number.MIN_SAFE_INTEGER, Number.MAX_SAFE_INTEGER]`
and thus is a much safer option in the general case.
0 commit comments