TripleSpeeder
TripleSpeeder•9mo ago

no "and" filter in convexTest?

Using convexTest I'm getting
Error: not implemented: {"$and":[{"$eq":[{"$field":"manufacturerId"},{"$literal":"10001;manufacturer"}]},{"$eq":[{"$field":"model"},{"$literal":"Test Model"}]}]}
Error: not implemented: {"$and":[{"$eq":[{"$field":"manufacturerId"},{"$literal":"10001;manufacturer"}]},{"$eq":[{"$field":"model"},{"$literal":"Test Model"}]}]}
The query looks like this:
.query("bikeModel")
.filter((q) =>
q.and(
q.eq(q.field("manufacturerId"), manufacturerId),
q.eq(q.field("model"), bikeModelData.model),
),
)
.unique();
.query("bikeModel")
.filter((q) =>
q.and(
q.eq(q.field("manufacturerId"), manufacturerId),
q.eq(q.field("model"), bikeModelData.model),
),
)
.unique();
Looks like the and filter is not implemented, or am I missing something?
2 Replies
Michal Srb
Michal Srb•9mo ago
Thanks for reporting the issue @TripleSpeeder, please upgrade to convex-test@0.0.11
TripleSpeeder
TripleSpeederOP•9mo ago
Thanks for the quick reply, will try this later today 🙂 Works fine 🙂