Improve GraphQL Authorization DSL
What does this MR do?
Currently GraphQL field authorization happens like this:
class ProjectType
field :my_field, MyFieldType do
authorize :permission
end
end
This MR allows us to authorize like this:
class ProjectType
field :my_field, MyFieldType, authorize: :permission
end
What are the relevant issue numbers?
https://gitlab.com/gitlab-org/gitlab-ce/issues/57828
Does this MR meet the acceptance criteria?
-
Documentation created/updated via this MR -
Documentation reviewed by technical writer or follow-up review issue created -
Tests added for this feature/bug -
Conforms to the code review guidelines -
Conforms to the merge request performance guidelines -
Conforms to the style guides -
Conforms to the database guides -
Security reports checked/validated by reviewer
Closes #57828 (closed)
Edited by Kamil Trzciński