Filter results in loopback change-stream
Asked Answered
C

0

7

does Strongloop Loopback support filtering in change-streams?

The following works for all model changes, but I am only interested in changes of parts of the model. Can I add filtering to the EventSource-URL?

var src = new EventSource('/api/mymodel/change-stream?_format=event-source');

var changes = createChangeStream(src);
changes.on('data', function(update) {
      console.log("data changed...", JSON.stringify(update));  
});

Thx

Cacoepy answered 22/4, 2017 at 16:42 Comment(1)
HI, Did you get any solution for this?Keller

© 2022 - 2024 — McMap. All rights reserved.