Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/social graph #134

Merged

Conversation

ZhongFuze
Copy link
Contributor

@ZhongFuze ZhongFuze commented Apr 25, 2024

feature: #133

Feature

  1. More adaptable to various situations RelationResult return
    Including but not limited to social_data, poap, token_transfer, NFT in commons

  2. Added count field for auxiliary paging

  3. Added limit and offset fields for paging function, sorting in reverse order according to hyper vertex degree

  4. Optimized the return result, giving priority to relationships of mutual follow in onchain data.

query {
  relation(platform: "lens", identity: "sujiyan.lens") {
    identityGraph {
      graphId
    }
    follow(hop: 1, limit: 200, offset: 0) {
      count
      relation {
        edgeType     // follower, following, (poap, nft_in_common, send/received tokens in comming)
        tag                // "", "mutual_follow", (poap, nft_in_common, token_transfer in comming)
        dataSource  // lens, farcaster, keybase
        source          // follow edge's source identity_graph_id
        target           // follow edge's target identity_graph_id
        sourceDegree // identity_graph_id degree (int)
        targetDegree  // identity_graph_id degree (int)
        originalSource {  // IdentityRecord
          id
          uuid
          identity
          platform
          displayName
          uid
        }
        originalTarget { // IdentityRecord
          id
          uuid
          identity
          platform
          displayName
          uid
        }
      }
    }
  }
}

@ZhongFuze ZhongFuze merged commit 28ca354 into NextDotID:feature/social-graph Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant