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