{
"group": "Executing labelled matches",
"entries": [
{
"name": "Bound labelled records",
"sentence": "Bind records from one collection and keep the first two.",
"query": "match (c:${collection}) | limit(${limit})",
"change": "Choose ${collection} and ${limit}.",
"defaults": {
"collection": "patients",
"limit": "2"
}
},
{
"name": "Bound relationship records",
"sentence": "Bind one value per readable directed edge, with the first record's origin and no score.",
"query": "match (c:${collection})-[:${kind}]->(w:${target}) | limit(${limit})",
"change": "Choose ${collection}, ${kind}, ${target} and ${limit}. A hop has no continuation; choose a bound that fits the page.",
"defaults": {
"collection": "patients",
"kind": "admitted_to",
"target": "wards",
"limit": "2"
}
}
]
}