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

How to join multiple condition with GetIntersecting function. #389

Open
selvam347 opened this issue Nov 26, 2016 · 0 comments
Open

How to join multiple condition with GetIntersecting function. #389

selvam347 opened this issue Nov 26, 2016 · 0 comments

Comments

@selvam347
Copy link

I am new to golang and gorethinkdb. my existing project needs some immediate fix. so can someone pls help how to write the following code snippets
in gorethindb way.
shop := []string{"x", "y", "z"} //This is dynamic
category_data := []string{"a", "b", "c"} /this is dynamic/
r.Table("population").GetIntersecting(bboxPolygon, r.GetIntersectingOpts{Index: "coordinates"})
.Filter({ |p|
p["shop"].match(shop[0]) || p["shop"].match(shop[1]) ... || p["category"].includes(category_data)
})
.Run(store.RawSession)

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

No branches or pull requests

2 participants