Netlify serverless functions vs Next.js API Routes?

Bump on this thread.

In particular, is this approach of connecting to MongoDB atlas via Next.js API routes on Netlify possible?

I’m a bit confused after reading this thread: