reflow-project / weloop

WeLoop is a React/TypeScript client for ZenPub and a key component of ReflowOS
https://weloop.reflowproject.eu
GNU Affero General Public License v3.0
5 stars 5 forks source link

BonFire does not contain Flag #132

Open VolodymyrPavlichenko opened 2 years ago

VolodymyrPavlichenko commented 2 years ago

Linked with Asses ZenPub replacement with BonFire #121

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

query flagPreviewData($flagId:String!) {
  flag(flagId:$flagId){
    ...FlagPreview
  }
}
fragment FlagPreview on Flag{
  id
  message
  isResolved
  creator{
    ...UserPreview
  }
  createdAt
  context{
    ...on Community {
      ...CommunityPreview
    }
    ...on Collection {
      ...CollectionPreview
    }
    ...on Resource {
      ...ResourcePreview
    }
    ...on User {
      ...UserPreview
    }
    ...on Comment {
      ...CommentPreview
    }
  }
}