Database Reference
In-Depth Information
Listing 10.11. Cypher REST request
The actual Cypher query is specified in the
query
key
in the JSON request, with any
associated parameters provided in the
params
key
as key-value pairs.
Listing 10.12. Cypher REST response
The results are returned inastructure that defines the column headers
andcorrespond-
ing data values . You can see that the column name matches the RETURN statement
specified in the Cypher request from
listing 10.11
,
and that all the matches for this column
heading are provided as an array of names under the data section in
listing 10.12
. The up-
dated metrics log is shown in
table 10.6
.