Skip to content

Dynamic relation load #24143

Closed Answered by ludralph
simplo-marcind asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @simplo-marcind 👋

Prisma indeed requires you to specify the relations you want to include when fetching data from the database. As for your question about implementing a feature similar to Eloquent ORM's automatic resolution of inverse relationships, as of now, Prisma does not support this feature. In Prisma, you need to explicitly define the relations in your schema and also specify them in your queries.

However, if you want to see this implemented, you need to open a feature request detailing your usecase so that our engineers can take a look.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by simplo-marcind
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants