Files
animethemes-server/graphql/Models/Wiki/synonym.graphql
T

21 lines
721 B
GraphQL

"""
Represents an alternate title or common abbreviation for an entity.
For example, the anime Bakemonogatari has the synonym "Monstory".
"""
type Synonym @model(class: "App\\Models\\Wiki\\Synonym") {
"The primary key of the resource"
id: Int! @rename(attribute: "synonym_id")
"The alternate title or common abbreviations"
text: String!
"The language of the synonym. It may be used for short synonyms"
language: 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")
}