it was a minor thing actually. worked using the below mutation/query
Mutation to add transaction properties
{
"set": [
{
"uid": "0x17",
"accountNumber": "110011",
"dgraph.type": "Account",
"transactions": [
{
"uid": "0x18",
"transactions|amount" : 1000
},
{
"uid": "0x19",
"transactions|amount" : 100
}
]
},
{
"uid": "0x18",
"accountNumber": "110012",
"dgraph.type": "Account",
"transactions": [
{
"uid": "0x19",
"transactions|amount" : 10
},
{
"uid": "0x1a",
"transactions|amount" : 1000
},
{
"uid": "0x1b",
"transactions|amount" : 10
},
{
"uid": "0x1c",
"transactions|amount" : 10
},
{
"uid": "0x1d",
"transactions|amount" : 10
}
]
},
{
"uid": "0x19",
"accountNumber": "110013",
"dgraph.type": "Account",
"transactions": [
{
"uid": "0x1d",
"transactions|amount" : 10
},
{
"uid": "0x1a",
"transactions|amount" : 10
}
]
},
{
"uid": "0x1a",
"accountNumber": "110014",
"dgraph.type": "Account",
"transactions": [
{
"uid": "0x1c",
"transactions|amount" : 10
}
]
},
{
"uid": "0x1b",
"accountNumber": "110015",
"dgraph.type": "Account"
},
{
"uid": "0x1c",
"accountNumber": "110016",
"dgraph.type": "Account"
},
{
"uid": "0x1d",
"accountNumber": "110017",
"dgraph.type": "Account",
"transactions": [
{
"uid": "0x1a",
"transactions|amount" : 1000
}
]
}
]
}
Query to fetch transaction/edge properties as well
{
find_transaction(func: eq(accountNumber, "110011")) @recurse(depth: 20, loop: true) {
uid
transactions @facets(amount)
}
}