Skip to content

Improve GraphQL Authorization DSL

Currently GraphQL field authorization happens like this:

class ProjectType
  field :my_field, MyFieldType do
    authorize :permission
  end
end

Instead, we would like to be able to authorize like this:

class ProjectType
  field :my_field, MyFieldType, authorize: :permission
end