Skip to content

Commit

Permalink
fix typo in relationships.md doc (#2059)
Browse files Browse the repository at this point in the history
Co-authored-by: Iris Benoît <[email protected]>
Co-authored-by: Jérémie Jadé <[email protected]>
Co-authored-by: Nicolas Lepage <[email protected]>
Co-authored-by: Guillaume Lagorce <[email protected]>
Co-authored-by: Fael Bassetti <[email protected]>
  • Loading branch information
6 people authored Oct 3, 2024
1 parent d039e1a commit 33c7044
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion guides/release/models/relationships.md
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ It is also possible to remove a record from a `hasMany` relationship:
let blogPost = this.store.peekRecord('blog-post', 1);
let commentToRemove = this.store.peekRecord('comment', 1);
let comments = await blogPost.comments;
blockPost.comments = comments.filter((comment) => comment !== commentToRemove);
blogPost.comments = comments.filter((comment) => comment !== commentToRemove);
blogPost.save();
```

Expand Down

0 comments on commit 33c7044

Please sign in to comment.