# I am getting a error while trying to use mongoDb as user store with autho

**URL:** <https://community.auth0.com/t/i-am-getting-a-error-while-trying-to-use-mongodb-as-user-store-with-autho/106853>\
**Category:** Get Help\
**Tags:** extensions, auth0-logs-to-application-insights\
**Created:** [May 13, 2023, 12:17pm UTC](https://community.auth0.com/t/i-am-getting-a-error-while-trying-to-use-mongodb-as-user-store-with-autho/106853 "2023-05-13T12:17:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dangerhulk26022022](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dangerhulk26022022/32/47188_2.png) [@dangerhulk26022022](https://community.auth0.com/u/dangerhulk26022022)\
**Post date:** [May 13, 2023, 12:17pm UTC](https://community.auth0.com/t/i-am-getting-a-error-while-trying-to-use-mongodb-as-user-store-with-autho/106853/1 "2023-05-13T12:17:10Z")

</div>

i am followingt this [documentation](https://manage.auth0.com/dashboard/us/dev-undfm4esb8mmhtyn/connections/database/con_dMiLQ86z67sirey3/plug). when i click save and try at create script . it is throwing this error “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)”, please suggest me something

---

<div class="post-metadata">

**Author:** ![peter.fernandez](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/peter.fernandez/32/45477_2.png) [@peter.fernandez](https://community.auth0.com/u/peter.fernandez)\
**Post date:** [May 15, 2023, 11:38am UTC](https://community.auth0.com/t/i-am-getting-a-error-while-trying-to-use-mongodb-as-user-store-with-autho/106853/3 "2023-05-15T11:38:49Z")

</div>

Hi @dangerhulk26022022 👋

Welcome to the Community! 🕶

I’m not a Mongo expert, but it sounds like [this](https://www.mongodb.com/docs/v6.0/release-notes/6.0-compatibility/#legacy-opcodes-removed) may explain why you are experiencing the problem you describe.

🤔 The solution may be to `require` a different version of the _mongodb_ library. For Custom Database Connections you can use “[Can I require? - Search which node modules you can use in webtask.io](https://auth0-extensions.github.io/canirequire/)” do determine which libraries are available; looks like there are a number of library packages available for `mongodb` (see [here](https://auth0-extensions.github.io/canirequire/#mongodb) for more details) so perhaps trying an explicit version may resolve the issue. Alternatively, you can also request a version if the one you need is not available.

Hope this helps 🙂

---

<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 29, 2023, 11:39am UTC](https://community.auth0.com/t/i-am-getting-a-error-while-trying-to-use-mongodb-as-user-store-with-autho/106853/4 "2023-05-29T11:39:20Z")

</div>

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