If i try to set src of an img variable that is not a valid url in ejs template, it throws an error
This is the code to fetch data from mongodb and then send it to ejs template to render.
the data object is fetched correctly, I checked by console.log the data object,and there are no validators set on the model.
Screenshot of data for the given ID in mongoDBcompass
If i try to set src of an img variable that is not a valid url in ejs template, it throws an error
This is the code to fetch data from mongodb and then send it to ejs template to render.
the data object is fetched correctly, I checked by console.log the data object,and there are no validators set on the model.
Screenshot of data for the given ID in mongoDBcompass