However, if you create with null as the value, it get stores as a string in database and even if I change the value in database manually to null (not a string null), when I use ottoman to pull the data, it will be converted to string null
Something like this
[I changed the value to non-string null manually]
[The data from .find still gives string null]
Hence, there is no way to create a null value and $isNull operator cannot be used if I'm right so far
Hi,
I was testing out
$isNull
operator but found out that there's either issue withnull
value, or I am not using it correctly.However, if you create with
null
as thevalue
, it get stores as astring
in database and even if I change thevalue
in database manually tonull
(not a string null), when I useottoman
to pull the data, it will be converted tostring null
Something like this
[I changed the value to non-string null manually]
[The data from .find still gives string null]
Hence, there is no way to create a
null
value and$isNull
operator cannot be used if I'm right so farThanks!