Join Slack
Powered by
Hello, is there any way to use the `include` API t...
# prisma-client
h
Hector
10/13/2021, 3:46 PM
Hello, is there any way to use the
include
API to automatically return all relational fields without specifying them?
l
Lukáš Stuchlík
10/13/2021, 4:10 PM
Not that I know of, but wouldn't that lead to circular dependencies if it was recursive?
h
Hector
10/13/2021, 5:09 PM
You're right, Id say have a depth parameter that would only reach a certain level. I know at least AppSync does it for GraphQL
r
Ryan
10/14/2021, 5:14 AM
@Hector
👋 Currently not, but a
feature request
would be great 🙂
h
Hector
10/14/2021, 3:26 PM
Done 👍
🙌 1
Open in Slack
Previous
Next