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

@@ -57,19 +57,23 @@ query getUsernames(
getUsernames(matchString: $matchString, limit: $limit, after: $after)
}
query getUsernamesAndFollowing(
query getUserRelationshipsMatching(
$userId: Int!
$matchString: String!
$limit: Int = null
$after: String = null
) {
getUsernamesAndFollowing(
getUserRelationshipsMatching(
userId: $userId
matchString: $matchString
limit: $limit
after: $after
) {
followers
user {
username
id
}
follows
following
}
}