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

i am followingt this documentation. 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”, please suggest me something

1 Like

Hi @dangerhulk26022022 :wave:

Welcome to the Community! :sunglasses:

I’m not a Mongo expert, but it sounds like this may explain why you are experiencing the problem you describe.

:thinking: 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” do determine which libraries are available; looks like there are a number of library packages available for mongodb (see here 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 :slightly_smiling_face:

3 Likes

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