Joining multiple collection in an API

I implemented rest API using the nimble:restivus package. Its working fine when I fetch data from one mongoDB collection. What if I need to join multiple collections. Join works fine when I use publish subscribe. But the problem is that subscribe only works on client side. So, Is there a way to join multiple collections in an API and send the documents obtained to the client through an API??