I had this piece of code which gets booking items with certain statuses and I use something like this:
return bookings
.queryBookings()
.hasSome("status", ["CONFIRMED"])
Above had been working fine for many months now and all of sudden, I noticed today(12/24/2022) that I was getting no results and I see this error:
{
"details" : {
"applicationError" : {
"description" : "Bad Request",
"code" : "INVALID_FILTER",
"data" : {
"mismatchedFieldType" : {
"fieldPath" : "status",
"mismatchedType" : "BookingStatus",
"operator" : "$hasSome"
}
}
}
}
}
Did something change with Velo API?
The booking item data still does have “status” attribute.
I can’t seem to use hasSome() any longer. Luckily, since I was only passing single element, I was able to switch and use the eq() for now like below and that works, but what happened to hasSome()?
.eq("status", "CONFIRMED")