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

Question about indexes #38

Open
Ileca opened this issue Jun 14, 2021 · 0 comments
Open

Question about indexes #38

Ileca opened this issue Jun 14, 2021 · 0 comments

Comments

@Ileca
Copy link

Ileca commented Jun 14, 2021

For example, jsonb document {"a": [{"b": "xyz", "c": true}, 10], "d": {"e": [7, false]}} would be decomposed into following entries:

"a".#."b"."xyz"
"a".#."c".true
"a".#.10
"d"."e".#.7
"d"."e".#.false

Since JsQuery doesn't support search in particular array index, we consider all array elements to be equivalent. Thus, each array element is marked with same # sign in the path.

If this is true then how do you make the distinction between two different arrays at the same level? Something like [[1,2,3][4,5,6]] would result in:
#.#.1
#.#.2
#.#.3
#.#.4
#.#.5
#.#.6
which makes the distinction impossible even though containment is respected by jsquery.

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