Skip to content
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

Add support for Q() queries in .search() #14

Open
ruscoder opened this issue Mar 15, 2019 · 1 comment
Open

Add support for Q() queries in .search() #14

ruscoder opened this issue Mar 15, 2019 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@ruscoder
Copy link
Member

It will be very useful to combine complex queries using Q() like it made in Django.

Examples:
OR

client.resources('Slot').search(Q(schedule='id1') | Q(schedule='id2'))

transforms to =>

client.resources('Schedule').search(actor='id1,id2')

and generates =>

?schedule=id1,id2

AND

client.resources('Schedule').search(Q(actor='id1') & Q(actor='id2'))

transforms to =>

client.resources('Schedule').search(actor=['id1', 'id2'])

and generates =>

?actor=id1&actor=id2
@ruscoder ruscoder added the enhancement New feature or request label Mar 15, 2019
@ruscoder ruscoder self-assigned this Apr 23, 2019
@ruscoder
Copy link
Member Author

ruscoder commented Feb 7, 2020

Let's increase the priority

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

No branches or pull requests

1 participant