From 719bd985440b7f13009d66ee259de1dd2899c28d Mon Sep 17 00:00:00 2001 From: Tobie Morgan Hitchcock Date: Sun, 13 Jan 2019 20:39:32 +0000 Subject: [PATCH] Use constant string for access all array items --- db/iterator.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/iterator.go b/db/iterator.go index bba2d68b..f2a5fec8 100644 --- a/db/iterator.go +++ b/db/iterator.go @@ -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) }