Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AC-225] Add array-mapping for selectors #11

Merged
merged 1 commit into from
Oct 20, 2023

Conversation

jdkula
Copy link
Contributor

@jdkula jdkula commented Oct 19, 2023

Allows selectors of the format .arrayfield[].subfield which applies the mapping following [] to all the elements of the array identified by the mapping preceding it. For example, selecting .collections[].name on {collections: [{name: "a"}, {name: "b"}]} would return ["a", "b"].

Also uses it to provide an additional default selector for integrations

@linear
Copy link

linear bot commented Oct 19, 2023

AC-225 more selectors needed

see TODO in cli/format/integration.go

@jdkula jdkula requested a review from pmenglund October 19, 2023 20:40
Copy link
Member

@pmenglund pmenglund left a comment

Choose a reason for hiding this comment

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

awesome

@pmenglund pmenglund merged commit 8739c3b into master Oct 20, 2023
1 check passed
@pmenglund pmenglund deleted the jonathan.ac-225.arraymap branch October 24, 2023 17:56
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.

2 participants