Realm GraphQL returning “null” when using a GraphQL alias
The issue I am having is with GraphQL aliases. Currently I can run the following query with this result:
Query:
query {
event {
action
}
}
Result:
{
"data": {
"event": {
"action": "create"
}
}
}
Although when I try to use an alias for one of the “action” field, it gives me a null value:
Query:
query {
event {
something: action
}
}
Response:
{
"data": {
"event": {
"something": null
}
}
}
Is GraphQL aliasing not available for the Realm GraphQL API, or am I doing something wrong on my end?
6
votes
![](https://secure.gravatar.com/avatar/8c0373c6839233576e05aa2452d6baaa?size=40&default=https%3A%2F%2Fassets.uvcdn.com%2Fpkg%2Fadmin%2Ficons%2Fuser_70-6bcf9e08938533adb9bac95c3e487cb2a6d4a32f890ca6fdc82e3072e0ea0368.png)