Use constant string for access all array items
This commit is contained in:
parent
971302ecf5
commit
719bd98544
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue