From 1af7db8185394e9fd743e9e127c62a1837773ab4 Mon Sep 17 00:00:00 2001 From: Alexander Foremny Date: Fri, 20 Dec 2024 20:01:00 +0100 Subject: `$fileName` -> `$id`, drop extension --- docs/get-started-cli.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'docs/get-started-cli.md') diff --git a/docs/get-started-cli.md b/docs/get-started-cli.md index 22c0a0f..46ee2cb 100644 --- a/docs/get-started-cli.md +++ b/docs/get-started-cli.md @@ -25,7 +25,7 @@ Take note of the `$fileName` in the output. Note that it should be different for ```json { - "$fileName": "9474f0eb-06d7-4fd8-b89e-0ce996962508.json", + "$id": "9474f0eb-06d7-4fd8-b89e-0ce996962508", "description": "Welcome to Biscotte restaurant! Restaurant Biscotte offers a cuisine based on fresh, quality products, often local, organic when possible, and always produced by passionate producers.", "name": "Biscotte Restaurant" } @@ -37,7 +37,7 @@ Take note of the `$fileName` in the output. Note that it should be different for acms collection add category <<'EOF' { "name": "French Food", - "restaurant": { "$ref": "restaurant/9474f0eb-06d7-4fd8-b89e-0ce996962508.json" } + "restaurant": { "$ref": "restaurant/9474f0eb-06d7-4fd8-b89e-0ce996962508" } } EOF ``` @@ -46,7 +46,7 @@ EOF acms collection add category <<'EOF' { "name": "Brunch", - "restaurant": { "$ref": "restaurant/9474f0eb-06d7-4fd8-b89e-0ce996962508.json" } + "restaurant": { "$ref": "restaurant/9474f0eb-06d7-4fd8-b89e-0ce996962508" } } EOF ``` @@ -68,7 +68,7 @@ curl 'http://localhost:8081/api/query' --data ' LEFT JOIN category ON - category.restaurant == restaurant.$fileName + category.restaurant == restaurant.$id ' | jq . ``` -- cgit v1.2.3