Skip to content

Commit 992b92c

Browse files
Merge pull request #2912 from pablopaul/patch-1
docs: add explicit provider registration of new services in prisma recipe
2 parents 2957c10 + 63a62f9 commit 992b92c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

content/recipes/prisma.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,8 @@ export class PostService {
391391

392392
Your `UserService` and `PostService` currently wrap the CRUD queries that are available in Prisma Client. In a real world application, the service would also be the place to add business logic to your application. For example, you could have a method called `updatePassword` inside the `UserService` that would be responsible for updating the password of a user.
393393

394+
Remember to register the new services in the app module.
395+
394396
##### Implement your REST API routes in the main app controller
395397

396398
Finally, you'll use the services you created in the previous sections to implement the different routes of your app. For the purpose of this guide, you'll put all your routes into the already existing `AppController` class.

0 commit comments

Comments
 (0)