I want to read the data from Members/PrivateMembersData collection through code. how can i run that piece of code as admin so that it has access to all data?
1 Like
Hello.
To use the PrivateMembersData collection in code, refer to it as “Members/PrivateMembersData”.
wixData.query("Members/PrivateMembersData")
.find()
.then( (results) => {
// handle the results
} );
Here you can read more about its permissions and fields.
Also check wix-data API reference, specifically query().