-
Notifications
You must be signed in to change notification settings - Fork 0
/
queries.txt
39 lines (32 loc) · 1.61 KB
/
queries.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
aws --endpoint-url http://localhost:8000 dynamodb query \
--table-name sw-federation-dev-cars \
--index-name UserIndex \
--key-condition-expression "driverId = :id" \
--expression-attribute-values '{":id":{"S":"1"}}'
aws --endpoint-url http://localhost:8000 dynamodb query \
--table-name sw-federation-dev-cars \
--index-name ChargerUserIndex \
--key-condition-expression "driverId = :id AND chargerId = :chargerId" \
--expression-attribute-values '{":id":{"S":"1"}, ":chargerId":{"S":"1"}}'
aws --endpoint-url http://localhost:8000 dynamodb query \
--table-name sw-federation-dev-cars \
--key-condition-expression "id = :id" \
--expression-attribute-values '{":id":{"S":"1"}}'
aws --endpoint-url http://localhost:8000 dynamodb query \
--table-name sw-federation-dev-cars \
--request-items file://queries/car-ids.json
aws --endpoint-url http://localhost:8000 dynamodb get-item \
--table-name sw-federation-dev-cars \
--key '{"id":{"S":"1"}}' \
--projection-expression "#id, #name" \
--expression-attribute-names '{"#id":"id", "#name":"name"}'
aws --endpoint-url http://localhost:8000 dynamodb get-item \
--table-name sw-federation-dev-chargers \
--key '{"id":{"S":"1"}}' \
--projection-expression "#id, #productName" \
--expression-attribute-names '{"#id":"id", "#productName":"productName"}'
aws --endpoint-url http://localhost:8000 dynamodb get-item \
--table-name sw-federation-dev-drivers \
--key '{"id":{"S":"1"}}' \
--projection-expression "#id, #firstName" \
--expression-attribute-names '{"#id":"id", "#firstName":"firstName"}'