Read data from a dataset

I am trying to read data from a collection such as the example below.


For example, I would like to access ‘Painting’ and store that string as a variable. I have read about using the wixData.get() method, but I cannot seem to get it to work. Any help would be appreciated.

I would suggest that you have a read through this section here and learn about using Wix Data.
https://support.wix.com/en/wix-data/database-collections

As for code, have a read of the Wix Data and the Wix Dataset API’s and their functions.
https://www.wix.com/corvid/reference/wix-data.html
https://www.wix.com/corvid/reference/wix-dataset.html