I always get confused with the draft/published stuff. I have a global that has drafts enabled and it has some rules to make sure only logged in users to the app can query data. However, now I need to display that on a web page and I would like to NOT change those access rules and still be able to query published data only. So, I was trying to do something like this:
return payload.findGlobal({
slug,
overrideAccess: true, // skip the access rules since there's no logged-in user on this web page
draft: false, // I thought this would remove any drafts
})
Is there any way I can achieve this?