| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Clarifying questions: 1st endpoint
i.e. to simplify x and count-1 others have liked/commented on this post not an issue since frontend can simply count length of array with O(1)
combining both read: true/false per post. The resulting array would be {..., likes: {read: [...], unread: [...]}} separating per read per type (i.e. [{read: true, likes: [...]}, {read: true, comments: [...], ... }])
Assumptions: 1st endpoint:
query
Technical debts and nice to have: graphql
Rationale: filtering unwanted fields from the database (e.g. 1.) ONLY _id and name, 2.) ALL except name ) this is called projection in mongodb Middlewares
| Back | FazBrowse Home | New Git URL |