Custom graphql Query to unauthorized user

System Information
  • Strapi Version: 4.14
  • Operating System: Ubuntu 20
  • Database: sqlite
  • Node Version: 18
  • NPM Version:
  • Yarn Version:

I want to add simple custom graphql Query for annonymous user.
(I use sample of GraphQL resolvers | Strapi Documentation page)
but custom graphql require authorized permission, so then always return ‘forbidden access’.
Is there any good way to for unauthorized user query?

enable the right permissions in the users&permissions plugin in strapi itself.