Multiple .where() calls with $dynamic not working

When adding multiple .where() calls to a query created with .$dynamic() only the last .where() call gets applied to the resulting query.

I put together the following example that adds two .where() calls but only the last one is applied. You can see the resulting query in the console.

https://codesandbox.io/p/sandbox/charming-herschel-8c9rk6?file=%2Findex.js%3A7%2C11
Was this page helpful?