diff --git a/dgraph/cmd/bulk/schema.go b/dgraph/cmd/bulk/schema.go index 2046a10d153..dcf28c1e9b0 100644 --- a/dgraph/cmd/bulk/schema.go +++ b/dgraph/cmd/bulk/schema.go @@ -81,6 +81,9 @@ func (s *schemaStore) validateType(de *pb.DirectedEdge, objectIsUID bool) { sch, ok = s.m[de.Attr] if !ok { sch = &pb.SchemaUpdate{ValueType: de.ValueType} + if objectIsUID { + sch.List = true + } s.m[de.Attr] = sch } s.Unlock()