Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Query based on content #345

Open
natenho opened this issue Jan 8, 2024 · 0 comments
Open

Query based on content #345

natenho opened this issue Jan 8, 2024 · 0 comments

Comments

@natenho
Copy link

natenho commented Jan 8, 2024

Hello @tidwall! Given the playground case, with a little modification:

{
  "name": {"first": "Tom", "last": "Anderson"},
  "age":37,
  "children": ["Sara","Alex","Jack"],
  "fav.movie": "Deer Hunter",
  "friends": [
    {"first": "Dale", "last": "Murphy", "age": 44, "size": 23, "nets": ["ig", "fb", "tw"]},
    {"first": "Roger", "last": "Craig", "age": 68, "size": 68,"nets": ["fb", "tw"]},
    {"first": "Jane", "last": "Murphy", "age": 47, "size": 23,"nets": ["ig", "tw"]}
  ]
}

I want to query friends.#(size==age)#, to get all friends with age equals to the size field.

Any idea on how to do that?

image

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant