How to integrate postgres with serverless?

i want to integrate postgres in serverless in node.js . i am a nobe in serverless.
i want to know how i can acheive this and what serverless.yml will look like . any demo code/forums/blogs will be appreciated.