Skip to content

ADD: Computed counters for conversations#36

Merged
patrixr merged 1 commit into
mainfrom
GCW-3672-conversation-counters
Jul 14, 2021
Merged

ADD: Computed counters for conversations#36
patrixr merged 1 commit into
mainfrom
GCW-3672-conversation-counters

Conversation

@patrixr
Copy link
Copy Markdown
Member

@patrixr patrixr commented Jul 12, 2021

Changes

  • Added a computer service
  • Included computed conversation fields in the GraphQL schema

e.g

query getConversations {
  conversations {
    id
    type
    _computed {
      # These only get computed when they are requested
      totalMessageCount 
      unreadMessageCount
    }
  }
}

@patrixr patrixr requested review from BboyStatix and steveyken July 12, 2021 02:21
Comment thread lib/services/computer.ts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants