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

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

BonFire does not contain Thread #126

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

Comments

@oksanasalohubova
Copy link
Collaborator

oksanasalohubova commented Oct 12, 2021

Linked with Asses ZenPub replacement with BonFire #121

Thread

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

fragment ThreadPreview on Thread {
  id
  lastActivity
  createdAt
  context{
    ...on Community {
      ...CommunityPreview
    }
    ...on Collection {
      ...CollectionPreview
    }
    ...on Resource {
      ...ResourcePreview
    }
    ...on Flag {
      ...FlagPreview
    }
  }
  comments(limit:1){
    totalCount
    edges{
     ...on Comment {
          ...CommentPreview
        }
    }
  }
}
fragment CommunityPageThread on Thread {
  id
  ...ThreadPreview
}
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
}
@VolodymyrPavlichenko
Copy link
Collaborator

Thread

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

3 participants