Using queries with views is not working for me.

18 views
Skip to first unread message

Andrew

unread,
Dec 17, 2014, 7:06:15 AM12/17/14
to mobile-c...@googlegroups.com
Hi all,

I recently started exploring Cauchbase Mobile PhoneGap/Cordova Plugion on iOS and got the basic stuff to work using coax based REST API. I have created the database, simple views and loaded some sample data.

Running into issue with sending Query parameters to Cauch on views. Basically looks like none of my query param is effective and the GET call returns everything..

The syntax I use is this:

view.get("myviewname",{key: 'document_3', limit:2},function(err,results){ ... });


neither key nor the limit params do any good ...the view variable above points to  coax'ed '/_design/test/_view' location.

Any ideas?


Andrew

unread,
Dec 17, 2014, 5:31:02 PM12/17/14
to mobile-c...@googlegroups.com
DAU issue. Correct syntax is:

view.get(["myviewname",{key: 'document_3', limit:2}],function(err,results){ ... });

and everything works fine...
Reply all
Reply to author
Forward
0 new messages