I just tried the following unit test on couchbase lite android and it
worked as expected. Are you saying the equivalent code on iOS is not
working? (I find that hard to believe)
public void testGetNonExistentDocument() throws CouchbaseLiteException {
Document existingDocument =
database.getExistingDocument("422klj2lk2j4l34lkj");
assertNull(existingDocument);
}
On Thu, Mar 27, 2014 at 12:03 PM, Ajith <[email protected]> wrote:
> I was trying to find out the existence of a document with ID (say, 'abcd')
> in a database and I went with -existingDocumentWithID:. But it doesn't
> returns me nil when a document with ID doesn't exists in local DB(I cross
> checked using CouchbaseLiteViewer app for Mac). Replacing
> -existingDocumentWithID:
> with -existingLocalDocumentWithID: always returns me nil, even when
> document with ID does exists on local database. Could you please guide me
> here? How can I check existence of document with ID?
>
> Thanks!
>
> --
> 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/819f68b4-5503-415e-b449-c1457e71f865%40googlegroups.com<https://groups.google.com/d/msgid/mobile-couchbase/819f68b4-5503-415e-b449-c1457e71f865%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/CACSSHCGCA-aUo3yJLyBKvnKS1eSP5Mh8070TQX04K5F8LfKZsQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.