// THIS ONE IS THE BASE FOR GETTING COMMENTS FOR SPECIFIC PODCAST 


app.get('/podcasts', async (req, res) => {
  const {where, and, slowEqual, type, toPromise }  = require('ssb-db2/operators') // enables the commands to be used
  const podcasts = await ssb.db.query( 
    where( // select inside the list with the requirements of multiple things, "and"
      type('podcast') //specifically podcasts
    ),
    toPromise() // whenever it has promised the await is waiting the responses
  )

  res.send({ podcasts: podcasts }) 
})