let number = new Date().getTime()
// number is 1523546797869
// binary: 10110001010111010011101110011011100101101
// (41 bits)
When I save it through GraphQL, I got an error which says it can only handle 32 bit because of Javascript language limitation.
In field "invoiceDate": Expected type "Int", found 1523546797869: Int cannot represent non 32-bit signed integer value: 1523546797869
My question is that if Javascript language is limited to 32 bit integer, why getTime() return a number that 41 bits??
I also read this thread. I think it is a little related, but can't fully understand the precision thing.