I have a many to many relationship defined where there are many users to many groups.
I need to find groups that the user has not joined. However, the isJoined variable from the below code is always returning true for all groups/all users. Is this a bug or am I doing something wrong?
My schema is pretty basic. Each entity has a .edge("user) and vise versa on it.
I also checked const isJoined = await ctx.table("users").get(user).edge("groups") <- this part and it gives me back the correct groups, so I'm pretty sure that it has to do with the has function.
I have a many to many relationship defined where there are many users to many groups.
I need to find groups that the user has not joined. However, the
isJoined
variable from the below code is always returning true for all groups/all users. Is this a bug or am I doing something wrong?My schema is pretty basic. Each entity has a
.edge("user)
and vise versa on it.I also checked
const isJoined = await ctx.table("users").get(user).edge("groups")
<- this part and it gives me back the correct groups, so I'm pretty sure that it has to do with the has function.