Prisma1: Subscription to nested nodes

Created on 9 Apr 2017  路  3Comments  路  Source: prisma/prisma1

It would be great if subscriptions also worked for nested nodes. E.g.: If somebody wants to subscribe to new posts and these posts are a relation in the current user.

aresubscriptions

Most helpful comment

Clarified that my suggestion above was the right approach here :slightly_smiling_face:

All 3 comments

You can subscribe to new posts of a specific user like this:

subscription {
  Post(filter: {
    mutation_in: [CREATED],
    node: {
      user: {
        id: $userId
      }
    }
  }) {
    id
  }
}

Or are you talking about something else?

Clarified that my suggestion above was the right approach here :slightly_smiling_face:

146 is a related feature quest for relation triggers of subscriptions

Was this page helpful?
0 / 5 - 0 ratings

Related issues

blocka picture blocka  路  74Comments

Bradly-kunthrope picture Bradly-kunthrope  路  37Comments

marktani picture marktani  路  62Comments

sorenbs picture sorenbs  路  52Comments

marktani picture marktani  路  35Comments