user
04/17/2017, 8:14 AMhttps://prisma.slack.com/files/U4FVC3J1G/F50JK0NTZ/pasted_image_at_2017_04_17_12_12_am.png▾
artyom
04/17/2017, 8:26 AMcartogram
04/17/2017, 8:53 AMmoosch
04/17/2017, 10:02 AMsdubois
04/17/2017, 11:28 AMsdubois
04/17/2017, 11:35 AMsorenbs
artyom
04/17/2017, 12:46 PMsdubois
04/17/2017, 1:00 PMhuv1k
04/17/2017, 1:00 PMsdubois
04/17/2017, 2:08 PMnext.js
in e.g. your console? Or just styled-jsx
?artyom
04/17/2017, 2:14 PMuser
04/17/2017, 2:14 PMhttps://prisma.slack.com/files/U4FVC3J1G/F50JK0NTZ/pasted_image_at_2017_04_17_12_12_am.png▾
user
04/17/2017, 2:15 PMhttps://prisma.slack.com/files/U4FVC3J1G/F50JK0NTZ/pasted_image_at_2017_04_17_12_12_am.png▾
apoeco
04/17/2017, 2:37 PMsdubois
04/17/2017, 2:42 PMartyom
04/17/2017, 3:09 PMapoeco
04/17/2017, 3:13 PMsubscription something {
Post(filter: {
mutation_in: [CREATED, UPDATED, DELETED]
}) {
mutation
updatedFields
node {
id
imageUrl
description
}
}
}
?apoeco
04/17/2017, 3:17 PMdrwicked
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
}
}
}`
2tothe8th
04/17/2017, 6:25 PMbarzev
04/17/2017, 6:33 PMbarzev
04/17/2017, 6:33 PM<ApolloProvider>
<Provider store={store}>
<AppNavigator />
</Provider>
</ApolloProvider>
theom
04/17/2017, 6:38 PM<ApolloProvider store={store} client={client}>
</ApolloProvider>
barzev
04/17/2017, 6:41 PMApolloProvider
can be used to supply the redux store too? 🙂nilan
04/17/2017, 6:42 PMartyom
04/17/2017, 6:57 PMmonkeybonkey
04/17/2017, 8:52 PMsorenbs
barzev
04/17/2017, 10:16 PM