Use clearer names in the fields of GetUserRelationshipsMatching
This commit is contained in:
parent
2398216bf2
commit
9b6559559c
@ -2166,7 +2166,7 @@ export type Query = {
|
||||
getShotsByIds: Array<ShotGql>;
|
||||
getShotsWithMetadata: GetShotsResult;
|
||||
getUser?: Maybe<UserGql>;
|
||||
getUserRelationshipsMatching: Array<UserRelationship>;
|
||||
getUserRelationshipsMatching: UserRelationshipsResult;
|
||||
getUserTags: Array<TagGql>;
|
||||
getUserVideos: VideoHistoryGql;
|
||||
getUsernames: Array<Scalars["String"]["output"]>;
|
||||
@ -2525,9 +2525,15 @@ export type UserPlayTimeGql = {
|
||||
|
||||
export type UserRelationship = {
|
||||
__typename?: "UserRelationship";
|
||||
following: Scalars["Boolean"]["output"];
|
||||
follows: Scalars["Boolean"]["output"];
|
||||
user: UserGql;
|
||||
toUser: UserGql;
|
||||
toUserFollows: Scalars["Boolean"]["output"];
|
||||
toUserIsFollowedBy: Scalars["Boolean"]["output"];
|
||||
};
|
||||
|
||||
export type UserRelationshipsResult = {
|
||||
__typename?: "UserRelationshipsResult";
|
||||
inquiringUser: UserGql;
|
||||
relationships: Array<UserRelationship>;
|
||||
};
|
||||
|
||||
export type VideoFilterInput = {
|
||||
@ -3143,12 +3149,15 @@ export type GetUserRelationshipsMatchingQueryVariables = Exact<{
|
||||
|
||||
export type GetUserRelationshipsMatchingQuery = {
|
||||
__typename?: "Query";
|
||||
getUserRelationshipsMatching: Array<{
|
||||
__typename?: "UserRelationship";
|
||||
follows: boolean;
|
||||
following: boolean;
|
||||
user: { __typename?: "UserGQL"; username: string; id: number };
|
||||
}>;
|
||||
getUserRelationshipsMatching: {
|
||||
__typename?: "UserRelationshipsResult";
|
||||
relationships: Array<{
|
||||
__typename?: "UserRelationship";
|
||||
toUserFollows: boolean;
|
||||
toUserIsFollowedBy: boolean;
|
||||
toUser: { __typename?: "UserGQL"; username: string; id: number };
|
||||
}>;
|
||||
};
|
||||
};
|
||||
|
||||
export type GetUserTagsQueryVariables = Exact<{ [key: string]: never }>;
|
||||
@ -5137,12 +5146,14 @@ export const GetUserRelationshipsMatchingDocument = gql`
|
||||
limit: $limit
|
||||
after: $after
|
||||
) {
|
||||
user {
|
||||
username
|
||||
id
|
||||
relationships {
|
||||
toUser {
|
||||
username
|
||||
id
|
||||
}
|
||||
toUserFollows
|
||||
toUserIsFollowedBy
|
||||
}
|
||||
follows
|
||||
following
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
@ -69,12 +69,14 @@ query getUserRelationshipsMatching(
|
||||
limit: $limit
|
||||
after: $after
|
||||
) {
|
||||
user {
|
||||
username
|
||||
id
|
||||
relationships {
|
||||
toUser {
|
||||
username
|
||||
id
|
||||
}
|
||||
toUserFollows
|
||||
toUserIsFollowedBy
|
||||
}
|
||||
follows
|
||||
following
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -40,7 +40,7 @@ type Query {
|
||||
matchString: String = null
|
||||
limit: Int = 100
|
||||
after: String = null
|
||||
): [UserRelationship!]!
|
||||
): UserRelationshipsResult!
|
||||
getPlayTime(userId: Int!): UserPlayTimeGQL!
|
||||
getUserVideos(
|
||||
userId: Int = null
|
||||
@ -554,10 +554,15 @@ input CreatedAfter @oneOf {
|
||||
createdAt: DateTime
|
||||
}
|
||||
|
||||
type UserRelationshipsResult {
|
||||
inquiringUser: UserGQL!
|
||||
relationships: [UserRelationship!]!
|
||||
}
|
||||
|
||||
type UserRelationship {
|
||||
user: UserGQL!
|
||||
follows: Boolean!
|
||||
following: Boolean!
|
||||
toUser: UserGQL!
|
||||
toUserFollows: Boolean!
|
||||
toUserIsFollowedBy: Boolean!
|
||||
}
|
||||
|
||||
type UserPlayTimeGQL {
|
||||
|
Loading…
Reference in New Issue
Block a user