New Feature Requests for subscriptions

prisma

#1
  1. Subscription notifications sent for every update on the GQL data even though there is no change in it’s value - sending notification only in case of change in data for a field will help a lot to avoid unwanted notifications on the client side
  2. Multiple domain(light, wastemgmt, parking) subscriptions with one socket connection, currently one domain one subscription but if i have to subscribe to multiple domains then it will be a over head from the client perspective

#2
  1. To my understanding that is already how it behaves. Can you provide a concrete example where this is not the case?
  2. This has been brought up before here: https://github.com/prismagraphql/prisma/issues/214 :slight_smile:

#3

Thanks Nilan,
For point number 1.
a) I have 5 attributes in my schema and have some value
eg:
id:“1234”
deviceId:“abc”
locationid:“1004”
status:“on”
tenantId:“xyz”

b) Now i subscribe for that tenant.
subscription{
Light(filter:{
mutation_in:[CREATED,UPDATED,DELETED]
node:{
tenantId:“xyz”
}
}) {
node {
id
status
}
}
}

C) Now i perform update on with same values,
ie,
id:“1234”
deviceId:“abc”
locationid:“1004”
status:“on”
tenantId:“xyz”

D) a notification will be received even though the status value has not changed
E) is there any way to restrict the notifications if the value has not changed.