On Nov 23, 2015, at 4:40 AM, [email protected]<mailto:[email protected]> 
wrote:

 - The mobile app could sync the data from both mybucket and mybucket-shadow, 
but the api only can retrieve the data from mybucket-shadow :(

That’s by design. You should not use Couchbase smart-client APIs to access SG’s 
bucket directly*.

Please anyone let me know is there anyway that allows me to query the data from 
both buckets via node js api? I'm using No1ql to query, it might be a JOIN???

Why do you need to? Can you describe what problem you’re trying to solve?

The shadow bucket has the same data in it. The purpose of shadowing is to give 
you a separate bucket you can manipulate using Server APIs without confusing 
Sync Gateway.

—Jens

* except in a very few cases where you need to as a workaround for missing SG 
functionality

-- 
You received this message because you are subscribed to the Google Groups 
"Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mobile-couchbase/7CE987AD-00F9-4D6A-950C-A8FAF54F2836%40couchbase.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to