So, I am creating new section called "My Section" with handle "mySection" via plugin. All good there.

I want to be able for my section to be Viewable via Public Schema each time it is created (when plugin is installed / enabled).

I cannot figure out how to add my section inside Viewable Public Schema using Gql in plugin.

Anyone has any idea or snippet?


1 Answer 1


You can query for elements (entries, users, etc.) using Craft's GraphQL API, but not for collections of elements (sections, user groups, etc.).

I already answered a very similar question, see https://craftcms.stackexchange.com/a/39709/180

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.