neo4j :: CypherQuery :: to_rest
# Translate the query to the body of a corresponding Neo4j REST request. fun to_rest: JsonObject do var obj = new JsonObject obj["query"] = query if not params.is_empty then obj["params"] = params end return obj end