joar
05/09/2017, 5:44 PM$varname: JSON
. Is that not correct?artyom
05/09/2017, 7:07 PMartyom
05/09/2017, 9:46 PMbobbyt
05/09/2017, 10:08 PMandrius
05/10/2017, 1:33 AMpicosam
05/10/2017, 10:03 AMartyom
05/10/2017, 10:22 AMjoseconstela
05/10/2017, 12:02 PMnikolasburk
morley
05/10/2017, 1:29 PMmorley
05/10/2017, 1:30 PMryand
05/10/2017, 1:43 PMryand
05/10/2017, 1:49 PMhuv1k
05/10/2017, 1:53 PMhuv1k
05/10/2017, 1:53 PMryand
05/10/2017, 1:55 PMryand
05/10/2017, 2:02 PMartyom
05/10/2017, 4:43 PMyergi
05/10/2017, 4:51 PMcolinfendrick
05/10/2017, 5:00 PMartyom
05/10/2017, 5:15 PMnotrab
05/10/2017, 6:29 PMEvent
that has many Comment
types. I’m trying to create a subscription for new comments. How would I do this?
subscription {
Event(filter:{
mutation_in: [CREATED],
}) {
node {
comments {
id
message
createdAt
}
}
}
}
Is as far as I got, I couldn’t figure out the way to set the eventIdellis
05/10/2017, 8:37 PMnotrab
05/10/2017, 9:14 PMFile
Type.
If I have an Event
Schema, I’d like a Cover Photo (File
) and a Thumbnail Photo (File
).
Is this easily done or do I require another Type to “go through”?notrab
05/10/2017, 9:14 PMpier
05/10/2017, 9:40 PMpier
05/10/2017, 9:41 PMala
05/10/2017, 10:25 PMteonimesic
05/11/2017, 2:14 AMfirst
and orderBy, something like:
query MaxProposalNumber {
allProposals(orderBy: number_DESC, first: 1) {
number
}
}
but it still returns an array. So is there a way do use a reduce function inside a graphql query so I don’t need to use it when resolving the value?teonimesic
05/11/2017, 2:15 AM