List Inputs
Get input based on its identifier
input(
index: Int!
): Input!
Arguments
index (Int!)
Type
Input
Request submitted to the application to advance its state.
Example usage
1. Get an input based on its inputIndex:
query inputByIndex($inputIndex: Int!) {
input(index: $inputIndex) {
index
payload
}
}
{
"inputIndex": 0
}
In this example, the query is set to retrieve the input at inputIndex 0.
Get inputs with support for pagination
inputs(
first: Int
last: Int
after: String
before: String
where: InputFilter
): InputConnection!
Arguments
first (Int)
Get at most the first n entries (forward pagination).
last (Int)
Get at most the last n entries (backward pagination).
after (String)
Get entries that come after the provided cursor (forward pagination).
before (String)
Get entries that come before the provided cursor (backward pagination).
where (InputFilter)
Type
InputConnection
Pagination result.
Example usage
1. Query all inputs:
query inputs {
inputs {
edges {
node {
index
payload
}
}
}
}
In this example, the query retrieves all inputs with their respective indices and payloads.