diff options
Diffstat (limited to 'app/graphql/resolvers/audit_events/audit_event_definitions_resolver.rb')
-rw-r--r-- | app/graphql/resolvers/audit_events/audit_event_definitions_resolver.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/app/graphql/resolvers/audit_events/audit_event_definitions_resolver.rb b/app/graphql/resolvers/audit_events/audit_event_definitions_resolver.rb new file mode 100644 index 00000000000..230301ca5da --- /dev/null +++ b/app/graphql/resolvers/audit_events/audit_event_definitions_resolver.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module Resolvers + module AuditEvents + class AuditEventDefinitionsResolver < BaseResolver + type [Types::AuditEvents::DefinitionType], null: false + + def resolve + Gitlab::Audit::Type::Definition.definitions.values + end + end + end +end |