Developer-DAO / Developer-DAO/Lens-Graph-Subgraph

Normalise Entities (Many to Many relations)

Đang mở
#28 2 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
TypeScript
Star
54
Fork
14
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

### 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

- [X] I agree to follow this project's Code of Conduct

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Hướng nghiên cứu

Bắt đầu bằng cách xác định entity Profile và các định nghĩa query cung cấp followers, following cùng các boolean flags hiện tại. Xem xét cách biểu diễn một quan hệ user-follow, sau đó làm rõ với các maintainer về mô hình quan hệ và hành vi query stateless. Công việc được xem là hoàn tất khi hình dạng entity dự kiến và các cập nhật quan hệ được triển khai mà không có các flags dành riêng cho từng người dùng, đồng thời các query liên quan đã được xác minh.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
typescript
Lĩnh vực
backend-api-design
Loại issue
Tái cấu trúc
Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
25/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.