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

added support for range operator #14

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

gartmeier
Copy link

I want to add support for the range operator to django-rql, but I'm a little lost. I need help understanding the terminology (comp, logical), and I may have put everything in the wrong places.

The goal is to allow the following query string generated by javascript-rql:

const filter = {
  age: {
    $range: {
      max: 5,
      min: 9,
    },
  },
};
 
rql(filter); //'range(age,9,5)'

Please have a look and let me know if I need to change something or add additional tests.

@CLAassistant
Copy link

CLAassistant commented Jan 31, 2023

CLA assistant check
All committers have signed the CLA.

@ffaraone
Copy link
Contributor

Thank you @gartmeier for your contribution! Sorry if we are late in reviewing your contribution, we are very busy finishing the new release of our product. As soon as we can we will tell you something.

py_rql/operators.py Outdated Show resolved Hide resolved
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 this pull request may close these issues.

4 participants