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

tbrannam picture tbrannam  路  3Comments

jannone picture jannone  路  3Comments

AlessandroAnnini picture AlessandroAnnini  路  3Comments

schickling picture schickling  路  3Comments

notrab picture notrab  路  3Comments