Custom scopes return value #41754
Answered
by
Kamandlou
pafernandez-oesia
asked this question in
Q&A
-
Hi! When using a custom
So if you use it in an assignment, and the scope returns
The question is, is it discouraged to return results from a scope? Should a scope always return a valid query object? Thank you. |
Beta Was this translation helpful? Give feedback.
Answered by
Kamandlou
Apr 21, 2022
Replies: 1 comment 1 reply
-
It is better not to use a scope for this purpose. You can do this:
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
pafernandez-oesia
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It is better not to use a scope for this purpose.
You can do this: