Paul
05/02/2022, 2:06 PMselect count(*) from forum_post where id = '01G229XJPH7BTHFD89B7TD45XX' OR "postId" = '01G229XJPH7BTHFD89B7TD45XX';
count
-------
2
(1 row)
return db.forumPost.count({
where: {
OR: [
{
id: postId,
postId: postId,
},
],
},
})
Is this a bug, Or maybe I'm using the OR cond wrong? ThanksJeremiah
05/02/2022, 2:23 PMreturn db.forumPost.count({
where: {
OR: [
{
id: postId,
},
{
postId: postId,
},
],
},
})Jeremiah
05/02/2022, 2:23 PMPaul
05/02/2022, 2:44 PM