diff --git a/examples/with-mongodb/util/mongodb.js b/examples/with-mongodb/util/mongodb.js index 5da2e6a10b797..12db0928f904d 100644 --- a/examples/with-mongodb/util/mongodb.js +++ b/examples/with-mongodb/util/mongodb.js @@ -1,6 +1,7 @@ import { MongoClient } from 'mongodb' -const { MONGODB_URI, MONGODB_DB } = process.env +const MONGODB_URI = process.env.MONGODB_URI +const MONGODB_DB = process.env.MONGODB_DB if (!MONGODB_URI) { throw new Error(