I’m running into an issue building my graphql API ...
# orm-help
p
I’m running into an issue building my graphql API with prisma1 when dealing with lists types. I’ve discovered you can query lists with this pattern:
await prisma.events(invitedQuery).$fragment(fragment);
which I discovered a while back. However I would like to get a list of users that are followers of a given user as well as all the other saclar types that make up a user. I could see myself doing it with the pattern above but it doesn’t seem like it’s the best way to do it. I would like to know if there’s a way to have the user returned from the prisma client with a field that is a list of users. I am using prisma-client-lib v1.34.10. This seems like a very basic operation but I haven’t found anything in the docs. I did find something to do with the info parameter and prisma-bindings but I don’t think that’s relevant here. Any help would be appreciated, much thanks.