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:

Show:
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

ParameterTypeRequiredDefaultStabilityDescription
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
descriptionstringyes  The description for the external function.
kindKindInputyes  The kind of external function. It defines how the external function is executed. See KindInput.
namestringyes  The name of the external function.
parameters[ParameterSpecificationInput]yes  The parameter specifications for the external function. See ParameterSpecificationInput.
procedureURLstringyes  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

ParameterTypeRequiredDefaultStabilityDescription
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
descriptionstringyes PreviewThe description for the external function.
kindKindOutputyes PreviewThe kind of external function, how it's executed. See KindOutput.
namestringyes PreviewThe name of the external function.
parameters[ParameterSpecificationOutput]yes PreviewThe parameter specifications for the external function. See ParameterSpecificationOutput.
procedureURLstringyes PreviewThe URL for the external function.