drwicked
04/17/2017, 3:36 PMhas 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
const FeedQuery = gql`query FeedQuery {
allWishes(orderBy: createdAt_DESC) {
id
title
postType
createdAt
imageUrl
description
user {
id
username
}
}
}`