Skip to content

Added simple checker methods to test if Collection/Document/Vertex/Edge exists. #170

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

olivermack
Copy link
Contributor

Hi,

as accidentally slipped in my devel branch and so occurred in #168, here a separated PR for this. I thought it would be nice to use simple if conditions rather than checking exceptions in client code as it would make implementations more intuitive.

I also changed the docs to show the usage of this feature.

Cheers!

…if a collection exists

Added DocumentHandler::has() checker method which enables checking if a document exists

Added GraphHandler::hasVertex() checker method which enables checking if a vertex exists

Added GraphHandler::hasEdge() checker method which enables checking if an edge exists
@jsteemann
Copy link
Contributor

Sorry, I discovered this 6+ month old PR just today. All blame on me.
I couldn't merge automatically due to some other changes, so I manually applied the changes in the devel branch. All the has methods are now available.

@jsteemann jsteemann closed this Oct 25, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants