-
Notifications
You must be signed in to change notification settings - Fork 4
expression for some #7
Copy link
Copy link
Open
Description
We had various sketches and discussions around how to support some notation. To be honest I am not sure we need dedicated syntax because [] in the selector effectively gives you that.
On the other hand I also argue in #5 that jq is little ambiguous there and perhaps it would make more sense to do something like this instead
{
"mail": [
{ "to": ["alice@web.mail"], "message": "hello" },
{ "to": ["bob@gmail.com"], "message": "hello" }
]
}[
[".mail", "?", "?mail"],
["in", "?message", "?mail"]
]Which is same as this (with a current selector syntax
[
[".mail", "?", "?mail"],
[".[]", "?mail", "?message"]
]Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels