katharsis-framework
katharsis-framework copied to clipboard
Is there a way to make a join query?
For example, I have a many-to-many relationship, and I want to get users that have specific tag id,
I tried with ?filter[tags][id]=id
but it's not working.
class User {
@ManyToMany
private Set<Tag> tags;
}
class Tag {
@ManyToMany
private Set<User> users;
}
Need some more information.
Are you using katharsis-jpa or vanilla katharsis?
If you are not using katharsis-jpa, then you have to provide the filtering yourself in the implementation of your Repository or RelationshipRepository.
If you are using katharsis-jpa, then @remmeier can add something about how that is supposed to work.
I'm using katharsis-jpa :)