How do I end the entire routing function in the mongodb callback?

as shown in the figure, how to stop executing all the following code after each return.
clipboard.png

Mar.01,2021

there is no good way to use callbacks. Because they are all asynchronous, your database operations are basically carried out immediately. It is recommended that you use promise combined with async/await to do it.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1ea7cf9-1e83.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1ea7cf9-1e83.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?