Maxime Scibetta
01/04/2018, 9:05 AMexport const TABLE_EVENT_SUBSCRIPTION = gql `
subscription Score($id: ID!){
Score(
filter: {
mutation_in: [CREATED],
node: {
event_some: {id: $id}
}
}
) {
node{
score
event{
id
}
implementation{
id
}
comment
id
meeting{
author{
name
}
}
}
}
}
`
it's my query based on parent (Event) i want to subscription on Score child of implementations
export const TABLE_EVENT_QUERY = gql `
query Event($id: ID!){
Event(id : $id){
courseName
students{
name
implementations(filter: {events_every: {id: $id}}) {
id
project{
name
}
scores {
id
score
comment
meeting{
author{
name
}
}
}
}
}
}
}
`