Hi, I get stuck with Relations in Room. Trying to connect channel and members, based on memberships. Let’s say that the structure is:
data class Membership(
@PrimaryKey
val id: String,
val channel: String, // channelId
val member: String, // memberId
)
data class Channel(
@PrimaryKey val id: String,
val name: String,
...
)
data class Member(
@PrimaryKey val id: String,
override val name: String,
...
)
Is it possible to create a
ChannelWithMembers
and
MemberWithChannels
with relations?