function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Christopher McGeeChristopher McGee 

Remote Objects query breaks when 'or' introduced

Hi folks,

I'm using javascript remote objects query as follows
 
{where:{
            or:{
                 Trainer:{in: subArray1},
                  State:{in: subArray2}
                  }
               }
 };

Each condition works seperately as desired, but when I introduct the 'or' I get a path error. Pretty certain that my syntax is correct - I'm wondering if there's an issue with 'or'-ing over 'in' the way I'm attempting. My code is such that I can break this into two queries if needed, but still wanted to know what the deal is here.

Thanks!
William TranWilliam Tran
what kind of error, the syntax seems to look fine.  Try using AND and see if you still have an error.

Thx