Add option to auto-create a path · Issue #27 · RedisJSON/RedisJSON · GitHub
Skip to content

Add option to auto-create a path #27

Description

@sigxcpu76

Is it possible to add an option to auto-create a JSON path in JSON.SET ?

It would be nice to set arbitrary values (e.g. counters for instrumentation) in a tree.

Right now there is no way to do this safely because creating the path using JSON can override existing values.

Example:

JSON.SET test .key1.key2 10 - this fails because .key1 does not exist
JSON.SET test .key1 {} - will create the key but if a .key1.key3 exists it will be destroyed

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions