You need to sign in to do that
Don't have an account?
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 :/
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 :/
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)
Thanks
SEKAR RAJ