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

Any way to filter data based on whether a field's value is in specified array? #1503

Open
remy727 opened this issue Jan 26, 2024 · 0 comments

Comments

@remy727
Copy link

remy727 commented Jan 26, 2024

products = [
  {
    "id": 1,
    "type": 'A'
  },
  {
    "id": 2
    "type": 'B'
  },
  {
    "id": 3,
    "type": 'A'
  },
  {
    "id": 4,
    "type": 'C'
  },
  {
    "id": 5,
    "type": 'C'
  },
]

Can I filter products based on whether type in ['A', 'B']?

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