Creating a relation within the same collection

System Information
  • Strapi Version: 4.3.2 (node v16.14.2)
  • Operating System: windows
  • Database: mysql
  • Node Version: 16.14.2
  • NPM Version: 8.5.0
  • Yarn Version:

I have a scenario where I need to make a relation within same collection. Eg:- A product can contain related products from the same collection.

I came across a solution in the forum. link

I tried implementing the same. After establishing the relation, the data in the link table is accurate. But the relationship data is incorrect in the API response and the collection in the admin panel.

can anyone help me on this.

Thank you