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

Find map's element using Where query #24

Open
thedevsaddam opened this issue Aug 29, 2018 · 5 comments
Open

Find map's element using Where query #24

thedevsaddam opened this issue Aug 29, 2018 · 5 comments
Assignees
Labels
enhancement New feature or request priority-mid

Comments

@thedevsaddam
Copy link
Owner

thedevsaddam commented Aug 29, 2018

Query: SELECT * FROM . WHERE age < 30

{
  "one":{
    "name":"John",
    "age":28
  },
  "two":{
    "name":"Jane",
    "age":30
  },
  "three":{
    "name":"Tom",
    "age":28
  }
}

Result:

{
  "one":{
    "name":"John",
    "age":28
  },
  "three":{
    "name":"Tom",
    "age":28
  }
}
@mrgleeco
Copy link

I am also wondering if this is supported at this time

With input like {"a": {"x": 1, "b2"}}

I tried with .From("a").Where("x", '=", 1).Get() with no results.

..or if i have missed or misunderstood docs. Looking closer looks like Where wants array context somewhere

@thedevsaddam
Copy link
Owner Author

Yes, you are right.Where will work on array context

@mrgleeco
Copy link

mrgleeco commented Jul 12, 2019

..but also, to be clear:Where will NOT work in single object context (as illustrated above)?

Where can i help here? :P

@thedevsaddam
Copy link
Owner Author

..but also, to be clear:Where will NOT work in single object context (as illustrated above)?

Where can i help here? :P

If you want to send PR to solve the problem you are welcome

@mrgleeco
Copy link

opened #57

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request priority-mid
Projects
None yet
Development

No branches or pull requests

2 participants