Details
-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
None
-
None
-
production
-
0
Description
The Travel App Data Model documentation isn't correct:
https://docs.couchbase.com/dotnet-sdk/current/ref/travel-app-data-model.html#collections
Under the section Collections it points to document schema for users and bookings, of which neither of these schemas are correct in Couchbase Server OR Couchbase Capella.
In the documentation example - the test_user has a document like this:
test_user ←This is the key, which also acts as a primary key
|
{
|
"username": "test_user", |
"password": "5f4dcc3b5aa765d61d8327deb882cf99", |
"bookings": [ |
"bf7ad6fa-bdb9-4099-a840-196e47179f03", |
"c4fb6f98-76c8-489f-8fae-b0039cd4d2b8", |
"2bccc103-4f80-4cac-8faf-e7d2336cd113", |
"3503b353-7401-4fcc-bbdd-afe290764b68" |
]
|
}
|
Yet using the Travel Sample data in Capella, when I query users from the tenant_agent_00 for example returns this instead:
[ { "users": { "name": "Keon Hoppe", "addresses": [ { "type": "home", "address": "222 Sauer Neck", "city": "London", "country": "United Kingdom" }, { "type": "work", "address": "6913 Rau Crossing", "city": "London", "country": "United Kingdom" } ], "driving_licence": "8d3931b5-51c5-58c8-9cf7-bc8ce9049558", "passport": "95bfb372-04e8-5865-9331-d3ec66ca631b", "preferred_email": "keonhoppe@vujojgo.nz", "preferred_phone": "(688) 606-2841", "preferred_airline": "inventory.airline.airline_2607", "preferred_airport": "inventory.airport.airport_507", "credit_cards": [ { "type": "Mastercard", "number": "5161395257291763", "expiration": "2021-11" }, { "type": "Visa", "number": "4986258227926866", "expiration": "2021-07" } ], "created": "2020-10-20", "updated": "2021-02-19" } }, { "users": { "name": "Rigoberto Bernier", "addresses": [ { "type": "home", "address": "0622 Adams Mills", "city": "Manchester", "country": "United Kingdom" } ], "driving_licence": "5f5f145d-a4db-5630-b7d8-874df29a505d", "passport": "a1c4f1ac-a7d7-5b97-88ed-11cafc634896", "preferred_email": "rigobertobernier@gadugca.sd", "preferred_phone": "(965) 227-3977", "preferred_airline": "inventory.airline.airline_5479", "preferred_airport": "inventory.airport.airport_478", "credit_cards": [ { "type": "American Express", "number": "346533746753899", "expiration": "2021-04" } ], "created": "2020-04-12", "updated": "2021-02-19" } }] |
No bookings, no username/password. Also in the tenant scopes, none of the collections for bookings have any documents in them. They are all blank.
This makes it frustrating for users trying to understand this data from the documentation when it doesn't match.