Unable to query data

I am trying to query learning targets from a specific test but I don't know why it won't let me. Any help? I have added the db schema, the trpc protocol, and the html code.
8 Replies
Matvey
Matvey2y ago
in the prisma findUnique call add include: { learningTargers: true }
Fantastic65
Fantastic65OP2y ago
Where would I add that?
Diogo
Diogo2y ago
after the where where: {id: input.id} , { learningTargers: true }
Fantastic65
Fantastic65OP2y ago
i did that and it gave me an error
Fantastic65
Fantastic65OP2y ago
Matvey
Matvey2y ago
no in the first argument
Fantastic65
Fantastic65OP2y ago
I got it i also wanted to get the questions that are in the learning targets how would i do that here is the schema
Fantastic65
Fantastic65OP2y ago
Want results from more Discord servers?
Add your server