{
"group": "Ordering and bounding",
"entries": [
{
"name": "Newest records",
"sentence": "Read the newest records in descending admission order.",
"query": "collection(${collection}) | sort(.${field}; desc) | limit(${limit})",
"change": "Change ${collection} to the quoted collection name, ${field} to the ordering field and ${limit} to a positive whole number.",
"defaults": {
"collection": "\"patients\"",
"field": "admitted",
"limit": "2"
}
},
{
"name": "First records",
"sentence": "Read a bounded number of records in record identifier order.",
"query": "collection(${collection}) | limit(${limit})",
"change": "Change ${collection} to the quoted collection name and ${limit} to a positive whole number.",
"defaults": {
"collection": "\"patients\"",
"limit": "2"
}
}
]
}