is there a way to tell prisma to “include everything”?
r
Ryan
09/27/2021, 7:20 AM
@Charles Dimino 👋
In a relation?
c
Charles Dimino
09/27/2021, 2:31 PM
yeah, ideally I’d like to eager load all relations without explicitly naming each relation, or if there’s some mapping available somewhere that I could iterate over that would also work
r
Ryan
09/27/2021, 3:00 PM
You need to explicitly name a relation via
include
. They will be eagerly loaded.
c
Charles Dimino
09/27/2021, 6:56 PM
No worries, I just don’t want to keep a list of relations for each model separately. I found another way around the problem, but thanks!