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

project-mongo-api #478

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Open

project-mongo-api #478

wants to merge 12 commits into from

Conversation

lunek1
Copy link

@lunek1 lunek1 commented May 10, 2024

Netlify link

https://project-mongo-api-wncr.onrender.com/

Collaborators

Solo

Copy link

@AntonellaMorittu AntonellaMorittu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello Cornelia, good job working on your first DB! your code looks very good! ⭐ it meets all the specified requirements, being also well-structured and having the endpoints working! Just one tip, there's no need to pass an id to your schema, remove id as Mongoose automatically assigns a unique _id field to each document, so you don't need to define an id field :)

@lunek1
Copy link
Author

lunek1 commented May 17, 2024

Hello Cornelia, good job working on your first DB! your code looks very good! ⭐ it meets all the specified requirements, being also well-structured and having the endpoints working! Just one tip, there's no need to pass an id to your schema, remove id as Mongoose automatically assigns a unique _id field to each document, so you don't need to define an id field :)

Okey, I removed the id. Now there's only the default id from Mongoose. 🙌

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

Successfully merging this pull request may close these issues.

2 participants