MongoError: cannot do raw queries on admin in atlas

How do I fix this problem in my glitch app:

MongoError: cannot do raw queries on admin in atlas

link to my app:
glitch app

In the connection string, change /admin to the name of the database which has your data, example /test

3 Likes

Worked for me.
Thank you.

Worked for me too. Thank you so much!