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 Me #131

Open oksanasalohubova opened 2 years ago

oksanasalohubova commented 2 years ago

Linked with Asses ZenPub replacement with BonFire #121

Me

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

fragment HeroCollectionMeData on Me {
    user{
        id
    }
}
fragment HeroCommunityMeData on Me {
    user{
        id
    }
}
fragment MyCollectionFollowsData on Me {
  user{
    id
    collectionFollows{
      totalCount,
      pageInfo{ ...FullPageInfo }
      edges{
        id
        context {
          ...on Collection { ...MyFollowedCollectionData }
        }
      }
    }
  }
}
fragment MyCommunityFollowsData on Me {
  user{
    id
    communityFollows(limit:$limit, before:$before, after:$after) {
      totalCount,
      pageInfo{ ...FullPageInfo }
      edges{
        id 
        context{
          ...on Community { ...MyFollowedCommunityData }
        }
      }
    }
  }
}
fragment MyCommunityFollowsData on Me {
    user{
        id
        communityFollows(limit:$limit, before:$before, after:$after) {
            totalCount,
            pageInfo{ ...FullPageInfo }
            edges{
                id
                context
            }
        }
    }
}
fragment UseMeData on Me {
  isInstanceAdmin
  email
  isConfirmed
  wantsEmailDigest
  wantsNotifications 
  user{
    id
    ...SettingsPageMeUser
    ...SidebarMeUser
  }
}
VolodymyrPavlichenko commented 2 years ago
user, me, like, Activity, Collection, Community