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
cyril
shared this idea