javascript - how to use feathersjs filter service? -
hi don't understand filter service , how use. updated node, npm package , node_modules. now, when have been creating new service getting new file , it's look:
/* eslint no-console: 1 */ console.warn('you using default filter users service. more information event filters see https://docs.feathersjs.com/api/events.html#event-filtering'); // eslint-disable-line no-console module.exports = function (data, connection, hook) { // eslint-disable-line no-unused-vars return data; };
how use , filtering service for?
the filters service filtering events emitted service. example, let's have members service. when member created in service 'created' event emitted connected users default. using filters can limit users receive events - may want users belong same group new member receive event. see link more details on events in feathers https://docs.feathersjs.com/api/events.html
Comments
Post a Comment