createOrUpdateExternalFunction()
API Stability |
Preview
|
The createOrUpdateExternalFunction() GraphQL mutation field is used to creates or updates an external function specification. This is a preview and may change.
Syntax
Below is the syntax for the createOrUpdateExternalFunction() mutation field:
graphql
createOrUpdateExternalFunction(
input: CreateOrUpdateExternalFunctionInput!
): ExternalFunctionSpecificationOutput!
Below is an example of how this mutation field might be used:
graphql
mutation {
createOrUpdateExternalFunction(input:
{ name: "my-ext-function",
procedureURL: "https://function.company.com",
parameters: [{name: "parameter1", parameterType: String } ],
description: "Cool External Function",
kind: { name: General }
} )
{ name }
}
Given Datatypes
For
CreateOrUpdateExternalFunctionInput
,
there are a few parameters. Below is a list of them:
Table: CreateOrUpdateExternalFunctionInput
Parameter | Type | Required | Default | Stability | Description |
---|---|---|---|---|---|
Some arguments may be required, as indicated in the Required column. For some fields, this column indicates that a result will always be returned for this column. | |||||
Table last updated: Sep 17, 2024 | |||||
description | string | yes | The description for the external function. | ||
kind | KindInput | yes | The kind of external function. It defines how the external function is executed. See KindInput . | ||
name | string | yes | The name of the external function. | ||
parameters | [ParameterSpecificationInput ] | yes | The parameter specifications for the external function. See ParameterSpecificationInput . | ||
procedureURL | string | yes | The URL for the external function. |
Returned Datatypes
As indicated by the syntax above, this mutation will return data
using the datatype,
ExternalFunctionSpecificationOutput
.
Below is the parameter of that datatype:
Table: ExternalFunctionSpecificationOutput
Parameter | Type | Required | Default | Stability | Description |
---|---|---|---|---|---|
Some arguments may be required, as indicated in the Required column. For some fields, this column indicates that a result will always be returned for this column. | |||||
Table last updated: Sep 24, 2024 | |||||
description | string | yes | Preview | The description for the external function. | |
kind | KindOutput | yes | Preview | The kind of external function, how it's executed. See KindOutput . | |
name | string | yes | Preview | The name of the external function. | |
parameters | [ParameterSpecificationOutput ] | yes | Preview | The parameter specifications for the external function. See ParameterSpecificationOutput . | |
procedureURL | string | yes | Preview | The URL for the external function. |