Skip to content

connection.execute("JSON.MGET", args) not working as expected #3612

@jochen-schuettler

Description

@jochen-schuettler

When we do

        List<byte[]> argList = new ArrayList<>();
        for (String key : keys) {
            argList.add(key.getBytes(UTF_8));
        }
        argList.add(".".getBytes(UTF_8));
        byte[][] args = argList.toArray(new byte[0][]);
        var result = connection.execute("JSON.MGET", args);

we get a Json array with one element, the result from the last key.

We expect results for all keys.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions