i have this object in my dgraph db
{
"data": {
"all": [
{
"uid": "0x1388e",
"creatorId": "8268d155-e45d-4531-9e17-16d2b9fb7ccv",
"ownerId": "8268d155-e45d-4531-9e17-16d2b9fb7cll",
"title": "testar",
"description": "duscriptiontest",
"poster": "2.png",
"logo": "logo3.png",
"categories": [
"ورزشی"
],
"publish": true,
"createdAt": "2022-01-19T19:04:31.551492863+03:30",
"updatedAt": "2022-01-19T19:04:31.551492914+03:30",
"UGCViewCount": 0,
"clipViewCount": 0,
"channel": {
"uid": "0x1388c",
"title": "testook",
"publish": true,
"createdAt": "2022-01-19T19:00:17.834570385+03:30",
"updatedAt": "2022-01-19T19:00:17.83457046+03:30",
"UGCViewCount": 0,
"clipViewCount": 0
}
}
]
}
i want query on channel fields in my object . i use following code but that is not work.
{
all(func: type(Program)) @filter(eq(Program.Channel.publish,true)){
uid,
}
}
anyone has idea about this ?