I am using neo4j-driver
inside node js and so far it worked great! But now I have a Date Stamp, which looks 1634717983
when I try to create a node with date property in neo4j it converts the number to double which looks Double(1.634718e+06)
. Here is my code
nodes[0].createdAt = 1634717983
const createUserCyper = `
UNWIND $nodes as node
CREATE (a:Node {
id: node.id,
name: node.name,
createdAt: datetime({epochSeconds:node.createdAt / 1000, nanosecond: 23}),
})`;
const result = await session.run(
createUserCyper,
{nodes},
);
My question is how should I explain to neo4j not to convert my number ?