Skip to content

Connection health check when creating client #128

@jkmcclinton

Description

@jkmcclinton

Hey Dgraph folks, I was wondering if there was a way to check if a connection to a Dgraph instance is available immediately after the pydgraph client is setup. This way, I can check before hand if my first queries/mutations are going to fail. I've found the checkVersion method and was hoping to use that as an alternative solution, but couldn't figure out how to use it. Specifically, I couldn't figure out what the check object is supposed to be, since it isn't well documented. I would rather not have to perform a bogus query on the client instead, as it doesn't seem like the best solution to me.

Thank you.

Metadata

Metadata

Assignees

Labels

area/usabilityIssues with usability and error messagesstatus/acceptedWe were able to reproduce the issue and accept to work on it.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions