-
-
Notifications
You must be signed in to change notification settings - Fork 596
Support nor Query #634
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
Support nor Query #634
Conversation
Codecov Report
@@ Coverage Diff @@
## master #634 +/- ##
==========================================
+ Coverage 85.08% 85.12% +0.03%
==========================================
Files 48 48
Lines 3855 3865 +10
Branches 871 871
==========================================
+ Hits 3280 3290 +10
Misses 575 575
Continue to review full report at Codecov.
|
@flovilmart How does this look? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There’s some issues in the comment docs
src/ParseQuery.js
Outdated
* @param {...Parse.Query} var_args The list of queries to AND. | ||
* @static | ||
* @return {Parse.Query} The query that is the AND of the passed in queries. | ||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Docs are wrong
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a jsdocs checker / linter we can add?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I mean the text in the docs ;) it says AND as it should says NOR. :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PHP SDK has a document checker. In this case the @param is wrong also
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure about that, you should look at them with npm run docs
.
My point was on the whole documentation that it didn’t match what the function was doing
src/ParseQuery.js
Outdated
@@ -250,6 +249,20 @@ class ParseQuery { | |||
return this; | |||
} | |||
|
|||
/** | |||
* Adds constraint that all of the passed in queries match. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Docs need a change
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What should this be changed to?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should say:
‘Adds constraint that none of the passed queries match’
parse-community/parse-server#4768