-
|
If I have a schema like: Is there mechanism in the canQuery or canFind directives that would allow checking policy on each model? |
Beta Was this translation helpful? Give feedback.
Answered by
k0ka
Jul 22, 2025
Replies: 1 comment
-
|
Both |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
k0ka
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Both
canFindandcanQuerycan do it. We even have tests for it:lighthouse/tests/Integration/Auth/CanFindDirectiveDBTest.php
Line 387 in 2d7eb06
lighthouse/tests/Integration/Auth/CanQueryDirectiveDBTest.php
Line 118 in 2d7eb06