Skip to content
This repository has been archived by the owner on Apr 17, 2019. It is now read-only.

How to detect that an operation is not succeeded? #31

Open
VitalyStakhov opened this issue May 16, 2016 · 0 comments
Open

How to detect that an operation is not succeeded? #31

VitalyStakhov opened this issue May 16, 2016 · 0 comments

Comments

@VitalyStakhov
Copy link

Hi,

I have both MongoDB and MongoCollection instances instantiated and initialized when the phone had internet connection. Later, when internet connection is gone I try to update a collection via

colleciton.update(...)

How do I check if that update operation is successful? As I can see the update method returns MongoResult, which has isSuccessful, but MongoResult.isSuccessful is always true for me if nothing is updated in the database and the phone didn't even have internet connection

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant