Skip to content

Commit c9b23e2

Browse files
committedAug 12, 2018
Grammer fix & clarification in migration docs
1 parent 51a5953 commit c9b23e2

File tree

2 files changed

+26
-3
lines changed

2 files changed

+26
-3
lines changed
 

‎MIGRATION.md

+25-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,31 @@ When you use reducers with a body that uses a link that should return a single r
66

77
### From 1.2 to 1.3
88

9-
SimpleSchema has been completely removed and it will no longer extend your Collection's schema automatically, therefore,
10-
if you have configured links you have to manually add them.
9+
SimpleSchema has been completely removed and it will no longer extend your Collection's schema automatically, therefore, if you have configured links you have to manually add them.
10+
11+
For example the following link:
12+
13+
```js
14+
Users.addLinks({
15+
post: {
16+
type: 'one',
17+
collection: Posts,
18+
field: 'postId'
19+
}
20+
});
21+
```
22+
23+
Requires the respective field in your Collection's schema:
24+
25+
```js
26+
// schema for Users
27+
SimpleSchema({
28+
postId: {
29+
type: String,
30+
optional: true
31+
}
32+
})
33+
```
1134

1235
The `metadata` link configuration is no longer an object, but a `Boolean`
1336

‎docs/query_options.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ Posts.createQuery({
7474
})
7575
```
7676

77-
The query above will fetch as `comments` only the ones that have been approved and that are linekd with the `post`.
77+
The query above will fetch as `comments` only the ones that have been approved and that are linked with the `post`.
7878

7979
The `$filter` function shares the same `params` across all collection nodes:
8080

0 commit comments

Comments
 (0)
Please sign in to comment.