Skip to content

v0.4.0

Choose a tag to compare

@github-actions github-actions released this 04 Jun 11:22
· 15 commits to main since this release

RailsAuditLog::Graphql 0.4.0

Added

  • AuditLogEntryCreated subscription — auditLogEntryCreated(itemType:, itemId:) subscribes to new entries for a specific record; auditLogEntryCreated(actorId:) subscribes to all entries by a specific actor
  • AuditLogSubscriptionsMixin — include into host app's SubscriptionType to add the auditLogEntryCreated subscription field
  • BaseSubscription base class for all gem GraphQL subscription types
  • Broadcaster — call Broadcaster.new(schema: MySchema).start in an initializer to relay rails_audit_log.entry_created ActiveSupport::Notifications events into GraphQL subscription triggers; supports stop to unsubscribe