-
Notifications
You must be signed in to change notification settings - Fork 0
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
Provide a way to ignore the order of array elements #6
Comments
Probably going to be something like:
to match .foo containing 1, 2, and 3 in some order. I don't want to use the standard set notation ( |
The problem here is that, if implemented naïvely, we'd have to check if any permutation of matchers matches the jSON document, which will obviously fuck the performance up. |
I think I'm just going to disallow holes as members of unordered arrays instead of trying to figure out a fancy way to support them. |
It'd also be helpful to provide the user a way to set the comparator. The only real usecase I have is to match the list of rows returned by Postgres in a "random" order without sorting them using the db (this will take way too long in production).
should match both |
Maybe that way we can allow holes as well, but
will no longer match |
No description provided.
The text was updated successfully, but these errors were encountered: