Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is $nestedOperations still in the plans for Prisma extensions? Particularly for row level security. #23720

Closed
davepreston opened this issue Apr 3, 2024 · 0 comments

Comments

@davepreston
Copy link

Problem

I would like to make alterations to the where clause of every prisma query that runs to enforce row level security. I was able to do that at the top-level using extensions, but select/includes of relationships make it very difficult to identify existing or potential "where" clauses that need to be modified.

Suggested solution

I'd like some way to alter all where clauses. I would expect something like a function that would be called with every where clause (even empty ones). I would tweak them as needed and return the altered where clause.

Alternatives

A proposal for clientExtensions was discussed in October 2022 (#15074 (comment)). It referenced $nestedOperations. I believe that would meet my needs, but I couldn't find any reference to $nestedOperations after that point.

Additional context

@prisma prisma locked and limited conversation to collaborators Apr 4, 2024
@janpio janpio converted this issue into discussion #23727 Apr 4, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant