Version 5.1 - All the GraphQL #32

Closed
timw4mail wants to merge 1160 commits from develop into master
Showing only changes of commit ca09de44d3 - Show all commits

View File

@ -646,6 +646,8 @@ type Chapter implements Unit & WithTimestamps {
"A brief summary or description of the unit"
description(locales: [String!]): Map!
id: ID!
"Number of pages in chapter."
length: Int
"The manga this chapter is in."
manga: Manga!
"The sequence number of this unit"
@ -1924,6 +1926,12 @@ type PostConnection {
totalCount: Int!
}
"Autogenerated return type of PostCreate"
type PostCreatePayload {
errors: [Error!]
post: Post
}
"An edge in a connection."
type PostEdge {
"A cursor for use in pagination."
@ -1939,6 +1947,11 @@ type PostLockPayload {
}
type PostMutations {
"Create a Post."
create(
"Create a Post"
input: PostCreateInput!
): PostCreatePayload
"Lock a Post."
lock(
"Lock a Post."
@ -2188,6 +2201,19 @@ type ProfileEdge {
node: Profile
}
"An external site that can be linked to a user."
type ProfileLinkSite implements WithTimestamps {
createdAt: ISO8601DateTime!
id: ID!
"Name of the external profile website."
name: String!
updatedAt: ISO8601DateTime!
"Regex pattern used to validate the profile link."
validateFind: String!
"Pattern to be replaced after validation."
validateReplace: String!
}
"The different types of user stats that we calculate."
type ProfileStats {
"The total amount of anime you have watched over your whole life."
@ -2257,6 +2283,8 @@ type Query {
findMangaById(id: ID!): Manga
"Find a single Manga by Slug"
findMangaBySlug(slug: String!): Manga
"Find a single Media by ID and Type"
findMediaByIdAndType(id: ID!, mediaType: MediaTypeEnum!): Media
"Find a single Person by ID"
findPersonById(id: ID!): Person
"Find a single Person by Slug"
@ -2645,6 +2673,8 @@ type SiteLink implements WithTimestamps {
author: Profile!
createdAt: ISO8601DateTime!
id: ID!
"The actual linked website."
site: ProfileLinkSite!
updatedAt: ISO8601DateTime!
"A fully qualified URL of the user profile on an external site."
url: String!
@ -3457,6 +3487,16 @@ input MediaReactionVoteSortOption {
on: MediaReactionVoteSortEnum!
}
input PostCreateInput {
content: String!
isNsfw: Boolean = false
isSpoiler: Boolean = false
mediaId: ID
mediaType: MediaTypeEnum
spoiledUnitId: ID
spoiledUnitType: String
}
input PostLikeSortOption {
direction: SortDirection!
on: PostLikeSortEnum!