i dont want to get the soft deleted items from relations when i find any object. how to do it?
const product = await this.productRepository.findOne({
where: {
id: productId,
},
relations: [
'items',
'billingAddress',
'shippingAddress',
'contact',
'tax',
'paymentTerm',
'transactions',
'salesPerson',
],
});
here i soft deleted a transaction, but when i am trying to find the product, i am getting the soft deleted transaction too, what i can do to avoid?
New contributor
The sidd sight is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.