Mongodb Atlas Connection Connects Through mongosh but not with Drivers option

Hi I want to ask that why I am able to connect to mongodb atlas database through mongosh option but not able to do that with Drivers option can any body tell me ? By the way I am using mongoose to connect to the mongodb atlas in node js

If you are using the same URI from the same location it should work in both.

It is absolutely impossible for us to know what you are doing wrong and why you are

You will need to share with us how you try to connect in both. You will need to share with us any error message you get.