Closed yeyan closed 8 years ago
Could you please try xview.startKey(("Tag 1")).endKey(("Tag 1", Map()))
, i.e., using tuples instead of lists? I haven't tried it myself, please let me know if it doesn't work.
@beloglazov's suggestion for using Tuples should work with slight modifications, either providing type parameter to the Map (wouldn't compile otherwise) or just using a Unit type for the second element in the tuple of endKey
xview.startKey(Tuple1("Tag 1")).endKey(Tuple2("Tag 1", Map[String, Int]())).query
xview.startKey(Tuple1("Tag 1")).endKey(Tuple2("Tag 1", {})).query
Complex key query
For views with array key is there any way to issue the following query?
intended query parameters:
URI:
I have tried issue the query with pure string, but the end key is serialized to a json string.
I have also tried to List with empty object, but this one simple not compile.
Is there anyway to issue a query with raw strings with couchdb-scala API?