This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Create an object which contains keys for each column in the spreadsheet | |
var columns = { // 0 indexed | |
id :0, | |
property1 : 1, | |
property2 : 2, | |
} | |
/**** | |
* This function runs automatically and adds a menu item to Google Sheets |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
exports = async function(payload) { | |
const mongodb = context.services.get("mongodb-atlas"); | |
//const {flavor} = payload.query; | |
const flavor = 'test'; | |
const myDB = mongodb.db(`YOURDB`);//TODO: replace | |
const myCollection = myDB.collection(`myCollection`); //TODO: replace | |
const body = payload.body.text(); | |
const reqBody = JSON.parse(body); | |
console.log("Request body:", reqBody); | |
console.log(body); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file | |
// for details. All rights reserved. Use of this source code is governed by a | |
// BSD-style license that can be found in the LICENSE file. | |
import 'package:flutter/material.dart'; | |
void main() => runApp(MyApp()); | |
class MyApp extends StatelessWidget { | |
@override |