diff --git a/go.mod b/go.mod index 2f447e0..ba11691 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module gorm.io/datatypes +module github.com/MichealJl/datatypes go 1.19 diff --git a/json.go b/json.go index e6d021e..5604bdc 100644 --- a/json.go +++ b/json.go @@ -305,6 +305,9 @@ const prefix = "$." func jsonQueryJoin(keys []string) string { if len(keys) == 1 { + if keys[0] == "$" { + return "$" + } return prefix + keys[0] }