James
11/18/2021, 12:46 PM1,2,3
?Ryan
11/18/2021, 12:47 PMJames
11/18/2021, 12:49 PMJames
11/18/2021, 12:56 PMt.field('Forms', {
type: nonNull(list('Form')),
resolve: async function (parent: any, args, ctx: Context) {
return await ctx.prisma.forms.findMany({
where: {
related_id: {
contains: parent.related_id.toString(),
},
},
})
},
})
but that looks insecure to me, so i think i need to use MySQLÂ FIND_IN_SET()Â Function. Should I use prisma.$rawQuery() for this?Ryan
11/18/2021, 1:00 PM