Closed tommyo closed 5 years ago
Just want to support this request. I need the same functionality for React Native plug-in https://github.com/bjornd/react-native-cbl/tree/feature/cbl2
@bjornd I'm writing a mango parser in Java and Swift to address the query issue. Ideally I'd like to to be able to swap cbl2 and pouchdb so that the same queries can be run natively or in a pwa. Any interest for your project?
Would also love any feedback from the couchbase team.
On Fri, Jul 20, 2018, 2:04 AM Kirill Lebedev notifications@github.com wrote:
Want to support this request. I need the same functionality for React Native plug-in https://github.com/bjornd/react-native-cbl/tree/feature/cbl2
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/couchbase/couchbase-lite-android/issues/1746#issuecomment-406498086, or mute the thread https://github.com/notifications/unsubscribe-auth/AABun7McCIRBhoFoxzdwUCcX5KP34cIwks5uIXMAgaJpZM4VRnUK .
Thanks for the suggestion and feedback. To support Query by JSON is one of the features tracked internally but it hasn't been scheduled in any releases yet due to some other priorities. If there are a lot of demand in this feature, it could help bumping the priority up.
CC: @rajagp
This is being tracked in: https://issues.couchbase.com/browse/CBL-132 . Please follow it there.
I'm writing a capacitor/cordova wrapper that exposes native methods to javascript rather than rely on the Listener. The only thing complicated is the Query building process. Exposing a method that allows me to submit a JSON query directly would avoid the unnecessary JSON string -> JSON object -> Query objects -> JSON string complexity.