Skip to content

Query based on content #345

Open
Open
@natenho

Description

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions