> On Jun 8, 2015, at 11:17 PM, PRASANNA KUMAR <[email protected]> > wrote: > > My document contains both normal text and attachments but when i create new > document it is creating document with attachments in local device but while > pushing to server it is removing the attachments it is pushing only normal > text(But i'm pretty sure that local document contains an attachments) the > actual problem is only pushing to server
I’d be very surprised if a document got replicated without its attachments. They’re always sent together. Can you show an example? > That i can say by using some javascript view and query or normal way we can > take local document id(which is newly created) and with help this document > id we can search in server. I’m not sure what that means. What API exactly are you using to look at the documents? You should avoid accessing the Sync Gateway’s bucket directly using Couchbase Server APIs; the results are probably not going to look like what you expect. (For example, Couchbase Server doesn’t support attachments at all, so you’re definitely not going to see attachments that way.) Use the Sync Gateway’s REST API to work with documents on the server. —Jens -- 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/4FBF0A9F-FE50-418A-8F39-7409CB9D7048%40couchbase.com. For more options, visit https://groups.google.com/d/optout.
