Partial string match in mongodb array using mongoose
I've got a MongoDB collection, which looks like this: // sites // note that these urls all have paths, this is important. // The path can only be longer, e.g. amazon.com/Coffee-Mug [ { name: "MySite", urls: ['google.com/search', 'amazon.com/Coffee', 'amazon.com/Mug'] },…