I am querying a MongoDB database by with the search {"extra.title":/XXX /}, and current have an array of strings "/XXX /" but the query only works with the field as objects. I was wondering if there was a solution to convert these strings into javascript objects as I am not able to figure it out.
manually this is the array of query searches that works [/123 /, /456 /, /789/] I need to do this for a large array of searches however from a csv file and my current array is ["/123 /", "/456 /", "/789 /"]