You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
also when I add const database=await client.db("dbName"), I get an error as TypeError [ERR_UNKNOWN_ENCODING]: Unknown encoding: TypeError: client.db is not a function
Its the same when I use url as const uri = "mongodb+srv://userName:[email protected]/?retryWrites=true&w=majority&appName=book-an-appointment-cluster";
Please lemme know where I'm going wrong.
Thanks,
Sunny
The text was updated successfully, but these errors were encountered:
Please take a look at the readme. The API is different then how you are using it, connect doesn't return anything. And i would suggest you to use Deno.serve(() => new Response("Hello World")) instead of node:http
I'm trying to list collections using the below code in playground. I see only the message
Connected!!!
in output.also when I add
const database=await client.db("dbName")
, I get an error asTypeError [ERR_UNKNOWN_ENCODING]: Unknown encoding: TypeError: client.db is not a function
Its the same when I use
url
asconst uri = "mongodb+srv://userName:[email protected]/?retryWrites=true&w=majority&appName=book-an-appointment-cluster";
Please lemme know where I'm going wrong.
Thanks,
Sunny
The text was updated successfully, but these errors were encountered: