Compare commits

...

4 Commits

Author SHA1 Message Date
9d8155527d Use getUser for getting followers
All checks were successful
Tests / Tests (pull_request) Successful in 8s
2024-10-30 16:18:25 -06:00
8690e81029 Merge pull request 'Add doesUsernameExist' (#103) from mk/does-username-exist into master
Reviewed-on: #103
2024-10-30 13:08:59 -06:00
4ef13a482a Add doesUsernameExist
All checks were successful
Tests / Tests (pull_request) Successful in 15s
2024-10-30 12:07:54 -07:00
9db95c4e6c Merge pull request 'Get user following followers' (#101) from kat/get-user-following-followers into master
Reviewed-on: #101
2024-10-29 23:38:48 -06:00
3 changed files with 14 additions and 10 deletions

View File

@@ -2154,6 +2154,7 @@ export enum ProcessingStatusEnum {
export type Query = {
__typename?: "Query";
doesUsernameExist: Scalars["Boolean"]["output"];
getAggregatedShotMetrics: Array<AggregateResultGql>;
getBucketSet?: Maybe<BucketSetGql>;
getDeployedConfig: DeployedConfigGql;
@@ -2176,6 +2177,10 @@ export type Query = {
waitFor: Scalars["Float"]["output"];
};
export type QueryDoesUsernameExistArgs = {
candidateUsername: Scalars["String"]["input"];
};
export type QueryGetAggregatedShotMetricsArgs = {
aggregateInput: AggregateInputGql;
};
@@ -3197,14 +3202,13 @@ export type UnfollowUserMutation = {
};
export type GetUserFollowingFollowersQueryVariables = Exact<{
[key: string]: never;
userId: Scalars["Int"]["input"];
}>;
export type GetUserFollowingFollowersQuery = {
__typename?: "Query";
getLoggedInUser?: {
getUser?: {
__typename?: "UserGQL";
id: number;
following?: Array<{
__typename?: "UserGQL";
id: number;
@@ -5470,9 +5474,8 @@ export type UnfollowUserMutationOptions = Apollo.BaseMutationOptions<
UnfollowUserMutationVariables
>;
export const GetUserFollowingFollowersDocument = gql`
query getUserFollowingFollowers {
getLoggedInUser {
id
query getUserFollowingFollowers($userId: Int!) {
getUser(userId: $userId) {
following {
id
username
@@ -5497,11 +5500,12 @@ export const GetUserFollowingFollowersDocument = gql`
* @example
* const { data, loading, error } = useGetUserFollowingFollowersQuery({
* variables: {
* userId: // value for 'userId'
* },
* });
*/
export function useGetUserFollowingFollowersQuery(
baseOptions?: Apollo.QueryHookOptions<
baseOptions: Apollo.QueryHookOptions<
GetUserFollowingFollowersQuery,
GetUserFollowingFollowersQueryVariables
>,

View File

@@ -112,9 +112,8 @@ mutation unfollowUser($followedUserId: Int!) {
}
}
query getUserFollowingFollowers {
getLoggedInUser {
id
query getUserFollowingFollowers($userId: Int!) {
getUser(userId: $userId) {
following {
id
username

View File

@@ -29,6 +29,7 @@ type Query {
getShotsByIds(ids: [Int!]!): [ShotGQL!]!
getShotAnnotationTypes(errorTypes: Boolean = false): [ShotAnnotationTypeGQL!]!
getUser(userId: Int!): UserGQL
doesUsernameExist(candidateUsername: String!): Boolean!
getLoggedInUser: UserGQL
getUsernames(
matchString: String = null