Translate the query to the body of a corresponding Neo4j REST request.

Property definitions

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
lib/neo4j/neo4j.nit:442,2--450,4