83 lines
1.4 KiB
GraphQL
83 lines
1.4 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 getUsernamesAndFollowing(
|
|
$userId: Int!
|
|
$matchString: String!
|
|
$limit: Int = null
|
|
$after: String = null
|
|
) {
|
|
getUsernamesAndFollowing(
|
|
userId: $userId
|
|
matchString: $matchString
|
|
limit: $limit
|
|
after: $after
|
|
) {
|
|
followers
|
|
following
|
|
}
|
|
}
|
|
|
|
query GetUserTags {
|
|
getUserTags {
|
|
id
|
|
name
|
|
}
|
|
}
|