Files
animethemes-server/graphql/Models/List/externalprofile.graphql
T

33 lines
1.3 KiB
GraphQL

"Represents a user profile on the external site like MAL."
type ExternalProfile @model(class: "App\\Models\\List\\ExternalProfile") {
"The primary key of the resource"
id: Int! @rename(attribute: "profile_id")
"The title of the profile"
name: String!
"The site the profile belongs to"
site: ExternalProfileSite!
"The formatted string value of the site field"
siteLocalized: String! @localized
"The state of who can see the profile"
visibility: ExternalProfileVisibility!
"The formatted string value of the visibility field"
visibilityLocalized: String! @localized
"The date that the resource was created"
createdAt(format: String! = "Y-m-d H:i:s"): String @timestamp(attribute: "created_at")
"The date that the resource was updated"
updatedAt(format: String! = "Y-m-d H:i:s"): String @timestamp(attribute: "updated_at")
}
extend type Query {
"Returns a listing of external profile resources given fields."
externalprofilePagination(
where: _ @whereConditions(columnsEnum: ExternalProfileFilterableColumns, handler: "App\\GraphQL\\WhereConditions\\WhereConditionsHandler")
): [ExternalProfile!]! @paginate @builder(method: "App\\GraphQL\\Builders\\List\\ExternalProfilePaginationBuilder")
}