Messages Component
renatonascalves opened this issue · 0 comments
renatonascalves commented
@todo: Investigate Subscriptions support:
- https://www.apollographql.com/docs/react/data/subscriptions/
- https://www.apollographql.com/docs/apollo-server/data/subscriptions/
- https://graphql.org/blog/subscriptions-in-graphql-and-relay/
Add basic support to the Messages component:
- Type
- Thread
- Message
- Recipient
- Field(s)
- getThreadBy
-- get thread by
-- id (Relay ID)
-- threadId - Connections
- RootQuery -> threads
- User -> threads
- Threads -> messages
-- Add star filter to get starred messages - Threads -> recipients
- Enums
- MessageTypeEnum
- MessageBoxEnum
- Model
- Thread
- Message
- DataLoader
- ThreadObjectLoader
- MessageObjectLoader
- Unit tests
- Check user permissions
- Check pagination
- Thread Mutation(s)
- Create
- Update
- Delete
- Message Mutation(s)
- (Un)Star