2024-03-12 19:47:10 -06:00
|
|
|
mutation getProfileImageUploadLink($fileExt: String = ".png") {
|
|
|
|
getProfileImageUploadLink(fileExt: $fileExt) {
|
2024-08-16 16:28:45 -07:00
|
|
|
value {
|
|
|
|
... on UploadLink {
|
|
|
|
uploadUrl
|
|
|
|
headers {
|
|
|
|
key
|
|
|
|
value
|
|
|
|
}
|
|
|
|
}
|
2024-08-19 14:44:43 -07:00
|
|
|
... on GetProfileUploadLinkErrors {
|
2024-08-16 16:28:45 -07:00
|
|
|
error {
|
|
|
|
... on TooManyProfileImageUploadsErr {
|
|
|
|
linksRequested
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2024-03-12 19:47:10 -06:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
mutation editProfileImageUri($profileImageUri: String!) {
|
|
|
|
editProfileImageUri(profileImageUri: $profileImageUri) {
|
2024-12-19 10:25:51 -08:00
|
|
|
...UserFragment
|
2024-03-12 19:47:10 -06:00
|
|
|
}
|
|
|
|
}
|
2024-03-22 12:45:58 -06:00
|
|
|
|
|
|
|
query getLoggedInUser {
|
|
|
|
getLoggedInUser {
|
2024-12-19 10:25:51 -08:00
|
|
|
...UserFragment
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
query GetUser($userId: Int!) {
|
|
|
|
getUser(userId: $userId) {
|
|
|
|
...UserFragment
|
2024-03-22 12:45:58 -06:00
|
|
|
}
|
|
|
|
}
|
2024-03-27 18:48:04 -07:00
|
|
|
|
2024-11-12 13:00:18 -08:00
|
|
|
query GetUserPlayTime($userId: Int!, $filters: VideoFilterInput) {
|
|
|
|
getPlayTime(userId: $userId, filters: $filters) {
|
2024-03-27 18:48:04 -07:00
|
|
|
totalSeconds
|
|
|
|
}
|
|
|
|
}
|
2024-07-14 00:16:02 -06:00
|
|
|
|
|
|
|
query getUsernames(
|
|
|
|
$matchString: String!
|
|
|
|
$limit: Int = null
|
|
|
|
$after: String = null
|
|
|
|
) {
|
|
|
|
getUsernames(matchString: $matchString, limit: $limit, after: $after)
|
|
|
|
}
|
2024-09-05 18:35:08 -07:00
|
|
|
|
2024-10-25 02:45:07 -06:00
|
|
|
query getUserRelationshipsMatching(
|
2024-10-23 17:04:25 -06:00
|
|
|
$userId: Int!
|
|
|
|
$matchString: String!
|
|
|
|
$limit: Int = null
|
|
|
|
$after: String = null
|
|
|
|
) {
|
2024-10-25 02:45:07 -06:00
|
|
|
getUserRelationshipsMatching(
|
2024-10-23 17:04:25 -06:00
|
|
|
userId: $userId
|
|
|
|
matchString: $matchString
|
|
|
|
limit: $limit
|
|
|
|
after: $after
|
|
|
|
) {
|
2024-10-25 16:58:21 -06:00
|
|
|
relationships {
|
|
|
|
toUser {
|
|
|
|
username
|
2024-12-19 16:33:48 -08:00
|
|
|
profileImageUri
|
2024-10-25 16:58:21 -06:00
|
|
|
id
|
|
|
|
}
|
|
|
|
toUserFollows
|
|
|
|
toUserIsFollowedBy
|
2024-10-25 02:45:07 -06:00
|
|
|
}
|
2024-10-23 17:04:25 -06:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-09-05 18:35:08 -07:00
|
|
|
query GetUserTags {
|
|
|
|
getUserTags {
|
|
|
|
id
|
|
|
|
name
|
2025-02-05 12:48:56 -08:00
|
|
|
tagClasses {
|
|
|
|
id
|
|
|
|
name
|
|
|
|
}
|
2024-09-05 18:35:08 -07:00
|
|
|
}
|
|
|
|
}
|
2024-10-27 12:22:22 -06:00
|
|
|
|
|
|
|
mutation followUser($followedUserId: Int!) {
|
|
|
|
followUser(followedUserId: $followedUserId) {
|
2024-10-27 19:18:57 -06:00
|
|
|
username
|
2024-10-31 01:56:34 -06:00
|
|
|
id
|
2024-10-29 15:46:16 -06:00
|
|
|
following {
|
|
|
|
id
|
2024-10-31 01:56:34 -06:00
|
|
|
username
|
2024-10-29 15:46:16 -06:00
|
|
|
}
|
|
|
|
followers {
|
|
|
|
id
|
2024-10-31 01:56:34 -06:00
|
|
|
username
|
2024-10-29 15:46:16 -06:00
|
|
|
}
|
2024-10-27 12:22:22 -06:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
mutation unfollowUser($followedUserId: Int!) {
|
|
|
|
unfollowUser(followedUserId: $followedUserId) {
|
2024-10-27 19:18:57 -06:00
|
|
|
username
|
2024-10-31 01:56:34 -06:00
|
|
|
id
|
2024-10-29 15:46:16 -06:00
|
|
|
following {
|
|
|
|
id
|
2024-10-31 01:56:34 -06:00
|
|
|
username
|
2024-10-29 15:46:16 -06:00
|
|
|
}
|
|
|
|
followers {
|
|
|
|
id
|
2024-10-31 01:56:34 -06:00
|
|
|
username
|
2024-10-29 15:46:16 -06:00
|
|
|
}
|
2024-10-27 12:22:22 -06:00
|
|
|
}
|
|
|
|
}
|
2024-10-29 23:36:37 -06:00
|
|
|
|
2024-10-30 18:20:25 -06:00
|
|
|
query getUserFollowingFollowers {
|
|
|
|
getLoggedInUser {
|
2024-10-31 01:56:34 -06:00
|
|
|
id
|
2024-10-29 23:36:37 -06:00
|
|
|
following {
|
|
|
|
id
|
|
|
|
username
|
2024-12-19 16:31:46 -08:00
|
|
|
profileImageUri
|
2024-10-29 23:36:37 -06:00
|
|
|
}
|
|
|
|
followers {
|
|
|
|
id
|
|
|
|
username
|
2024-12-19 16:31:46 -08:00
|
|
|
profileImageUri
|
2024-10-29 23:36:37 -06:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2024-10-31 17:37:08 -07:00
|
|
|
|
|
|
|
query doesUsernameExist($candidateUsername: String!) {
|
|
|
|
doesUsernameExist(candidateUsername: $candidateUsername)
|
|
|
|
}
|
2024-11-12 14:15:08 +01:00
|
|
|
|
|
|
|
mutation editUser(
|
|
|
|
$username: String
|
|
|
|
$fargoRating: Int
|
|
|
|
$videosPrivateByDefault: Boolean
|
|
|
|
) {
|
|
|
|
editUser(
|
|
|
|
input: {
|
|
|
|
username: $username
|
|
|
|
fargoRating: $fargoRating
|
|
|
|
videosPrivateByDefault: $videosPrivateByDefault
|
|
|
|
}
|
|
|
|
) {
|
|
|
|
id
|
|
|
|
firebaseUid
|
|
|
|
username
|
|
|
|
fargoRating
|
|
|
|
updatedAt
|
|
|
|
videosPrivateByDefault
|
|
|
|
}
|
|
|
|
}
|
2024-12-19 10:25:51 -08:00
|
|
|
|
|
|
|
fragment UserFragment on UserGQL {
|
|
|
|
id
|
|
|
|
firebaseUid
|
|
|
|
username
|
|
|
|
isAdmin
|
|
|
|
profileImageUri
|
|
|
|
fargoRating
|
|
|
|
activeVideoId
|
|
|
|
createdAt
|
|
|
|
updatedAt
|
|
|
|
videosPrivateByDefault
|
|
|
|
}
|