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/$all should be arrays #2

Open
jazcarate opened this issue Nov 3, 2020 · 0 comments
Open

$any/$all should be arrays #2

jazcarate opened this issue Nov 3, 2020 · 0 comments

Comments

@jazcarate
Copy link
Owner

As a JSON object "merges" by keys, an experiment where a value needs to be one of two things, it can not be written.

{
    "EXP001": {
        "foo": {
            "$any": {
                "$eq": 1,
                "$eq": 2
            }
        }
    }
}

$equal: 1 gets lost.

After the change, this should also be reasonable to expect:

{
    "EXP001": {
        "foo": {
            "$any": [1, 2]
        }
    }
}
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