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

BonFire does not contain Community #129

Open
VolodymyrPavlichenko opened this issue Oct 12, 2021 · 1 comment
Open

BonFire does not contain Community #129

VolodymyrPavlichenko opened this issue Oct 12, 2021 · 1 comment
Labels
bonfire-migration Issues linked to ZenPub to Bonfire migration

Comments

@VolodymyrPavlichenko
Copy link
Collaborator

Linked with Asses ZenPub replacement with BonFire #121

Community We have no way to get Community in these requests and mutations

query communityOutboxActivities($communityId: String!, $limit:Int, $before:[Cursor!], $after:[Cursor!]) {
  community(communityId:$communityId) @connection(key: "communityOutboxActivities", filter: ["communityId"]){
    id
    outbox(limit:$limit, before:$before, after:$after){
      totalCount,
      pageInfo{ ...FullPageInfo }
      edges{
        ...CommunityOutboxActivity
      }
    }
  }
}
fragment CommunityOutboxActivity on Activity {
  ...ActivityPreview
}
query communityCollections($communityId: String!, $limit:Int, $before:[Cursor!], $after:[Cursor!]) {
  community(communityId:$communityId) @connection(key: "communityCollections", filter: ["communityId"]){
    id
    collections(limit:$limit, before:$before, after:$after){
      totalCount,
      pageInfo{ ...FullPageInfo }
      edges{
        ...CommunityCollection
      }
    }
  }
}
fragment CommunityCollection on Collection {
  ...CollectionPreview
  ...CommunityPageCollectionBase
}
query editCommunityData($communityId: String!) {
    community(communityId: $communityId) {
        ...EditCommunityQueryData
    }
}
fragment EditCommunityQueryData on Community {
  id
  name
  summary
  icon{
 id, url }

  updatedAt
}
query communityPreview($communityId: String!) {
  community(communityId:$communityId){
    id
  ...CommunityPreview
  }
}
fragment CommunityPreview on Community {
    ...CommunityInfo
    id
    summary
    myFlag { id }
    collectionCount
    followerCount
    threads { totalCount }
    # myLike { id }
    # likerCount
}
query communityData($communityId:String!){
  community(communityId:$communityId){
    id
    ...CommunityPageData
  }
}
fragment CommunityPageData on Community{
  id
  myFollow{id}
  ...HeroCommunityData
}
query communityThreads($communityId: String!, $limit:Int, $before:[Cursor!], $after:[Cursor!]) {
  community(communityId:$communityId) @connection(key: "communityThreads", filter: ["communityId"]){
    id
    threads(limit:$limit, before:$before, after:$after){
      totalCount,
      pageInfo{ ...FullPageInfo }
      edges{
        ...CommunityThread
      }
    }
  }
}
fragment CommunityThread on Thread{
  ...CommunityPageThread
}
query communityFollowers($communityId: String!, $limit:Int, $before:[Cursor!], $after:[Cursor!]) {
  community(communityId:$communityId) @connection(key: "communityFollowers", filter: ["communityId"]){
    id
    followers(limit:$limit, before:$before, after:$after){
      totalCount,
      pageInfo{ ...FullPageInfo }
      edges{
        id
        creator{
          ...CommunityFollower
        }
      }
    }
  }
}
fragment CommunityFollower on User {
  ...UserPreview
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bonfire-migration Issues linked to ZenPub to Bonfire migration
Projects
None yet
Development

No branches or pull requests

2 participants