How do I repeat in AC with two types of content inside?

I’m a bit confused.

My goal is to show a list of cards, each card is a course. Some courses are owned, some are not:

Right now the card you see are all owned courses.

I retrieve them with a query that joins 3 tables:
Users → users_enrolled_courses → Courses


The users_enrolled_courses contains a reference to course_id and to users_id. So if there’s a record in there combining user John with course A - then John owns course A.

image
image

How do I achieve this goal with the repeat on the page?
I think I need to feed the repeat expression an array of all courses, which has an extra field on if it’s owned or not?

*Edit: I tried with the new manipulations in server connect - but that only gives me the owned courses again

*

Community Page
Last updated: