integreat-io / integreat

Node.js integration layer
Other
13 stars 3 forks source link

Support direct deletion in `EXPIRE` handler #327

Closed kjellmorten closed 7 months ago

kjellmorten commented 7 months ago

The basic functionality of the EXPIRE handler is to fetch the expired items and then run a DELETE action with their ids. This might be the only way with some services, but we should also support sending a DELETE action directly, with some params that will be used in a filter.

As an example, MongoDb will be able to use the same params as we use for GET, to delete without fetching first.