MongoDB and Mongoose - Chain Search Query Helpers to Narrow Search Results

  • try it with “return” in front of it :slight_smile:
  • good question, done is returning its value to within “find()”, if you want this value to be passed to “caller of queryChain method” then you need to return something from it, otherwise it will get “undefined”

may be others can chime in, and correct me if im saying anything wrong here :slight_smile:

perhaps try looking into these topics: