You can specify a custom _id field, but leave the _rev field blank and
Couchbase Lite will generate one for you.


On Tue, Jun 3, 2014 at 12:10 AM, Pankaj Jakhar <[email protected]>
wrote:

> *I want to save a new document in CBL with custom _id and custom _rev for
> the very first time.*
>
> Syncing to CBLite local from CouchDB server runs intermittently that is
> why I am trying new approach to sync data.
>
> I am going to fetch all the documents on demand. Then after fetching all
> the documents, I will save them using my code to CBLite local.
>
> I know that I can create new document with user-defined is in CBL.
>
> *Can I also save a document for the very first time with my custom
> revision number?*
>
> --
> 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/2deea262-2f53-4db2-8665-5a392ae107a4%40googlegroups.com
> <https://groups.google.com/d/msgid/mobile-couchbase/2deea262-2f53-4db2-8665-5a392ae107a4%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CACSSHCGHen%3Dc8mWbkji%3DGs4-ocqi5zNrGQXTpwa0jWwyCP%3DQgA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to