Update GremlinQuery build method