Comments (3)
I would keep a list of the operators, most as a way to help us know if we are up-to-date with Parse. Perhaps we could/should separate the location-specific operators into their own list, to make sure that the queryset is applying the right filters to a given type.
As for how to map these new operators to our library, is there any kind of problem of having your approach ( filter(attr__op1, attr__op2)
? Also, another test that should be done is filter(attr__op1).filter(attr__op2)
.
from parsepy.
You're right about the latter point (I had to take a look into the code to check). However, what is the advantage of keeping a list of the existing operators? The only sense in which it helps us know if we are up-to-date is that it unexpectedly leads to people trying to do things they can't yet do, thus requiring active maintenance (regular Issues of "why doesn't this operator work yet"). Treating anything after the __ as being an operator would let the library stay up to date automatically.
from parsepy.
I see your point. As it is now, having anything after the separator to be
treated as an operator would make things a bit easier.
However, It might be that I am being too zealous, If we ever get to the
point where we can do more complex queries, generalizing this rule will
eventually lead us to weird bugs. Think of join queries*
(filter(restaurant__owner__name='John Smith')
, or
filter(posted_date__year__lte=2003)
, and we can see that the "anything
after __ is an operator" rule wouldn't hold.
- is that even possible in Parse? It is in Django, and maybe I am taking
things from there that are not even possible in Parse.
from parsepy.
Related Issues (20)
- Incorrect URLs for AWS hosted files HOT 2
- Fix for file uploads HOT 4
- parse-py not pointing to the self-hosted server HOT 2
- Nodechef.com returns only last object with valid data HOT 4
- Ability to access config options. HOT 2
- datetime type in User class HOT 1
- Regex matching for string types does not appear to function HOT 1
- How To Retrieve Objects based on Other Unique Columns
- Cannot use Master Key with a logged in user
- Can't get work any methods HOT 7
- Query constraints
- Batch save isn't working properly HOT 2
- Query Nested attributes HOT 1
- Query for string in array
- SSL: CERTIFICATE_VERIFY_FAILED
- get ACL in an object HOT 1
- Trouble Registering With Bitnami Parse-Server AWS Image HOT 1
- Distinct Queries
- urllib.error.URLError: <urlopen error unknown url type: b'http>, HOT 1
- Proposing a PR to fix a few small typos
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from parsepy.