Data Layer low complexity mobile
0
Dependencies
2
Dependents
1
Entities
0
Integrations

Description

Drift-based local data access layer for reading and writing a single contact record together with its related entities. Provides the reactive stream query that the Contact Detail Provider subscribes to, and exposes atomic write operations used by the Contact Update Service for optimistic updates and snapshot-based rollbacks.

Feature: Contact Detail & Edit

contact-detail-repository

Responsibilities

  • Expose a reactive Drift watch query for a contact with all related data
  • Execute atomic write operations for contact field updates
  • Restore a previous contact snapshot for rollback operations

Interfaces

watchContact(contactId: String): Stream<ContactDetail>
updateContact(contactId: String, update: ContactUpdate): Future<void>
restoreContact(contactId: String, snapshot: Contact): Future<void>

Relationships

Dependents (2)

Components that depend on this component

Related Data Entities (1)

Data entities managed by this component