In order for the plugin to work correctly and return the full mongo-db data inside of a document in the specified collection go to your strapi backend server:
- Run
npx strapi generate:api dump
- Routes file should contain:
{ "routes": [ { "method": "GET", "path": "/dumps/:collectionName", "handler": "dump.find", "config": { "policies": [] } } ] }
- Add custom find method to the controller:
'use strict'; module.exports = { async find(ctx) { const {collectionName} = ctx.params; const entities = await strapi.query(collectionName).model.find(); return entities; }, };