Support list type for language-specific string

Hi @pawan.

Thank you for your kind and fast reply.
I would define another predicate for multiple values of the same language.

By the way, I have another question about the above query result.
On the document of the dgraph (= https://docs.dgraph.io/query-language/#language-support),
predicate query without language tag returns an untagged string.

name => Look for an untagged string; return nothing if no untagged value exits.

But, if the predicate type is the list type, it returns all values which include @en tagged string values.

Querying for these predicates would return the list in an array.

Is there a way to get only untagged values on the dgraph??
For example, when I query to below

Query:
{
  q(func: uid(0x101)) {
      common.topic.alias
  }
}

Query Result:
{
  “data”: {
  “q”: [
    {
      “common.topic.alias”: [ 
        “test1”,
        “test2”
      ]
...

1 Like