10000 Add ability to set more complex filter query parameter · Issue #30 · woohoolabs/yang · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add ability to set more complex filter query parameter #30

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

Closed
Insolita opened this issue Nov 5, 2020 · 0 comments · Fixed by #31
Closed

Add ability to set more complex filter query parameter #30

Insolita opened this issue Nov 5, 2020 · 0 comments · Fixed by #31

Comments

@Insolita
Copy link
Contributor
Insolita commented Nov 5, 2020

Accordingly JsonApi specification

JSON:API is agnostic about the strategies supported by a server. The filter query parameter can be used as the basis for any number of filtering strategies.

Current JsonApiRequestBuilder realization restrict filter strategy https://github.com/woohoolabs/yang/blob/master/src/JsonApi/Request/JsonApiRequestBuilder.php#L258

The filter params can be represented only like filter[field1]=value&filter[field2]=val1,val2

But my strategy requires a more flexible form like filter[field1][like]=foo&filter[field2][lt]=100&filter[field2][gt]=5 (or even with more condition depth)

Right now is not possible even to override this method, because queryString property is private

If you are interested in solving this problem, we can discuss ways to fix it and I can create a PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant
0