-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(todo-list tutorial): add missing code to the TodoRepository #3639
Conversation
Code for adding `todoList` property to the `TodoRepository` was missing.
Thank you for the pull request, @hayk94. IIRC from #3171, it was never our intention to show the full repository class in this doc page. When the code shows the full source file, it's difficult to see which part is important (added while introducing inclusion of related models) and which parts are just the support. Could you please provide more details about your intent and what is your reasoning for the proposed change? What did you try to accomplish and what was missing in our documentation? |
@bajtos Hey! The issue is here When it says Let’s do the same on the TodoRepository: src/repositories/todo.repository.ts
On line After looking at the exapmle app I found that this piece of code is missing.
Here we define the |
Thank you @hayk94 for the explanation, I understand the issue you encountered and I agree with you to improve our docs! At the moment, we are working on a better solution for inclusion of related models, we have already few building blocks in place. It's not necessary to override all Setting that aside, we still need to initialize @nabdelgadir @agnes512 thoughts? |
Hi @hayk94, if you need any help, let us know. |
Hey guys! Is this still actual? It seems the tutorial already changed? |
We've updated the docs for the latest code and new features. It should be more consistent now. |
Hi @hayk94! So we've made some changes to the file, but we still want to include initializing
Would it be possible for you to rebase your PR and simplify it to do the above? Thanks! |
@hayk94, you're right. I'm afraid the tutorial has changed quite a bit since you first created the PR. The tutorial makes use of the |
Code for adding
todoList
property to theTodoRepository
was missing.