Is there any "dummy" query in Gremlin language in order to test the connection to the server?
E.g. in Sql Alchemy case I would use the following https://docs.sqlalchemy.org/en/13/core/pooling.html#custom-legacy-pessimistic-ping
which basically runs a SELECT 1
to check the connection health.
For a script based request you could simply send 0
which will return "0". If your graph doesn't support arbitrary scripts or you're using bytecode based requests and need to send a Gremlin oriented request you could do g.inject(0)
which would also return "0".