Operators
Logical Operators
Learn how to combine expressions using logical operators in pb-query.
.and()
Combines the previous and the next expressions with an and logical operator.
pbQuery<User>().equal('name', 'Alice').and().equal('role', 'admin'); // name='Alice' && role='admin'
.or()
Combines the previous and the next expressions with an or logical operator.
pbQuery<User>().equal('name', 'Alice').or().equal('name', 'Bob'); // name='Alice' || name='Bob'