This repository was archived by the owner on Sep 8, 2025. It is now read-only.
- Notifications
You must be signed in to change notification settings - Fork84
method for mango query#324
Open
pirr wants to merge7 commits intodjc:masterChoose a base branch frompirr:mango_query
base:master
Could not load branches
Branch not found:{{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline, and old review comments may become outdated.
Open
Uh oh!
There was an error while loading.Please reload this page.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Author
pirr commentedOct 3, 2017 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
I added support for $elemMatch, maybe $allMatch (not tested).
"_L_" - define "feats" field as list This can be bad implementation. I will be glad to suggestions. |
As you can seehere, there are some test failures caused by this PR. Can you look at those and make sure they no longer fail? |
I fixed doctest. But travis log error:
I not get this error in local test log. |
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading.Please reload this page.
I suggest implementation for mango query (only CouchDB 2)http://docs.couchdb.org/en/2.1.0/api/database/find.html.
I used django's filter implementation.
data = db.filter(field__subfield1__...__mango_operator = value)
Work:
not tested types: Object, Array-$size, Miscellaneous - $mod.
I will work on update. In first I would add Array operators - $elemMatch, $allMatch.