Skip to content

Singular path as selector #522

Description

@gregsdennis

Inspired by a StackOverflow question, I think a singular path could be a viable selector.

The example given is

addresses[productData.products[0].addressRefId].storeName

I see this as taking the value in productData.products[0].addressRefId as the selector value.

This would, for example, allow the data to contain the index of an array (or the key of an object) to select, amongst other similar functionality.

If we could work out a way to support multi-value paths, that'd be cool, but I think singular paths are simple enough to do.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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