Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add settings for GraphQL to exclude content types from being exposed #12982

Closed
MikeAlhayek opened this issue Dec 23, 2022 · 2 comments · Fixed by #13048
Closed

Add settings for GraphQL to exclude content types from being exposed #12982

MikeAlhayek opened this issue Dec 23, 2022 · 2 comments · Fixed by #13048
Milestone

Comments

@MikeAlhayek
Copy link
Member

Is your feature request related to a problem? Please describe.

Today, GraphQL expose all content types to the user. A permission check is applied to filter out content types user can't view. There is no way to control which content-types should be exposed to the API. Not everyone want to expose every content types. For example, if I have a SitePage content type that I want everyone to be able to view it, but I do not want anyone to query it from the API.

Describe the solution you'd like

We can simply add a content type settings to Hide the content type like we do today for the content parts.

@sebastienros sebastienros added this to the 1.x milestone Dec 29, 2022
@sebastienros
Copy link
Member

OK with it being a content type setting

@MikeAlhayek
Copy link
Member Author

@sebastienros PR #12982 was added for this

@sebastienros sebastienros modified the milestones: 1.x, 1.6 Apr 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants