Use constant string for access all array items

This commit is contained in:
Tobie Morgan Hitchcock 2019-01-13 20:39:32 +00:00
parent 971302ecf5
commit 719bd98544

View file

@ -910,7 +910,7 @@ func (i *iterator) Split(ctx context.Context, arr []interface{}) (out []interfac
switch doc.Get(s.VA).Data().(type) {
case []interface{}:
pth = append(pth, s.VA, "*")
pth = append(pth, s.VA, docKeyAll)
default:
pth = append(pth, s.VA)
}