db.find() on a user name that is a string and return all matches that contain that string

  auth0, javascript, mongodb, reactjs, routes

so I am working on a React project for school and I am running into an issue returning the entire collection when the user matches the user that is logged in, I think I am right there but my req.params.user doesn’t seem to be working, or it is working and I am just returning the user and not all of the entries tied to it. Here is a link to the github repo.

<https://github.com/polysnacktyl/project3> 

The main files I am working in are

controllers> resourceControllers.js    
models>resource.js
routes>api>resources.js
client>utils>API.js

Source: Ask Javascript Questions

LEAVE A COMMENT