Replace GetUsernamesAndRelationships with GetUserRelationshipsMatching

This commit is contained in:
2024-10-25 02:45:07 -06:00
parent d942b91d17
commit 2398216bf2
3 changed files with 77 additions and 68 deletions

View File

@@ -35,12 +35,12 @@ type Query {
limit: Int = null
after: String = null
): [String!]!
getUsernamesAndFollowing(
getUserRelationshipsMatching(
userId: Int!
matchString: String = null
limit: Int = 100
after: String = null
): UsernamesAndFollowingResponse!
): [UserRelationship!]!
getPlayTime(userId: Int!): UserPlayTimeGQL!
getUserVideos(
userId: Int = null
@@ -349,8 +349,8 @@ type UserGQL {
profileImageUri: String
createdAt: DateTime
updatedAt: DateTime
following: [Int!]
followers: [Int!]
following: [UserGQL!]
followers: [UserGQL!]
}
type ShotAnnotationGQL {
@@ -554,10 +554,10 @@ input CreatedAfter @oneOf {
createdAt: DateTime
}
type UsernamesAndFollowingResponse {
users: [UserGQL!]!
following: [Int!]!
followers: [Int!]!
type UserRelationship {
user: UserGQL!
follows: Boolean!
following: Boolean!
}
type UserPlayTimeGQL {