We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
2.7.0 & 2.8.0
redis> JSON.SET doc $ '{"a":2}' OK redis> JSON.SET doc $.b '8' OK redis> JSON.GET doc $ "[{"a":2}]"
"[{"a":2,"b":8}]"
"[{"a":2}]"
Example comes from https://redis.io/commands/json.set/
The text was updated successfully, but these errors were encountered:
Yeah it is an known issue. Currently Kvrocks doesn't support set value for a nonexistant path.
Current a workaround is to retrieve the full object and then set the field.
I'll try to fix it soon.
Sorry, something went wrong.
It will be fixed in #2178.
Although it's not a perfect fix since we're waiting for support in the underlying library jsoncons, it can work for most scenarios.
Thanks for your work :)
Successfully merging a pull request may close this issue.
Search before asking
Version
2.7.0 & 2.8.0
Minimal reproduce step
redis> JSON.SET doc $ '{"a":2}'
OK
redis> JSON.SET doc $.b '8'
OK
redis> JSON.GET doc $
"[{"a":2}]"
What did you expect to see?
"[{"a":2,"b":8}]"
What did you see instead?
"[{"a":2}]"
Anything Else?
Example comes from https://redis.io/commands/json.set/
Are you willing to submit a PR?
The text was updated successfully, but these errors were encountered: