Skip to content

1.5.0: GraphQL API — AuditLogEntryType and query/subscription support #116

Description

@eclectic-coding

A mountable GraphQL endpoint for querying the audit trail from API-first apps.

  • AuditLogEntryType — GraphQL object type exposing all public fields
  • Query.auditLogEntries(event:, itemType:, itemId:, actorId:, since:, until:, page:) — filterable, paginated
  • Query.auditLogEntry(id:) — single entry with full diff
  • Subscription.auditLogEntryCreated(itemType:, itemId:) — real-time stream (requires Action Cable)
  • Mounts at /audit/graphql; authentication re-uses RailsAuditLog.authenticate
  • Shipped as optional gem rails_audit_log-graphql to avoid forcing graphql-ruby on all users

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions