Is there a way to insert an unsafe string into pri...
# orm-help
v
Is there a way to insert an unsafe string into prisma.$queryRaw ?
๐Ÿ‘€ 1
r
Hi @Vasily Zorin ๐Ÿ‘‹ Have you considered using queryRawUnsafe? However do note that there are potential security risk with this approach.
v
๐Ÿ‘‹ Hello @Vasily Zorin, did you have a chance to see Raphael's message? Let us know if this worked!
v
Hey! Yeah, I am using queryRawUnsafe, but it doesnโ€™t support ${value}
It would be nice to have something like `$queryRaw`SELECT * FROM table AS OF SYSTEM TIME ${Prisma.raw('โ€ฆ')} WHERE foo = ${bar}``
๐Ÿ‘ 1
๐Ÿค” 1
@Vladi Stevanovic
r
Thanks @Vasily Zorin for letting us know. For your specific use case, can you please open a feature request.