Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jsonGet return multiple paths (fields) for a given key #69

Open
robertsmoto opened this issue Nov 23, 2022 · 0 comments
Open

jsonGet return multiple paths (fields) for a given key #69

robertsmoto opened this issue Nov 23, 2022 · 0 comments

Comments

@robertsmoto
Copy link

Not entirely sure if this is a feature request, or my ignorance?

In the native redis-cli this command works:
JSON.GET somekey path1 path2 path3
In rejson this command works:
jsonGet(somekey, "path1")
However, this command doesn't:
jsonGet(somekey, "path1 path2 path3")

Am I missing something about how to return multiple paths (fields) from jsonGet?
Should I be using the options in the function signature?

... or possibly change the function signature?
from:
JSONGet(key, path string, opts ...rjs.GetOption) (res interface{}, err error)
to:
JSONGet(key, path []string, opts ...rjs.GetOption) (res interface{}, err error)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant