Skip to content

v0.6.0

Choose a tag to compare

@github-actions github-actions released this 04 Jun 13:10
· 9 commits to main since this release

RailsAuditLog::Graphql 0.6.0

Added

  • AuditLogJsonScalar (AuditLogJson) — custom scalar type for objectChanges, object, and metadata fields; replaces the generic JSON scalar with a self-documenting type
  • RecordByIdSourceGraphQL::Dataloader::Source that batch-loads AR records by class name and ID; eliminates N+1 queries when resolving actor.record and auditedResource.record on list responses
  • record field on AuditLogActor and AuditedResource — returns the database record as JSON, batch-loaded via dataloader
  • auditLogReify(itemType:, itemId:, at:) — reconstructs the attribute state of a record at a given point in time; returns JSON or nil when the record was destroyed or no entry exists
  • SchemaPlugin — include into host schema to apply max_complexity (200), max_depth (10), default_max_page_size (25), and use GraphQL::Dataloader; all limits configurable via RailsAuditLog::Graphql.max_complexity= etc.