Can I use raw query only in select? Like this <htt...
# orm-help
d
r
Hey @DimasDhimek 👋 I didn’t quite get this one. Could you provide an example if possible?
d
In sequelize i can add raw query in attributes and combine it with built in function. I wanna do raw query operation like IF, CONCAT, and number operation. How can i do that?
r
Unfortunately this isn’t possible when you directly use the Prisma API like
findMany
. So as a workaround, you would need to use raw queries directly. I also would suggest creating a feature request for the same here so that we can look into this 🙂
d
Oke, thanks for the answer. 😊
🙌 2