/AWS1/CL_APY=>CREATEFUNCTION()
¶
About CreateFunction¶
Creates a Function
object.
A function is a reusable entity. You can use multiple functions to compose the resolver logic.
Method Signature¶
IMPORTING¶
Required arguments:¶
IV_APIID
TYPE /AWS1/APYSTRING
/AWS1/APYSTRING
¶
The GraphQL API ID.
IV_NAME
TYPE /AWS1/APYRESOURCENAME
/AWS1/APYRESOURCENAME
¶
The
Function
name. The function name does not have to be unique.
IV_DATASOURCENAME
TYPE /AWS1/APYRESOURCENAME
/AWS1/APYRESOURCENAME
¶
The
Function
DataSource
name.
Optional arguments:¶
IV_DESCRIPTION
TYPE /AWS1/APYSTRING
/AWS1/APYSTRING
¶
The
Function
description.
IV_REQUESTMAPPINGTEMPLATE
TYPE /AWS1/APYMAPPINGTEMPLATE
/AWS1/APYMAPPINGTEMPLATE
¶
The
Function
request mapping template. Functions support only the 2018-05-29 version of the request mapping template.
IV_RESPONSEMAPPINGTEMPLATE
TYPE /AWS1/APYMAPPINGTEMPLATE
/AWS1/APYMAPPINGTEMPLATE
¶
The
Function
response mapping template.
IV_FUNCTIONVERSION
TYPE /AWS1/APYSTRING
/AWS1/APYSTRING
¶
The
version
of the request mapping template. Currently, the supported value is 2018-05-29. Note that when using VTL and mapping templates, thefunctionVersion
is required.
IO_SYNCCONFIG
TYPE REF TO /AWS1/CL_APYSYNCCONFIG
/AWS1/CL_APYSYNCCONFIG
¶
syncConfig
IV_MAXBATCHSIZE
TYPE /AWS1/APYMAXBATCHSIZE
/AWS1/APYMAXBATCHSIZE
¶
The maximum batching size for a resolver.
IO_RUNTIME
TYPE REF TO /AWS1/CL_APYAPPSYNCRUNTIME
/AWS1/CL_APYAPPSYNCRUNTIME
¶
runtime
IV_CODE
TYPE /AWS1/APYCODE
/AWS1/APYCODE
¶
The
function
code that contains the request and response functions. When code is used, theruntime
is required. Theruntime
value must beAPPSYNC_JS
.