NodeJS and Social Meta Tags

A dynamic NodeJS page queries the database and receives the data of a record (cod / title / description / image)
I would like to configure all the meta tags for sharing on social networks (especially Facebook) with the correct dynamic fields for a good view of the record
Is there a tutorial or example that clarifies this problem?

Hi.
These links should help. The key here is to understand how server side data option works in NodeJS.


Thanks
I read everything and hope to resolve smoothly

Teodor, an important preventive question.
The site I am working on is already structured with numerous Back-end and Front-end pages, all fully functional
But the “Link Relative to” option is configured as “Document”
If I change to “Site Root” I think all links will stop working properly, which would be a disaster