Is there a way in GraphQL to “flatten” a particular node:
{
graph(func: eq(msisdn,"operator")){
Transfer @filter(ge(at, "2017-06-30T11:00:00Z") and lt(at, "2017-06-30T12:00:00Z")) {
xid
amount
from
to
at
t
type {
xid
}
}
}
}
produces:
"Transfer": [
{
"xid": "xxx",
"amount": 11881700,
"to": "yyy",
"at": "2017-06-30T11:24:40Z",
"type": [
{
"xid": "TRANSFER"
}
]
},
but it would be nice to have:
"Transfer": [
{
"xid": "xxx",
"amount": 11881700,
"to": "yyy",
"at": "2017-06-30T11:24:40Z",
"type": "TRANSFER"
},