Skip to content
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

Add Views to controllers #29

Open
betielamanuel opened this issue Mar 29, 2024 · 0 comments
Open

Add Views to controllers #29

betielamanuel opened this issue Mar 29, 2024 · 0 comments
Assignees

Comments

@betielamanuel
Copy link
Collaborator

when you create a route that gives us information about a toy listing, you will return information about the toy information, but part of it also includes the id of the user that posted the toy, so we need information about that user, not only the user id, we need the first name of the user last name email etc.. all of that information is stored in the User entity, so you will join the Toy listing and User collection and return information from both so that we can use that information on the client side.

everywhere you see ids you should return information that relates to the ids in the corresponding entity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Progress
Development

No branches or pull requests

2 participants