purist180
(Zhao Lin)
1
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 .
purist180
(Zhao Lin)
2
{
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.
MichelDiz
(Michel Diz)
3
Curious, I can reproduce it. Can you fill up an issue?
purist180
(Zhao Lin)
4
where should I report this issue?
MichelDiz
(Michel Diz)
6
At Issues · dgraph-io/dgraph · GitHub - report there so the team can investigate it.
dmai
(Daniel Mai)
7
This same issue was filed earlier and has been closed. Cannot display list type data using expand function · Issue #4497 · dgraph-io/dgraph · GitHub The fix should be included in the next Dgraph release.
2 Likes