Thank you Jens,
I got how userProperties works from your second reply.
This is what I am doing.
1. Get the document using view’s then populate Model using
CBLQueryRow.document
2. Update model properties
(following is the code I am using to update entryDateUTC & userId)
NSError* error;
NSLog(@"documentID : %@",_model.document.documentID);
NSLog(@"database : %@",_model.document.database.name);
_model.entryDateUTC = [NSNumber numberWithInt:555555555];
_model.userId = [NSNumber numberWithInt:333333333];
if (![_model save:&error]){
NSLog(@"error : %@",error.description);
}
--
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/c7befcd9-da08-4db0-be78-1c9c5703da24%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.