👥Core FeaturesComing Soon
Follow System
Social following with cursor-based pagination and denormalized counters.
Video coming soon
Add a YouTube video ID to the topics config
Documentation
Overview
Users can follow/unfollow other users. Follower and following counts are denormalized on the User model for O(1) reads.
Implementation
- Toggle — single mutation handles both follow and unfollow
- Unique index — compound index on
(follower, following)prevents duplicates - Counter sync —
followerCountandfollowingCountare incremented/decremented atomically on follow/unfollow - Cursor pagination — followers/following lists are paginated for scalability
Technical Details
<!-- Add details about the search functionality, how counters stay in sync, etc. -->Content coming soon — add your video and detailed writeup here.