Skip to content
Discussion options

You must be logged in to vote

Parentheses aren't needed.
clientPromise should be used like this:
const client = await clientPromise;
const db = await client.db('optional db name');

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@andytubeee
Comment options

@zneb
Comment options

@andytubeee
Comment options

Answer selected by andytubeee
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants