# New MongoDB version is not supported in Auth0

**URL:** <https://community.auth0.com/t/new-mongodb-version-is-not-supported-in-auth0/104826>\
**Category:** Get Help\
**Tags:** custom-database-connections, connections\
**Created:** [April 16, 2023, 6:02pm UTC](https://community.auth0.com/t/new-mongodb-version-is-not-supported-in-auth0/104826 "2023-04-16T18:02:12Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![erfan.saraj](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/erfan.saraj/32/42414_2.png) [@erfan.saraj](https://community.auth0.com/u/erfan.saraj)\
**Post date:** [April 16, 2023, 6:02pm UTC](https://community.auth0.com/t/new-mongodb-version-is-not-supported-in-auth0/104826/1 "2023-04-16T18:02:12Z")

</div>

I am getting this error on users trying to login/signup with custom database mongodb:

Unsupported OP\_QUERY command: find. The client driver may require an upgrade. For more details see [https://dochub.mongodb.org/core/legacy-opcode-removal](https://dochub.mongodb.org/core/legacy-opcode-removal)

It seems that the new MongoDB version does not support version 3.1.4 which is used in auth0.  
Please, help as I am in urgent need to resolve this, my non-social users cannot login anymore.

---

<div class="post-metadata">

**Author:** ![tolgahanbora](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/tolgahanbora/32/46412_2.png) [@tolgahanbora](https://community.auth0.com/u/tolgahanbora)\
**Post date:** [April 20, 2023, 10:05pm UTC](https://community.auth0.com/t/new-mongodb-version-is-not-supported-in-auth0/104826/3 "2023-04-20T22:05:18Z")

</div>

I got same issues i didn’t fix that, i will never use auth0 in my project. waste support and waste errors. I thought pay to win.

---

<div class="post-metadata">

**Author:** ![nathanieldpownell](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nathanieldpownell/32/48877_2.png) [@nathanieldpownell](https://community.auth0.com/u/nathanieldpownell)\
**Post date:** [May 2, 2023, 12:19am UTC](https://community.auth0.com/t/new-mongodb-version-is-not-supported-in-auth0/104826/4 "2023-05-02T00:19:07Z")

</div>

Experiencing the same issue.

So far I haven’t found any helpful resources. If I find anything to help us reach a solution, I will post it here.

---

<div class="post-metadata">

**Author:** ![nathanieldpownell](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nathanieldpownell/32/48877_2.png) [@nathanieldpownell](https://community.auth0.com/u/nathanieldpownell)\
**Post date:** [May 2, 2023, 8:33pm UTC](https://community.auth0.com/t/new-mongodb-version-is-not-supported-in-auth0/104826/5 "2023-05-02T20:33:54Z")

</div>

I’ve found that removing the version specification from the MongoClient declaration seems to work.

```auto
  const MongoClient = require('mongodb').MongoClient;

```

It’s working for me now but I can’t say for sure this is a long-term solution.

---

<div class="post-metadata">

**Author:** ![muffi606](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/muffi606/32/46935_2.png) [@muffi606](https://community.auth0.com/u/muffi606)\
**Post date:** [May 5, 2023, 11:25am UTC](https://community.auth0.com/t/new-mongodb-version-is-not-supported-in-auth0/104826/7 "2023-05-05T11:25:58Z")

</div>

This worked for me aswell, thanks

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [May 12, 2023, 12:30pm UTC](https://community.auth0.com/t/new-mongodb-version-is-not-supported-in-auth0/104826/9 "2023-05-12T12:30:46Z")

</div>

Perfect! Teamwork makes the dreamwork!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [May 26, 2023, 12:31pm UTC](https://community.auth0.com/t/new-mongodb-version-is-not-supported-in-auth0/104826/10 "2023-05-26T12:31:16Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
