feat (division): add fk and preloads for parent and childrens

This commit is contained in:
dpurbosakti
2025-10-02 16:19:35 +07:00
parent b10db970d6
commit 47e855f91e
3 changed files with 16 additions and 1 deletions
@@ -87,6 +87,9 @@ func ReadList(input e.ReadListDto) (*d.Data, error) {
return err
}
if len(input.Includes) > 0 {
input.Preloads = pu.GetPreloads(input.Includes)
}
if dataList, metaList, err = ReadListData(input, &event, tx); err != nil {
return err
}