66 lines
1.1 KiB
GraphQL
66 lines
1.1 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 GetUserTags {
|
|
getUserTags {
|
|
id
|
|
name
|
|
}
|
|
}
|