Skip to content

Improve GraphQL Authorization DSL

Luke Duncalfe requested to merge 54417-improve-authorize-dsl into master

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?

Closes #57828 (closed)

Edited by Kamil Trzciński

Merge request reports