Have you been unwillingly using the useful “extract” function to convert array elements into their corresponding names with same variable name as the key of the array element? Have you been worrying about the non-friendly nature of your code for…
Tag: array
Searching array elements with regex in Mongodb collection
Mongodb works Javascript way. Every mongodb collection is a JSON object containing all kinds of Javascript objects such as boolean, arrays, objects and strings. In this example I am saving two different fields to my categories collection. searchableName – for…