MongoDB Stitch is an amazing Back-end as a Service that provides a framework for integrating services from virtually any publicly available API. I've written a bunch on this at MongoDB's Blog but in this article, I'll share with you how easy it is to integrate data from Google Sheets into MongoDB using MongoDB Stitch.
There are two key elements that make this solution work. First, we have a Google Sheets script which runs from a menu item we add to the sheet. This script collects a row of data at a time and POSTs it to a MongoDB Stitch HTTP Service incoming webhook. The second is the function that runs when the webhook is called — this is where the data is received and inserted into a MongoDB Database Collection.
Here's an example spreadsheet that contains data for my team's event tracking spreadsheet.
|Event||URL||Type||Date Start||Date End||Location||Status||Owner|
|HopHacks Spring 2019||https://hophacks.com/||Hackathon||15-Feb-2019||17-Feb-2019||Baltimore, MD||Deferred||Jess|
|Confoo||http://confoo.ca||FM Event||13-Mar-2019||15-Mar-2019||Montreal, Canada||Researching||Carey|