Problem with connection with my custom database mongodb

I was trying with:
const MongoClient = require(‘mongodb@5.7.0’).MongoClient;
const MongoClient = require(‘mongodb@5.1.0’).MongoClient;
const MongoClient = require(‘mongodb@3.1.4’).MongoClient;(default)

function getByEmail(email, callback) {
const MongoClient = require(‘mongodb’).MongoClient;
const client = new MongoClient(‘mongodb+srv://’+configuration.user+‘:’+configuration.password+‘’);

client.connect(function (err) {
if (err) return callback(err);

const db = client.db('Node-API');
const users = db.collection('users');

users.findOne({ email: email }, function (err, user) {

  if (err) return callback(err);
  if (!user) return callback(null, null);

  return callback(null, {
    user_id: user._id.toString(),
    nickname: user.nickname,