I’m using prisma node.js to compare date using raw query. However, it is returning a date that is false. Anyone also having this issue?
const updated: any =
await prisma.$queryRaw`SELECT * FROM "public"."Test" WHERE updated_at != created_at AND updated_at > ${lastPulledAt}`;
if (updated.length > 0) {
console.log(
'updated',
lastPulledAt,
updated[0].updated_at,
updated[0].updated_at > lastPulledAt //returns false... which it shouldnt
);
}