Hi, I have an app that receives json documents from an AFNetworking 
HTTPRequest. If the a doc exists I need to apply the updates and save it 
locally. (no CBLReplication involved)

I understand that I have to include _rev in the updated property set but I 
get a 409 conflict. I am missing something but don't know what that is. 
Here is what I think I need to do: 

 CBLUnsavedRevision *newRev = [tgtDoc newRevision];

 [propSet setValue:newRev forKey:@"_rev"];

 [tgtDoc putProperties:propSet error:&error];

but error returns CBLHTTP - 409

Can anyone suggest what I should be doing here? 

Thank you

-- 
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/28d33dc0-3ed6-4340-aaf5-2fa1a763a4c8%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to