Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Normalise Entities (Many to Many relations)

未关闭
#28 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
25/100
Issue 类型
重构
描述清晰度
需要澄清
活跃度
停滞
技术栈
typescript

调研方向

首先定位 Profile 实体,以及公开 followers、following 和当前 boolean flags 的查询定义。检查 user-follow 关系是如何表示的,然后与维护者明确关系模型和无状态查询行为。完成的标准是:在不使用特定于用户的 flags 的情况下,实现预期的实体结构和关系更新,并验证相关查询。

由索引模型根据 Issue 内容生成。

描述

Contact Details

alexandermatthew12@gmail.com

What is the expected behavior?

Stateless query

We should normalise, such as Profile having followers & following which is an array of IDs

In addition, if a user follows my Profile
We should append a new Profile into the followers field, and append Profile to following field, for the follower Profile

What is the current behavior?

We should not have boolean flags such as hasCollectedByMe, isFollowingMe, etc

We want to make the query stateless, meaning that there is no "me" object when querying here

Reproduction steps

No response

Version

No response

Relevant log output

No response

Your Environment
  • Version used:
  • Environment name and version (e.g. Chrome 39, node.js 5.4):
  • Operating System and version (desktop or mobile):
  • Link to your project:
Code of Conduct
  • I agree to follow this project's Code of Conduct
主要语言
TypeScript
星标
54
派生
14
PR 合并指标
30 天内没有已合并 PR

贡献指南

这个仓库没有索引到贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

Developer-DAO/Lens-Graph-Subgraph 的其他 Issue

查看 Developer-DAO/Lens-Graph-Subgraph 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。