#connecting to mongodb

3 messages · Page 1 of 1 (latest)

grim ocean
#

Hi guys
I am new to Deno. I was following a tutorial and I was learning about how to connect my Deno backend to MongoDB. If I am honest the Tutorial I am watching right is a little bit old and so many things changed since the video came out. Can someone help how I can connect to my MongoDB database?
Thank you

elfin notch
#

@grim ocean
Just:

import mongoose from 'npm:mongoose';
grim ocean
#

Hi Dear Arth.
Thank you for the help. I will try this. But is there any way that I can only use MongoDB not mongoose?
I used mongoose when I work with node. But I need to know how MongoDB works with Deno under the hood.