105 lines
1.7 KiB
GraphQL
105 lines
1.7 KiB
GraphQL
mutation getProfileImageUploadLink($fileExt: String = ".png") {
|
|
getProfileImageUploadLink(fileExt: $fileExt) {
|
|
value {
|
|
... on UploadLink {
|
|
uploadUrl
|
|
headers {
|
|
key
|
|
value
|
|
}
|
|
}
|
|
... on GetProfileUploadLinkErrors {
|
|
error {
|
|
... on TooManyProfileImageUploadsErr {
|
|
linksRequested
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
mutation editProfileImageUri($profileImageUri: String!) {
|
|
editProfileImageUri(profileImageUri: $profileImageUri) {
|
|
id
|
|
firebaseUid
|
|
username
|
|
profileImageUri
|
|
createdAt
|
|
updatedAt
|
|
}
|
|
}
|
|
|
|
query getLoggedInUser {
|
|
getLoggedInUser {
|
|
id
|
|
firebaseUid
|
|
username
|
|
isAdmin
|
|
profileImageUri
|
|
activeVideoId
|
|
createdAt
|
|
updatedAt
|
|
}
|
|
}
|
|
|
|
query GetUserPlayTime($userId: Int!) {
|
|
getPlayTime(userId: $userId) {
|
|
totalSeconds
|
|
}
|
|
}
|
|
|
|
query getUsernames(
|
|
$matchString: String!
|
|
$limit: Int = null
|
|
$after: String = null
|
|
) {
|
|
getUsernames(matchString: $matchString, limit: $limit, after: $after)
|
|
}
|
|
|
|
query getUserRelationshipsMatching(
|
|
$userId: Int!
|
|
$matchString: String!
|
|
$limit: Int = null
|
|
$after: String = null
|
|
) {
|
|
getUserRelationshipsMatching(
|
|
userId: $userId
|
|
matchString: $matchString
|
|
limit: $limit
|
|
after: $after
|
|
) {
|
|
relationships {
|
|
toUser {
|
|
username
|
|
id
|
|
}
|
|
toUserFollows
|
|
toUserIsFollowedBy
|
|
}
|
|
}
|
|
}
|
|
|
|
query GetUserTags {
|
|
getUserTags {
|
|
id
|
|
name
|
|
}
|
|
}
|
|
|
|
mutation followUser($followedUserId: Int!) {
|
|
followUser(followedUserId: $followedUserId) {
|
|
followers {
|
|
username
|
|
}
|
|
}
|
|
}
|
|
|
|
mutation unfollowUser($followedUserId: Int!) {
|
|
unfollowUser(followedUserId: $followedUserId) {
|
|
followers {
|
|
username
|
|
}
|
|
}
|
|
}
|