Passing multiple filters to the same scope query #557
Unanswered
freestyledork
asked this question in
Q&A
Replies: 1 comment
-
hmm maybe related. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a custom scope that resolves attributes from multiple locations call HasAttribute. It takes 2 arguments, the attribute name, and the value to check against. When using the scope more than once the QueryBuilderRequest only uses the last instance in the URL. Since other filters use commas to send more than one value and scopes pass the comma-separated values as parameters I'm not sure the proper way to use the scope twice on the same call.
example:
site.com/api/contacts?filter[has_attribute]=retired,1&filter[has_attribute]=name,john
This only uses the last instance of has_attribute scope.
Is there any way to add multiple values to be resolved by the same query scope?
Not sure this is possible with the current version.
Beta Was this translation helpful? Give feedback.
All reactions