Lambda function to create Estimate and Invoice PDF files
- when building for first time, ran into issue as outlined here
In an attempt to balance simplicity with testablity etc. this layout seems to work fairly well. However, I'm also inspired by what I see here (repo) and may adopt some of those principles.
An example of accessing atlas from a Realm function:
const db = context.services.get("mongodb-atlas").db("shorthills").collection("Estimate");
db.updateOne({_id: _id}, {$set: {'updatedAt': new Date()}});