Skip to content

Multipath - GET command always returning an array - #496

Closed
oshadmi wants to merge 2 commits into
masterfrom
omer_multipath_get_array
Closed

oshadmi wants to merge 2 commits into
masterfrom
omer_multipath_get_array

Conversation

@oshadmi

@oshadmi oshadmi commented Oct 29, 2021

Copy link
Copy Markdown
Collaborator

Return an array of results, even when only a single path is given
(not with legacy path, only if at least one path begins with a $)

@MeirShpilraien MeirShpilraien left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@emmanuel-keller approved it?

@oshadmi

oshadmi commented Nov 1, 2021

Copy link
Copy Markdown
Collaborator Author

@emmanuel-keller approved it?

Not yet.
@emmanuel-keller Do you approve this change?
Also mentioned here

@emmanuelkeller

Copy link
Copy Markdown
Contributor

@MeirShpilraien I would not do that, mainly for the following reason.

JSON.GET with only one path is probably the most used command. Using multiple path is probably much less used.
Which means that the most common usage will pay the price of a useless additional squared bracket.

I would then suggest to split the two behaviour, and introduce a new command for multiple paths.

JSON.GET would take only one path.
JSON.GETS (?) would take multiple path.
...
JSON MGET getting multiple keys (to complete the GET family overview)

@oshadmi

oshadmi commented Nov 8, 2021

Copy link
Copy Markdown
Collaborator Author

Replaced with #516

@oshadmi oshadmi closed this Nov 8, 2021
@rafie
rafie deleted the omer_multipath_get_array branch November 13, 2022 06:16
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

Successfully merging this pull request may close these issues.

3 participants