Accessing a database from HTML iframe

I am building the functionality on my page using an HTML iframe and am trying to access the database that I created. I am using a dynamic page and have include the dataset on that page. In the java example it says use the following line:
import wixData from ‘wix-data’;
MY page does not load correctly when I use that instruction. (Nor does the console.log do anything.)

I am guessing I need to do a <link … /link> to enable the wix resident functionality.

I am using the free version but have not seen anywhere that the development set is limited.

Stephen, don´t know if I understand you correctly, but are you trying to get wix-data to work inside an iframe? If so, won´t work. iframe is wix-agnostic by design. If you want any wix-data inside the iframe, you have to use postmessage. There are many examples about it.

Thanks Giri that is exactly what I am trying to do. At quick look at postmessage looks like the interface that I am looking for - I appreciate the info.