Closed proft closed 8 years ago
We'll add the following:
Query whereIn(String fieldName, Object[] fieldValues);
Thanks a lot for this suggestion -- it's indeed an important addition!
Any date release? :)
PS: anyway thank you for this marvellous lib!
Today :)
The two new operators whereIn
and whereNotIn
should have been implemented in https://github.com/delight-im/Android-DDP/commit/103a8927d3620a4696a417a5ae8c193041f1767d now.
Can you try replacing the version v3.1.2
in your Gradle dependency with the following commit hash, please?
103a8927d3620a4696a417a5ae8c193041f1767d
Feedback would be much appreciated. Thanks!
Documentation in the README will be updated if this has been confirmed to work. Use arrays as value lists with these operators:
new String[] { "abc", "def", "ghi" }
// or
new Integer[] { 1, 2, 3 }
// or
// ...
Works like a charm.
I had one strange error about can't find interface ...
but after Clean Project
it works as I expect.
Tested on two projects in different situations. It works! :)
Thank you!
Thanks again!
Documentation has been added in https://github.com/delight-im/Android-DDP/commit/5efc88c368c15de447734eaad30b82c5335b9e0b and this feature is now included in the latest release.
Hello!
Can I find documents by any value in array, for example in JS
If I use
whereEqual
then it filter all documents with
tag = "tag1"
AND then withtag = "tag2"
.I want
whereEqualOR()
orwhereInArray(field, array)
:)