I'm using TypeORM query builder for my backend and I have an issue i will appreciate your help with. I have three data base tables - USERS, ITEMS & USER_FAVORITES_ITEMS (relation table). each USER have MANY favorites items and each item can be FAVORITE to many USERS (Many To Many relation).
Now, the result I'm looking for is to create query that will return all items on the database with extra column called IS_FAV (boolean) -> if the item appears in the USER_FAVORITES_ITEMS for this user I want it to be TRUE, else it should be FALSE.
This is how my MANY To Many table looks like (very simple).

usersis the same astourists, right?