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

Can I index/search for nested attributes? #1

Open
retorquere opened this issue Nov 7, 2024 · 1 comment
Open

Can I index/search for nested attributes? #1

retorquere opened this issue Nov 7, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@retorquere
Copy link

If I have

const products = [
    { id: 1, name: "Apple", price: 5, details: { category: "Fruit" } },
    { id: 2, name: "Banana", price: 10, details: { category: "Fruit" } },
    { id: 3, name: "Grapes", price: 6, details: { category: "Fruit" } },
    { id: 4, name: "Orange", price: 8, details: { category: "Fruit" } },
    { id: 5, name: "Potato", price: 18, details: { category: "Vegetable" } },
    { id: 6, name: "Milk", price: 7, details: { category: "Dairy" } },
    // ...
]

can I search for details.category?

@pixiedevpraveen
Copy link
Owner

currently no. but I'll add in my todo.

@pixiedevpraveen pixiedevpraveen added the enhancement New feature or request label Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants