I currently have a MongoDB database containing documents with 'img' values structured as follows:
"img": "../folder/img.jpg"
Would it be feasible to utilize this string in my CSS for modifying the background image? This is essential because I need the image to dynamically change along with other attributes specified in the JSON document.