# Is the database already contains at least one node with the specified label?
fun has_node_label(name: String): Bool do
var query = new CypherQuery.from_string(
"match n where \{name\} in labels(n) return count(n)")
query.params["name"] = name
var data = client.cypher(query).as(JsonObject)["data"]
var result = data.as(JsonArray).first.as(JsonArray).first.as(Int)
return result > 0
end
lib/neo4j/graph/graph.nit:203,2--211,4