add queryString to application event from url

Sorry but this function is returning a Mongo Query from the path and you'll break the application lookup if you make it return extra params on the object. You'll need to create a separate method (feel free to rename this method to something like mongoQueryFromPath to make it more obvious that it's not talking about a url query)

You'll see that the output from this function is being used in a FindOne call to find the correct application and as no application will have a queryString property that lookup will break