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

Nested filter are ignored #78

Open
gkorland opened this issue Oct 28, 2021 · 1 comment
Open

Nested filter are ignored #78

gkorland opened this issue Oct 28, 2021 · 1 comment

Comments

@gkorland
Copy link
Contributor

gkorland commented Oct 28, 2021

The following path "$.store.book[?(@.authors[?(@.lastName1)])]" returns both books despite the fact none has lastName1 attribute.

Example JSON:

{
    "store": {
        "book": [
            {
                "authors": [
                    {
                        "firstName": "Nigel",
                        "lastName": "Rees"
                    },
                    {
                        "firstName": "Evelyn",
                        "lastName": "Waugh"
                    }
                ],
                "title": "Sayings of the Century"
            },
            {
                "authors": [
                    {
                        "firstName": "Herman",
                        "lastName": "Melville"
                    },
                    {
                        "firstName": "Somebody",
                        "lastName": "Else"
                    }
                ],
                "title": "Moby Dick"
            }
        ]
    }
}

ref RedisJSON/RedisJSON#494

@micael95
Copy link

There are some alternative to get by nested array filter ?

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

2 participants