function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ 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 :/
SEKAR RAJ.SEKAR RAJ.
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)
 
Thanks
SEKAR RAJ
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.