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

confusing #36

Open
maxrantil opened this issue May 31, 2023 · 1 comment
Open

confusing #36

maxrantil opened this issue May 31, 2023 · 1 comment

Comments

@maxrantil
Copy link

this part from part4, User administration, Creating a new note made me really confused. I ended up just skipping it.:

The note scheme will also need to change as follows in our models/note.js file:

const noteSchema = new mongoose.Schema({
  content: {
    type: String,
    minLength: 5,
    required: true,
  },
  important: Boolean,
  user: String,})

Maybe I didnt understand something important or maybe this is worth looking over why this part is here?

@bilalacode
Copy link

Going through the same thing. The code clearly shows that it's user: type: mongoose.Schema.Types.ObjectID; ref: 'User.

I think it's an issue that needs to be resolved.

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

No branches or pull requests

2 participants