Skip to content

Fine-grain GraphQL permissions that only allow getting single entry via ID or UID. #10091

Answered by andris-sevcenko
stuible asked this question in Ideas
Discussion options

You must be logged in to vote

We'll be getting around to tuning the GQL permission things, but that's unlikely to happen in 4.0 and will have to be 4.1 at least.

Meanwhile, you can employ a dirty hack - use the EVENT_REGISTER_GQL_QUERIES event to take advantage of the fact that Craft registers its own queries first, go through the existing queries in the event handler, and just doctor the available arguments for the entries and entry queries.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@stuible
Comment options

@stuible
Comment options

@andris-sevcenko
Comment options

Answer selected by stuible
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
2 participants