Configuration
APIkit for GraphQL Module Reference
Integrate GraphQL APIs in Mule with the APIkit for GraphQL module: reference the GraphQL schema artifact, tune router limits, and wire Route, Serialize, and data fetcher or loader sources. Later sections document configuration parameters, operations, and sources for the XML you generate or edit after scaffolding.
Configurations
Config
Default configuration
Parameters
Name |
Type |
Description |
Default Value |
Required |
|
String |
The name for this configuration. Connectors reference the configuration with this name. |
None |
Yes |
|
String |
Defines the path to the API definition resource, for example: |
None |
Yes |
|
Boolean |
Enables schema introspection. |
false |
No |
|
Number |
The maximum depth a query can have. The value must be greater than 1. |
100 |
No |
|
Number |
The maximum number of data fields a query can include. The value must be greater than 1. |
100 |
No |
|
String |
The identifier of this element is used to reference it in other components. |
None |
Yes |
Operations
Route
<graphql-router:route>
Parameters
| Name | Type | Description | Default Value | Required |
|---|---|---|---|---|
String |
The name of the configuration to use |
None |
Yes |
|
|
Any |
Content of the message (usually, the payload) |
#[payload] |
No |
|
String |
The MIME type of the payload that this operation outputs. |
None |
No |
|
String |
The encoding of the payload that this operation outputs |
None |
No |
|
ConfigurationProvider |
The name of the configuration you use to execute this component |
None |
Yes |
Streaming Strategy |
|
Configure repeatable streaming strategy |
None |
No |
|
String |
The name of a variable on which the operation output is placed |
None |
No |
|
String |
An expression that is evaluated against the operation output and the effect of that expression is stored in the target variable |
#[payload] |
No |
Serialize
<graphql-router:serialize>
Parameters
| Name | Type | Description | Default Value | Required |
|---|---|---|---|---|
|
String |
The name of the configuration you use |
None |
Yes |
|
Any |
Content of the message (usually, the payload) |
#[payload] |
No |
|
ConfigurationProvider |
The name of the configuration you use to execute this component |
None |
Yes |
|
String |
The object-type name |
None |
Yes |
|
String |
The field name |
None |
No |
|
String |
The name of a variable on which the operation output is placed |
None |
No |
|
String |
An expression that is evaluated against the operation output and the effect of that expression is stored in the target variable |
#[payload] |
No |
Serialize Batch
<graphql-router:serialize-batch>
Parameters
| Name | Type | Description | Default Value | Required |
|---|---|---|---|---|
|
String |
The name of the configuration you use |
None |
Yes |
|
String |
The object-type name |
None |
Yes |
|
Any |
Content of the message (usually, the payload) |
#[payload] |
|
|
ConfigurationProvider |
The name of the configuration you use to execute this component |
None |
Yes |
|
String |
The name of a variable on which the operation output is placed |
None |
No |
|
String |
An expression that is evaluated against the operation output and the effect of that expression is stored in the target variable |
#[payload] |
No |
Sources
Data Fetcher
<graphql-router:data-fetcher>
Parameters
| Name | Type | Description | Default Value | Required |
|---|---|---|---|---|
|
String |
The name of the configuration you use |
None |
Yes |
|
String |
The MIME type of the payload that this operation outputs |
None |
No |
|
String |
The encoding of the payload that this operation outputs |
None |
No |
|
ConfigurationProvider |
The name of the configuration you use to execute this component |
None |
Yes |
|
Boolean |
Whether this source must only be executed on the primary node when running in a cluster |
None |
No |
Streaming Strategy |
|
Configure repeatable streaming strategy |
None |
No |
|
Defines a policy for processing the redelivery of the same message |
None |
No |
|
|
String |
The object-type name |
None |
Yes |
|
String |
The field name |
None |
No |
|
Any |
Content of the message (usually, the payload) |
#[payload] |
Data Loader
<graphql-router:data-loader>
Parameters
| Name | Type | Description | Default Value | Required |
|---|---|---|---|---|
|
String |
The name of the configuration you use |
None |
Yes |
|
String |
The object-type name |
None |
Yes |
|
ConfigurationProvider |
The name of the configuration you use to execute this component |
None |
Yes |
|
Boolean |
Whether this source should only be executed on the primary node when running in a cluster |
None |
No |
|
Defines a policy for processing the redelivery of the same message |
None |
No |
|
|
Any |
Content of the message (usually, the payload) |
#[payload] |
Types
Data Fetcher Attributes
| Field | Type | Description | Default Value | Required |
|---|---|---|---|---|
|
String |
Alias of the queried field |
None |
No |
|
Object |
Arguments of the queried field |
None |
No |
|
Object |
Map of subfields selected from this compound type |
None |
No |
|
Any |
Actual value of the fetched field parent |
None |
No |
Repeatable in Memory Stream
| Field | Type | Description | Default Value | Required |
|---|---|---|---|---|
|
Number |
The amount of memory that is allocated to consume the stream and provide random access to it. If the stream contains more data than the buffer capacity, then it is expanded according to the |
None |
No |
|
Number |
How much buffer size expands if it exceeds its initial size. A value of zero or lower specifies that the buffer doesn’t expand. When the buffer is full, a |
None |
No |
|
Number |
The maximum amount of memory used. If more is used, a |
None |
No |
Buffer Unit |
Enumeration, one of:
|
These attributes are expressed in this unit. |
None |
No |
Repeatable File Store Stream
| Field | Type | Description | Default Value | Required |
|---|---|---|---|---|
|
Number |
Defines the maximum memory that the stream uses to keep data in memory. If it consumes more, the stream buffers the content on disk. |
None |
No |
Buffer Unit |
Enumeration, one of:
|
The unit for expressing |
None |
No |
Redelivery Policy
| Field | Type | Description | Default Value | Required |
|---|---|---|---|---|
|
Number |
The maximum number of times a message can be redelivered and processed unsuccessfully before triggering a "Process failed" message. |
None |
No |
|
String |
The secure hashing algorithm to use. If not set, the default is SHA-256. |
SHA-256 |
No |
|
The strategy to use to identify the messages |
None |
No |
|
|
ObjectStore |
The object store where the redelivery counter for each message is stored |
None |
No |
Redelivery Policy Message Identifier
| Field | Type | Description | Default Value | Required |
|---|---|---|---|---|
|
Boolean |
Whether to use a secure hash algorithm to identify a redelivered message |
None |
No |
|
String |
Expressions to use to determine when a message has been redelivered. You can only set this property if useSecureHash is false. |
None |
No |



