Hello worldI am trying to write a MEAN stack program using mongoose to check if user input (address as string) is already in a collection (addresses as strings). I thought this would be straight forward but I can't seem to wire it up right. I have looked up a couple ideas but nothing that fits my needs. I have previous been able to find public or private existing API's and check my data with there's sending a POST from angular. However, our dataset is unique so I need to build a searchable collection in mongodb and check if the user input exists to display validation to the user. I started writing a number of findOne functions in my node controller but as I get further I feel like I have less idea what I am doing. Any ideas would be very much appreciated.
Submitted December 01, 2016 at 10:13PM by manfromixtlan
No comments:
Post a Comment