Including multiple tables on prisma

Is there a way to include more than 1 relation in a prisma query? When I write:
include: {
foo: true,
},
include: {
foo: true,
},
It works, but it fails if I add another:
include: {
foo: true,
bar: true
},
include: {
foo: true,
bar: true
},
3 Replies
Yiannis
Yiannis2y ago
It should work. If it doesn’t it’s cause of your schema or some other issue. Can you share the exact error?
Aviv
Aviv2y ago
You are right, it was a mistake in my Schema, I'm so sorry
Yiannis
Yiannis2y ago
No worries!
Want results from more Discord servers?
Add your server