I’m having some issues adding facets to an edge in my graph. The mutation seems to work but I am unable to query for the facet. Here is my mutation (all the uids already exist):
{
"set": {
"uid": "0x62da3",
"catalog": [
{
"uid": "0x1b4"
},
{
"uid": "0x1d6"
},
{
"uid": "0x281"
},
{
"uid": "0x2e5"
}
],
"catalog|shipping": {
"0": "ITEM",
"1": "ITEM",
"2": "ITEM",
"3": "ITEM"
}
}
}
Which successfully gives me a response:
{
"data": {
"code": "Success",
"message": "Done",
"queries": null,
"uids": {}
},
"extensions": {
"server_latency": {
"parsing_ns": 59000,
"processing_ns": 17881600,
"assign_timestamp_ns": 2207800,
"total_ns": 20393000
},
"txn": {
"start_ts": 974,
"commit_ts": 975,
"preds": [
"1-catalog"
]
}
}
}
So then I try to test that the facet exists with this query:
{
products(func: uid(0x62da3)) {
uid
catalog @facets {
uid
region.name
}
}
}
But I do not see any facets in the response:
{
"data": {
"products": [
{
"uid": "0x62da3",
"catalog": [
{
"uid": "0x1b4",
"region.name": "FL"
},
{
"uid": "0x1d6",
"region.name": "OOM"
},
{
"uid": "0x281",
"region.name": "TX"
},
{
"uid": "0x2e5",
"region.name": "SE"
}
]
}
]
},
"extensions": {
"server_latency": {
"parsing_ns": 252100,
"processing_ns": 3035100,
"encoding_ns": 285000,
"assign_timestamp_ns": 9195000,
"total_ns": 13182800
},
"txn": {
"start_ts": 978
},
"metrics": {
"num_uids": {
"": 1,
"_total": 11,
"catalog": 1,
"region.name": 4,
"uid": 5
}
}
}
}
Any idea what im doing wrong here?