+ Start a Discussion
Timothy Gentet O'BrienTimothy Gentet O'Brien 

Retrieve data from database with LWC OSS

I have been messing around with the LWC OSS Components (https://lwc.dev/)... 

But I am a little lost, I assumed there would have been a straight forward way of retrieving data from a DB or even from Salesforce...

I wanted to use something like Passport along with Mongoose (NodeJS modules), to authenticate then to retrieve data from a MongoDB, to then display stuff out there... but I can't seem to get this to work and I can't find any info online about this yet either :/
Hi Tim,
There are a few ways that you can retrieve data from salesforce.
1. Heroku Connect
    Heroku Connect is the Salesforce add-on which will act as a bridge between salesforce database and Postgres database. After the configuration, You can use Node.Js to get the data from Postgres database.
2. JS Force
    JS Force is the NPM module to connect salesforce with Node.Js

Please refer the below link for above points.
1. https://www.heroku.com/connect
2. https://jsforce.github.io/start/ (https://www.heroku.com/connect)
Timothy Gentet O'BrienTimothy Gentet O'Brien
@SEKAR RAJ 19 - thanks for this, I'm using Heroku and trying to convert a project with JSForce into a Web Component project using the LWC OSS library... I am fine with this usage it's how to actually connect to the DB or provide the data direct within the application.