Skip to main content
Version: 2024.3

Alias

Simply gives the child node a different name.

If you are looking for a way to directly use aliases in a GraphQL query, please see 11_Using_Aliases.md .

Configuration

alias_config.pngalias_config.pngalias_config.png

  • Attribute: The new name for the field to be used in the query.

Example

alias_example.pngalias_example.pngalias_example.png

Request:

{
getCar(id: 82) {
id,
key,
AliasForKey
}
}

Response:

{
"data": {
"getCar": {
"id": "81",
"key": "Cobra 427",
"AliasForKey": "Cobra 427"
}
}
}