Simply JOINing these tables will not accomplish that. You could concatenate the related postID to a single CSV string.
– June7Dec 25 '22 at 20:52
it solved by this command
FavUserTags.hasOne(PostHashtak, {
foreignKey: 'hashtakId', // <--- one of the column of PostHashtak - SubTask: not a primary key here in my case; can be primary key also
sourceKey: 'hashtakId', // <--- one of the column of FavUserTags - Task: not a primary key here in my case; can be a primary key also
});
– mohammad reza shabaniDec 27 '22 at 11:42