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

Null Profile Stats

Open
#31 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
54
Forks
14
PR merge metrics
No merged PRs in 30d

Description

### Contact Details

_No response_

### What is the expected behavior?

You are probably already aware of this, but I couldn't find an existing issue to track.

When querying the stats entity within profiles, it would be awesome to be able to get user level stats like number of followers, following, posts, comments, etc...

### What is the current behavior?

Right now the stats entity within profiles returns all null values:

image

### Reproduction steps

```bash
1. Navigate to playground: https://thegraph.com/hosted-service/subgraph/nazeeh21/lens-protocol-matic

2. Run query:

{
profiles(first: 10) {
id
handle
stats{
totalFollowers
totalPosts
totalFollowing
}
}
}
```
```

### Version

_No response_

### Relevant log output

_No response_

### Your Environment

Subgraph: https://thegraph.com/hosted-service/subgraph/nazeeh21/lens-protocol-matic

### Code of Conduct

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

Contributor guide

No contributing guide indexed for this repository

Research direction

Run the supplied profiles query in the linked hosted-service playground and confirm that the stats fields return null. Trace how profile stats are populated and expose totalFollowers, totalPosts, and totalFollowing; done means these fields return the corresponding user-level counts for profiles.

Written by the indexing model from the issue text.

Assessment

Tech stack
graphql, typescript
Domain
backend-api-design
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.