hez
07/27/2018, 2:59 PMSubscription: {
tripStatusUpdated: {
subscribe: withFilter(
() => return pubsub.asyncIterator(Events.TRIP_STATUS_UPDATED),
(payload, variables) => {
console.log('PAYLOAD: ', payload)
return payload.tripStatusUpdated.tripID === variables.tripID
},
),
},
}
This only returns the item dispatched with the event, and not the requested data from the subscription. Is there any way to request certain fields on a model from the subscription?lawjolla
07/27/2018, 3:58 PMhez
07/27/2018, 6:02 PMhez
07/27/2018, 6:02 PMhez
07/27/2018, 6:04 PMcontext.db
to get all users
with posts
or some such?lawjolla
07/27/2018, 7:12 PMhez
07/30/2018, 2:00 PMhez
07/30/2018, 2:01 PMwhere: {relation_not: null}
But that didn't seem to work