question

I have 3 tables in this image.

A table "user" can have many "catalog_habit", and the "catalog_habit" can have many "habit".

I'm trying to find a way of using Gorm Preload to make API to display all of "habit"-relevant tables from a particular "id" primary key of "User" table.

It can display every information of 3 tables, but I want to get the "Habit" info only for Frontend guys :(

Please help me out, thanks !

Comment From: github-actions[bot]

This issue has been automatically marked as stale because it has been open 360 days with no activity. Remove stale label or comment or this will be closed in 180 days