It doesn’t seem related. It only affects one of the nodes at the end of the chain. The PR you mentioned affects all of them Can you query the facet on that node directly to see what you get?
Also, there shouldn’t be two @facets directives in your query. At least when I run a similar query using https://docs.dgraph.io/query-language/#facets-on-scalar-predicates I get an error message saying multiple @facets are not allowed. Either you get all the facets or you only get one of them.
I believe there were good reasons why I had to add the @facets @facets(eq(facet, "required") or eq(facet, "recommended")). Either way it produces no dgraph errors and produces the expected results.
Let me investigate the @facets @facet(%s) issue further since you say it should not be permitted.
@power-f-GOD can you run the query with the ref r9t9rc4ip and 35t8qc8i5 to answer @martinmr’s question. You will need to fmt.Println( ) the response back from DGraph.
Sorry for the late reply. What are the triples you inserted for this node (triples where this node is the subject) and how do they compare against a node where you can get the right result? I don’t need the data but I think this comparison could enlighten us on what’s different about this node.
If you insert those triples into a clean instance of Dgraph and run the query, is the result still showing the facet as an array or as a string?
I am beginning to think this issue might not be related with the query code given how other nodes return properly formatted data.
Since you don’t know what these are I am guessing you are using JSON to insert data into dgraph but what I meant was to add the data for this node into a new cluster, run the query (or a similar query checking the facets) and check if the query still returns an array.