Skip to content

Commit

Permalink
small re-iteration
Browse files Browse the repository at this point in the history
  • Loading branch information
shahednasser committed Nov 26, 2024
1 parent 7570eac commit e9d5579
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion www/apps/book/app/learn/basics/modules/page.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class BlogModuleService extends MedusaService({
export default BlogModuleService
```

Your module's service extends a class returned by the `MedusaService` utility function. The `MedusaService` function accepts an object of data models, and returns a class with generated methods for data-management Create, Read, Update, and Delete (CRUD) operations on those data models.
Your module's service extends a class returned by the `MedusaService` utility function. The `MedusaService` function accepts an object of data models, and returns a class with generated methods for data-management Create, Read, Update, and Delete (CRUD) operations on those data models. You can pass all data models in your module in this object.

For example, the `BlogModuleService` now has a `createPosts` method to create post records, and a `retrievePost` method to retrieve a post record. The suffix of each method (except for `retrieve`) is the pluralized name of the data model.

Expand Down

0 comments on commit e9d5579

Please sign in to comment.