0
input MessageInput {
content: String
author: String
}
type Message {
id: ID!
content: String
author: String
}
type Query {
getMessage(id: ID!): Message
}
type Mutation {
createMessage(input: MessageInput): Message
}
消息內容最大長度爲255.如何記錄最大長度爲255個字符?如何/在哪裏做這個驗證?在GraphQL中驗證屬性