How to use expand(<sometype>) if some predicate of the type are [list]

Here is the data schema, I have define<adress> in <Person> type, but if <adress> is a list,
I can not use expand(<Person>) to show the address.

   type <Person>{
    <ex_id>
    <ID>
    <sex>
    <address>
    ....
  }


  <ex_id>: string @index(exact) .
  <address>: [string] .
  <name>: string @index(term) @lang .
  <sex>: string @lang .
{
    query(func: eq(ID, ”42β€œ)) {
         expand(<Person>)
}

I can use the query above to get <ID>, <ex_id>, <sex>, ……
but <adress> can’t show it.

Curious, I can reproduce it. Can you fill up an issue?

where should I report this issue?

At https://github.com/dgraph-io/dgraph/issues - report there so the team can investigate it.

This same issue was filed earlier and has been closed. https://github.com/dgraph-io/dgraph/issues/4497 The fix should be included in the next Dgraph release.

2 Likes