You need to sign in to do that
Don't have an account?
Christopher McGee
Remote Objects query breaks when 'or' introduced
Hi folks,
I'm using javascript remote objects query as follows
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!
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!
Thx