QUESTION: In my data model I have Users and Groups...
# orm-help
d
QUESTION: In my data model I have Users and Groups. The User can join many groups and groups can have many members. I set up a many to many relationships in Prisma . I set up a graphql query in Nexus and can query the users groups but what's coming back is each user has all of the groups on it. How do I filter the many to many by user Id or group Id? Here is my schema.prisma file and the nexus ts file. Any help would be great! I am new to Prisama and really like the way it works!
r
@David 👋 You would need to take the
userId
or
groupId
as arguments in the resolvers
args
object and pass them in
where
.
d
@Ryan thanks I will try that out!
👍 1