How can I use MongoDB node.js driver with electron.js

I am trying to create a mongo gui using mongodb nodejs driver, electronjs and vue template. What I am trying to do is suppose a user will enter a connection url than it will be connected from a ts file