Database Connection

Can anyone tell me how to connect my mongodb database to backend?