GCP serverless function to get all workouts by:
- type
- date
- wType
- wDate
- month
- year
- comments
~/google-cloud-sdk/bin/gcloud functions deploy go_gcp_cfunc_mongo_workouts --trigger-http --runtime=go116 --entry-point=GetWorkouts --allow-unauthenticated --memory=256MB
gcloud functions logs read
gcloud functions logs read FUNCTION_NAME --execution-id EXECUTION_ID
Install Mongo Tools
mongodb+srv://<credentials>@cluster0.t1yi6.mongodb.net/myFirstDatabase?appName=mongosh+1.6.0
# import
mongoimport --db=workouts --collection=workouts --type=csv --headerline --file=/home/malandr/Downloads/'workouts-Grid view.csv'
mongosh "mongodb+srv://cluster0.t1yi6.mongodb.net/myFirstDatabase" --apiVersion 1 --username <usern