I have a wishlist app, User `has many` wishes, I w...
# prisma-whats-new
d
I have a wishlist app, User
has many
wishes, I want to be able to get the user's data (name, id) when I'm listing all the wishes in the db. How do I go about this? Do I need to set up two relationships or is it bidirectional by default? I'm using react-apollo. Here's the query I've tried but it returns user as
null
Copy code
const FeedQuery = gql`query FeedQuery {
  allWishes(orderBy: createdAt_DESC) {
    id
    title
    postType
    createdAt
    imageUrl
    description
    user {
      id
      username
    }
  }
}`