如何从Node.js中的获取选项获取集合名称

我试图从mongodb获取表数据取决于传递的集合名称。在我的角度项目中,我有一份服务。我通过get方法传递集合名称,但是我不知道如何在gettable数据方法中获取该集合名称。

product.component.js:

    ngOnInit(){ 
     this.getProductsData('table'); 
    }

    getProductsData(collection){ 
     this.userService.getTableData(collection).subscribe(
      res => {
        this.tableData =  res; 
      },
      err => {
        console.log(err);

      }
    );

  }

user.service.ts:

getTableData(collection){ 
return this.http.get('http://localhost:3000/api/getTableData',collection);
}

table.controller.js // Nodejs

    const mongoose = require('mongoose');
const passport = require('passport');
const _ = require('lodash');

var userSchemaTable = new mongoose.Schema({
    product_name: {
        type: String
    },
    price: {
        type: String
    },
    catogery: {
        type: String
    }
}, { collection: 'table' });


mongoose.model('table', userSchemaTable);

const Table = mongoose.model('table');

module.exports.getTableData = (req, res, next) => {

    console.log(collection)

    How to get collection name here??????????????????????

  collection.find({}, function(err, docs) {
        if (err) {
            console.log('ss' + err);
            return
        }
        return res.json(docs)
    }) 
}