Update using GrahpQL

With regard to the subscription on update issue:

  1. the query result block needs to include values that are part of the mutation.

    subscription testSubscription {
        querySensor {
            xid
            value # this!!!
        }
    }
    

    this is useful for monitoring only some predicates that are changed.

  2. the update will need to effect some change in order for a subscription query to fire. For instance, updating the sensor value with 10 if the existing value is 10 will not trigger the subscription query.

With regard to the “multiple node update” issue (BTW, best to separate issues into their own posts), none of the proposed changes in the post you referred to were implemented. In cases where GraphQL is lacking, it usually means it’s time to dust off that DQL manual.