like well you are passing info, so you shouldn't h...
# orm-help
c
like well you are passing info, so you shouldn't have to, but the way yours works is different than mine, mine would be like ctx.db.prisma.user, to use prisma binding which accepts info
e
Definitely there:
I ask for the
url
subfield for
profilePicture
already in the query I posted. So strange. To me it all looks legit 🤷🏿‍♂️
Fixed it. Had to add a field resolver for
profilePicture
under
User
Copy code
User: {
        posts: parent => prisma.user({ id: parent.id }).posts(),
        following: parent => prisma.user({ id: parent.id }).following(),
        followers: parent => prisma.user({ id: parent.id }).followers(),
        likes: parent => prisma.user({ id: parent.id }).likes(),
        comments: parent => prisma.user({ id: parent.id }).comments(),
        profilePicture: parent => prisma.user({ id: parent.id }).profilePicture()
      },
So the last line. I’ve had to do this before for related field like
posts
comments
etc but didn’t think I would have to do this for field with no relation whatsoever