thunderclient / thunder-client-support

Thunder Client is a lightweight Rest API Client Extension for VS Code.
https://www.thunderclient.com
Other
3.62k stars 127 forks source link

Database connection MongoDB with ThunderClient #1429

Closed Artem0ne closed 8 months ago

Artem0ne commented 9 months ago

Question: Is it possible to build a Database Connection in ThunderClient? In our case we use MongoDB. In the area "Scripting" using Javascript, something like this:

const uri = "mongodb+srv://username>:<password>@<your-cluster-url/test?retryWrites=true&w=majority"; const client = new MongoClient(uri);

Probably also using Node.js module. Is it possible to integrate Node.js in TC? We need some ideas, thank you!

Are you using the free version/paid version/trial: We use paid version (Deutsche Bahn AG)

rangav commented 9 months ago

Hi @Artem0ne

We never tried it, you can try using the scripting and test it.

load any node libraries needed using - https://github.com/rangav/thunder-client-support/blob/master/docs/filters.md#import-node-module

rangav commented 5 months ago

We have improved the loading of Node modules in the new update. Please update to v2.20.0.

You can see all the features released in this update https://github.com/rangav/thunder-client-support/releases/tag/v2.20.0

Please test it and let me know your feedback

Artem0ne commented 5 months ago

Yes, it works fine for mongoDB Database. Thank you!

rangav commented 5 months ago

Thanks for the confirmation