Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions blog/check-function/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ date: 2024-07-13
image: ./cover.jpg
---

import RecursionIssue from './recursion-issue.png';

# How the "check" Function Helps Keep Your Policies DRY

![Cover Image](cover.jpg)
Expand Down Expand Up @@ -209,9 +211,13 @@ model Folder {
}
```

This will be a hard problem to solve since Prisma inherently doesn't support recursive queries (check [this issue](https://github.com/prisma/prisma/issues/3725) for details). A possible solution is to expand the recursion with a (configurable) finite levels of depth.
This will be a hard problem to solve since Prisma inherently doesn't support recursive queries. You can check the following issue for more details:

<div align="center">
<a href="https://github.com/prisma/prisma/issues/3725"><img src={RecursionIssue} alt="Prisma recursion issue" width="600px" style={{'border-radius':'0.5rem'}} /></a>
</div>

Is this something your app needs?
A possible solution is to expand the recursion with a (configurable) finite levels of depth. Is this something your app needs?

### 3. Other forms of duplication?

Expand Down
Binary file added blog/check-function/recursion-issue.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.