aboutsummaryrefslogtreecommitdiff
path: root/query.go
diff options
context:
space:
mode:
authorNeonXP <i@neonxp.dev>2023-01-04 23:51:40 +0300
committerNeonXP <i@neonxp.dev>2023-01-04 23:51:40 +0300
commit1872e018d1de12793e794fb45d9bbcea569706fe (patch)
tree98229c5398ef42d696d82ee42a14aea2e4c7c3dd /query.go
parent67d30e9444c7bdae62906477cafb5f992c5b70e1 (diff)
Added fill to factoryv0.1.2
Diffstat (limited to 'query.go')
-rw-r--r--query.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/query.go b/query.go
index 69b778c..18fcfce 100644
--- a/query.go
+++ b/query.go
@@ -13,7 +13,7 @@ func Query(parent Node, path []string) (Node, error) {
head, rest := path[0], path[1:]
switch parent := parent.(type) {
case ObjectNode:
- next, ok := parent.GetByKey(head)
+ next, ok := parent.Get(head)
if !ok {
return nil, fmt.Errorf("key %s not found at object %v", head, parent)
}