Skip to content

expression for some  #7

@Gozala

Description

@Gozala

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"]
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions