Skip to content

Commit 1b65fa0

Browse files
committed
Refreshed screenshots, changed name of issue_details into operations, adjusted Alt labels
1 parent 112ef98 commit 1b65fa0

20 files changed

+29
-25
lines changed

docs/30-schema-in-postgresql.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import Screenshot from "@site/src/components/Screenshot";
22

33
# 📘 Schema in PostgreSQL
44

5-
The following screenshot shows an entity-relationship diagram of the relational database we wish to migrate. This is a library management app that stores information about books, where a book can have many authors, an author can write many books, and users can borrow books and leave reviews. You can have many copies of the same book (issue_details) and those are what users borrow and return. A library user can have many addresses.
5+
The following screenshot shows an entity-relationship diagram of the relational database we wish to migrate. This is a library management app that stores information about books, where a book can have many authors, an author can write many books, and users can borrow books and leave reviews. You can have many copies of the same book and those are what users borrow and return. All this is registered in the `operations` collection. A library user can have many addresses.
66

77
This is the sample schema we use during our [Developer Days's Intro Lab](https://mongodb-developer.github.io/intro-lab/docs/importing-data/intro).
88

docs/50-create-project/80-define-initial-schema.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ Select the five collections that we want as they are the main Entities in our sc
1212

1313
- authors
1414
- books
15-
- issue_detials
15+
- languages
16+
- operations
1617
- reviews
1718
- users
1819

docs/60-project-settings.mdx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@ import Screenshot from "@site/src/components/Screenshot";
77
- Select single inherited primary key. This detects the primary key from the relational schema and sets them as the `_id` in MongoDB.
88
- Optionally, toggle Suggested Mappings on and off.
99

10+
11+
:::info
1012
If we don't do this we'll have both an autogenerated `_id` field of type `ObjectId` and a `id` field copied from the relational DB.
13+
:::
1114

1215
<Screenshot url="http://127.0.0.1:8278" src="img/90-image-001.png" alt="Screenshot of the connect modal" />
1316

docs/80-edit-mapping-rules/10-edit-mapping-books-book-attribute.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import Screenshot from "@site/src/components/Screenshot";
22

3-
# 👐 Clean book attributes up
3+
# 👐 Clean up book attributes
44

55

6-
We want to clean up the book_attributes array in our MongoDB schema. We want an array of objects containing attributes, modelled a key value pairs. something like:
6+
We want to clean up the bookAttributes array in our MongoDB schema. We want an array of objects containing attributes, modelled as key value pairs. something like:
77

88
```json
99
{
@@ -32,4 +32,4 @@ We want to clean up the book_attributes array in our MongoDB schema. We want an
3232
Here we've implemented the [Attribute Pattern](https://www.mongodb.com/developer/products/mongodb/attribute-pattern/) for MongoDB. This will allow for easy indexing, querying based on attributes and extension of attributes.
3333
:::
3434

35-
<Screenshot url="http://127.0.0.1:8278" src="img/150-image-001.png" alt="Screenshot of the connect modal" />
35+
<Screenshot url="http://127.0.0.1:8278" src="img/150-image-001.png" alt="Changes in the books collection" />
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
import Screenshot from "@site/src/components/Screenshot";
22

3-
# 🦸 Remove unnecessary ids from issueDetails
3+
# 🦸 Remove unnecessary ids from operations
44

55
:::info
66
Extra activity! Do it if you have extra time or are following along at home. It won't be covered during the hands-on lab.
77
:::
88

9-
Now we want to remove some unncessary id fields from the issueDetails collection. We have `bookId` and `userId` but we also have these values in the embedded `book` and `user` fields.
9+
Now we want to remove some unncessary id fields from the operations collection. We have `bookId` and `userId` but we also have these values in the embedded `book` and `user` fields.
1010

11-
- On the MongoDB diagram view, click the `issueDetails` collection.
12-
- On the relational mappings list on the right, click on the edit icon of `issue_details` New Documents mapping rule.
11+
- On the MongoDB diagram view, click the `operations` collection.
12+
- On the relational mappings list on the right, click on the edit icon of `opperations` New Documents mapping rule.
1313
- Uncheck the `bookId` and `userId` fields, and leave all other fields checked.
1414
- Click `Save and close`.
1515

1616

1717

18-
<Screenshot url="http://127.0.0.1:8278" src="img/190-image-001.png" alt="Screenshot of the connect modal" />
18+
<Screenshot url="http://127.0.0.1:8278" src="img/190-image-001.png" alt="Changes in the operations collection" />
1919

docs/80-edit-mapping-rules/120-users-addresses.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ Extra activity! Do it if you have extra time or are following along at home. It
88

99
The array that holds user addresses has a lot of unneeded data.
1010

11-
- On the MongoDB diagram view, click on the `users` collection
12-
- Click on the edit edit icon of `userAddresses`
11+
- On the MongoDB diagram view, click on the `users` collection.
12+
- Click on the edit edit icon of `user_addresses` Embedded array.
1313
- Change the field name from `userAddresses` to `addresses`.
1414
- Deselect `id`, `userId` and `cityId`.
1515
- Click `Save and close `
1616
- Click on the edit edit icon of `cities`, which is an embedded document inside the array `addresses`.
17-
- Deselect `id`.
17+
- Deselect `id` and `countryId`.
1818
- Rename the `name` field into `cityName`.
1919
- In the advanced settings, check 'Merge fields into parent`.
2020
- Click `Save and close`.

docs/80-edit-mapping-rules/20-edit-mapping-books-book-genre.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,5 @@ genres: [
3838

3939

4040

41-
<Screenshot url="http://127.0.0.1:8278" src="img/160-image-001.png" alt="Screenshot of the connect modal" />
41+
<Screenshot url="http://127.0.0.1:8278" src="img/160-image-001.png" alt="Changes in the books collection" />
4242

docs/80-edit-mapping-rules/30-add-mapping-books-authors.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ We want to modify the MongoDB schema so that each book contains an array of its
1515
- Click `Save and close`
1616

1717

18-
<Screenshot url="http://127.0.0.1:8278" src="img/130-image-001.png" alt="Screenshot of the connect modal" />
18+
<Screenshot url="http://127.0.0.1:8278" src="img/130-image-001.png" alt="Changes in the books collection" />
1919

2020
## 👐 Remove unneeded bookId from author details in books collection
2121

@@ -40,7 +40,7 @@ This results in our `authors` array looking like:
4040
]
4141
```
4242

43-
<Screenshot url="http://127.0.0.1:8278" src="img/140-image-001.png" alt="Screenshot of the connect modal" />
43+
<Screenshot url="http://127.0.0.1:8278" src="img/140-image-001.png" alt="Changes in the books collection" />
4444

4545

4646
:::info

docs/80-edit-mapping-rules/50-add-mapping-books-reviews.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,5 @@ Limitations:
2424
- Continuous Migration Mode will not support this transformation
2525
- You will not be able to enable Data Verification when you create the Migration Job.
2626

27-
<Screenshot url="http://127.0.0.1:8278" src="img/150-image-002.png" alt="Screenshot of the connect modal" />
27+
<Screenshot url="http://127.0.0.1:8278" src="img/150-image-002.png" alt="Changes in the books collection" />
2828

docs/80-edit-mapping-rules/60-edit-mapping-authors-alias.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ We want to modify the MongoDB schema so that each author's aliases are represent
1010
- In the mapping rule's advanced settings, Check `create array of primitive values`.
1111
- Click `Save and close`.
1212

13-
<Screenshot url="http://127.0.0.1:8278" src="img/110-image-001.png" alt="Screenshot of the connect modal" />
13+
<Screenshot url="http://127.0.0.1:8278" src="img/110-image-001.png" alt="Changes in the authors collection" />
1414

0 commit comments

Comments
 (0)