DEV Community

loading...

Discussion on: 💻 Build a CRUD Express API In ⌚ five minutes!

Collapse
rickavmaniac profile image
rickavmaniac

Great post. One question: In the updateOneRequest function where the {slug} came from?

Collapse
brandonkylebailey profile image
Brandon Author

Hey Rick, Nice catch! that was an oversite on my part! it should read : {_id:id} not {slug}! my apologies!