WixDataOptions reference missing?

Hi! I would like to use the WixDataOptions functionality, but the reference file seems to have gone. Is it still supported? I’ve read that the documentation should be here:

https://www.wix.com/corvid/reference/wix-data/wixdataoptions

But that does not seem to exist anymore. Where could I find the information I need to obtain permission to run code in the backend that reads the “stores/orders” collection? Thanks in advance!

Hi Friso,

What do you exactly try to do?

kind regards,
Kristof.

Hi Kristof,
I am trying to show on a dynamic item page the customers who ordered an item in my store. I have a function in the backend that gets data from the “stores/orders” database and puts it in my own collection, so that it can be shown on the page. This works fine in preview mode, but when I publish, the code that reads the “stores/orders” collection, does not run. I am guessing this is because reading that wix collection requires administrator rights. So I hoped to grant the backend function those rights. I read that this could be done by using wixDataOptions functionality. Am I right? And if not, how should I go about? Thanks!

If you go to your collection you can press settings. There you can change the permissions someone needs to acces that database.
There are multiple options to change like.
Read,write,edit,delete.
You can change the permission to,
Evryone, author,site member, administrator

Kind regards,
Kristof.

@volkaertskristof Thanks, but the collection / database I am accessing is owned by wix. It is the “stores/orders” collection and the permissions can not be changed in the way you suggest. My code reads the data about the last order, to put it in my own collection at the moment someone ordered something. So I need another way to give the piece of backend code permission to read that data. I read in the forum that this used to be possible with an argument given to the .find() in the query. This was called wixDataOptions. Do you know if wix stopped supporting this? Cause I cant find the reference anymore.
Kind regards,
Friso