Hii, someone know how make a subscription on a chi...
# prisma-whats-new
m
Hii, someone know how make a subscription on a child it's my subscription
Copy code
export 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
Copy code
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
                        }
                    }
                }
            }
        }
    }
}
`