Good morning,
I am going through the Node JS course and am in the Mongoose- Modeling Relationships between Connected Data transactions section. I am stuck trying to post this using postman. He shows you the code he has written and just skips the postman post request. I have checked my code and have even just downloaded his code attachment and used that, but I am still getting a SyntaxError: Unexpected token . in JSON at position 69 error.
I have tried a handful of different ways to put this post into postman, but still nothing. Is anyone able to help with this??`
Here is the movie route schema```````````````
const Movie = mongoose.model(
"Movies",
new mongoose.Schema({
title: {
type: String,
required: true,
trim: true,
minlength: 5,
maxlength: 255,
},
genre: {
type: genreSchema,
required: true,
},
numberInStock: {
type: Number,
required: true,
min: 0,
max: 255,
},
dailyRentalRate: {
type: Number,
required: true,
min: 0,
max: 255,
},
})
);
`
Here is the syntax I am using on Postman
```
{
"title": "Terminator",
"genre": {
"_id": genre."60e41928f29e1e25a89da921",
"name":genre."action"
},
"numberInStock": "8",
"dailyRentalRate": "1",
}
```
I have used a variety of different ways to see if that would work, but I am still unable to get anything besides the unexpected token. I have tried with or without that genre path, but still nothing.