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

How to filter a dictionary with contains? #58

Open
max-arnold opened this issue Nov 8, 2018 · 0 comments
Open

How to filter a dictionary with contains? #58

max-arnold opened this issue Nov 8, 2018 · 0 comments

Comments

@max-arnold
Copy link

max-arnold commented Nov 8, 2018

{
  "group1": {
    "users": ["user1", "user2", "user3"]
  },
  "group2": {
    "users": ["user1", "user2"]
  },
  "group3": {
    "users": ["user3"]
  }
}

How to get groups which contain user3, i.e. ["group1", "group3"]?

I know about the | keys(@) pipe, but the question is how to filter a dictionary?

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

No branches or pull requests

1 participant