and where logic operator missing ?
See original GitHub issueHi,
How do I use logical AND operator in chain ? Ex :
...
.where('x.b', 3)
.andWhereIn('x.a', [1, 2, 3])
.andWhereNotNull('x.c')
There is not operator andWhereIn and andWhereNotNull ?
Best regards,
Issue Analytics
- State:
- Created 7 years ago
- Comments:8 (4 by maintainers)
 Top Results From Across the Web
Top Results From Across the Web
Missing Values and Logical Operators (IF command) - IBM
When two or more relations are joined by logical operators AND or OR , the program always returns a missing value if all...
Read more >and where logic operator missing ? #1881 - knex/knex - GitHub
Hi, How do I use logical AND operator in chain ? ... andWhereNotNull('x.c') There is not operator andWhereIn and andWhereNotNull ?
Read more >FAQ: Logical expressions and missing values - Stata
Why does Stata treat missing values in this way? It is not possible with two-valued logic (True–False) to have missing values propagate through ......
Read more >Operators & Missing Value in R - TechnicalJockey
Objects Missings : A missing value is one whose value is unknown. Missing values in R represented by NA symbol. ... Logical Operators...
Read more >Understanding Errors: G0064 Operand Missing - Aptech
Operand Missing Errors with Mathematical and Logical Operators ; The element-by-element multiplication operator requires two operands, one on the ...
Read more > Top Related Medium Post
Top Related Medium Post
No results found
 Top Related StackOverflow Question
Top Related StackOverflow Question
No results found
 Troubleshoot Live Code
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free Top Related Reddit Thread
Top Related Reddit Thread
No results found
 Top Related Hackernoon Post
Top Related Hackernoon Post
No results found
 Top Related Tweet
Top Related Tweet
No results found
 Top Related Dev.to Post
Top Related Dev.to Post
No results found
 Top Related Hashnode Post
Top Related Hashnode Post
No results found

@purell
and variants are just aliases for normal where so you can use them like this:
We should update the list of and variants though… so I’ll mark this as a bug.
Would be great to have this “where() and andWhere() are aliases” documented. It really makes things easier. I just searched for this fact, because my gut told me that maybe they are aliases.
With this knowledge it’s easy to gather applicable criteria of where in an array first and do a […].forEach(criteria => builder.where(criteria) ) when ready.
Instead of a = […] if (a.length) builder.where(criteria[0]); for (i = 1; (i < a.length); i++){ builder.andWhere(criteria[i]); }