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

tdeer
  • 135
  • 1
  • 6

0 Answers0