I cannot get matched value from mongoose
https://repl.it/@lolme/boilerplate-project-urlshortene
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.104 Safari/537.36.
Challenge: URL Shortener Microservice
Link to the challenge:
Learn to code. Build projects. Earn certifications.Since 2015, 40,000 graduates have gotten jobs at tech companies including Google, Apple, Amazon, and Microsoft.
jenovs
January 31, 2021, 1:30pm
2
It seems like you’re using callback version of mongoose, so you should put your if...else statement inside curly braces (on the same level as if(err)) and use data instead of check.
1 Like
Thanks , By the way i was wondering what is the return type of Model.find()
system
Closed
August 2, 2021, 2:03am
4
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.