Skip to content

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

@robertsmoto

Description

@robertsmoto

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions