I have an api with a component (1 number field, 1 relation to a the same collection):
The related porducts are in draft mode. The entry is filtered by the “orderno”, which is unique.
I tried to get the component one item with the glass component in different ways, but I never got the “quantity” field, only the related product. How will I get both?
I tried:
/api/products/?publicationState=preview&populate[0]=glass.product&populate[1]=glass.quantity&filters[orderno][$eq]=5 => only glass.product is shown
/api/products/?publicationState=preview&fields[0]=glass.quantity&populate[0]=glass.product&filters[orderno][$eq]=5 => error
/api/products/?publicationState=preview&populate[0]=glass&populate[1]=glass.product&filters[orderno][$eq]=5 => only glass.product is shown
