mirror of
https://github.com/AnimeThemes/animethemes-server.git
synced 2026-09-01 10:15:02 +02:00
21 lines
799 B
GraphQL
21 lines
799 B
GraphQL
"Represents an AnimeThemes account."
|
|
type User @model(class: "App\\Models\\Auth\\User") {
|
|
"The primary key of the resource"
|
|
id: Int!
|
|
|
|
"The username of the resource"
|
|
name: String!
|
|
|
|
"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")
|
|
|
|
playlists(
|
|
name_like: String @like(key: "name")
|
|
visibility: PlaylistVisibility @eq
|
|
where: _ @whereConditions(columnsEnum: PlaylistFilterableColumns, handler: "App\\GraphQL\\WhereConditions\\WhereConditionsHandler")
|
|
sort: [PlaylistSort!] @sort
|
|
): [Playlist!]! @hasManyCustom(type: SIMPLE)
|
|
} |