JP Icalla
01/28/2025, 7:30 AMbasePrice
for each product in the products
collection. If there is no corresponding custom price for a product for a particular customer, I'd like to use the basePrice
in the products
collection as the value, otherwise, use the custom price from the joined collection. I'm having trouble trying to build this particular query.
Is it possible to achieve something like this without resorting to populating the base price as the custom price for each products for every customers in the custom pricing collection? Would really appreciate some help and recommendations, thank you!Fanis Tharropoulos
01/28/2025, 2:03 PMJP Icalla
02/01/2025, 11:06 AM{id: 1, name: 'product a', price: 2.80},
{id: 2, name: 'product b', price: 3.21},
{id: 3, name: 'product c', price: 1.95}
I'll likely go with something like this and resort to sorting client side.