Skip to content

picking the value of a field from a filtered array #444

@vumajc

Description

@vumajc

How can I get just the value of the field out of a filtered array. In the playground example, I am trying to do this
Posts | filter(.ID == 1) | first() | .Title

and end up with

unexpected token Operator(".") (1:38)
 | Posts | filter(.ID == 1) | first() | .Title
 | .....................................^

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