New nodejs agent | override listing collection

Hi,

I am migrating to the new nodejs agent from old agent v9.

The target is to customise a collection “matchs” so that it fusion its content with “matchs_archived”, so the GET /matchs should return the current matchs and the archived ones.

I wonder how to do this using the new agent. In the Doc I see that we can only override the create, update and delete.

Context

  • Project name: …
  • Team name: …
  • Environment name: …
  • Agent technology: (nodejs, php, rails, python)
  • Agent (forest package) name & version: …
  • Database type: …
  • Recent changes made on your end if any: …

Hello @Adel_de_Clevermate,
Indeed, the override list is not implemented. I’m pushing your needs to the product board.

An alternative, but it’s a little bit of work, is to create your own datasource with your custom collection. You can follow this very simple example.

An other alternative, is to create a view in your database to merge your both tables into one, but the view is only supported in read-only mode.

Tell me if you need more help :pray: ,
Alban