Skip to content

Commit

Permalink
bindConstants() schema help doc (#185)
Browse files Browse the repository at this point in the history
* change help doc wording
  • Loading branch information
mfleader committed May 30, 2024
1 parent 3156f50 commit cbf8ad9
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions internal/builtinfunctions/functions.go
Original file line number Diff line number Diff line change
Expand Up @@ -550,10 +550,11 @@ func getBindConstantsFunction() schema.CallableFunction {
schema.NewDisplayValue(
schema.PointerTo("Bind Constants"),
schema.PointerTo(
"Creates a list of objects with ID `CombinedObject`. "+
fmt.Sprintf("Each object has two properties `%s` and `%s`.\n", CombinedObjPropertyItemName, CombinedObjPropertyConstantName)+
fmt.Sprintf("Param 1: Value(s) to be included in the `%s` field \n", CombinedObjPropertyItemName)+
fmt.Sprintf("Param 2: Value(s) to populate the field `%s` with every output item", CombinedObjPropertyConstantName)),
fmt.Sprintf("Returns a list of objects each containing two "+
"properties. The `%s` property contains the corresponding "+
"item from the list in the first parameter, and the `%s` "+
"property contains the value of the second input parameter. ",
CombinedObjPropertyItemName, CombinedObjPropertyConstantName)),
nil),
func(items []any, columnValues any) (any, error) {
combinedItems := make([]any, len(items))
Expand Down

0 comments on commit cbf8ad9

Please sign in to comment.