diff --git a/clients/go/function/function.go b/clients/go/function/function.go index 7330f49..7554592 100755 --- a/clients/go/function/function.go +++ b/clients/go/function/function.go @@ -72,6 +72,8 @@ type DeployRequest struct { // entry point, ie. handler name in the source code // if not provided, defaults to the name parameter Entrypoint string `json:"entrypoint"` + // environment variables to pass in + EnvVars map[string]string `json:"envVars"` // function name Name string `json:"name"` // project is used for namespacing your functions diff --git a/clients/ts/package.json b/clients/ts/package.json index 8db5393..72def26 100644 --- a/clients/ts/package.json +++ b/clients/ts/package.json @@ -76,5 +76,5 @@ "prepare": "npm run build" }, "types": "index.d.ts", - "version": "1.0.565" + "version": "1.0.566" } \ No newline at end of file diff --git a/examples/db/create/go/createARecord.go b/examples/db/create/go/createARecord.go index 08be46f..283dd5d 100755 --- a/examples/db/create/go/createARecord.go +++ b/examples/db/create/go/createARecord.go @@ -12,10 +12,10 @@ func CreateArecord() { dbService := db.NewDbService(os.Getenv("MICRO_API_TOKEN")) rsp, err := dbService.Create(&db.CreateRequest{ Record: map[string]interface{}{ - "age": 42, - "isActive": true, "id": "1", "name": "Jane", + "age": 42, + "isActive": true, }, Table: "users", })