Deploy with Docker Compose / deploy (push) Successful in 58s
Admins can flag a chat message as private so only other admin connections receive it, and can delete any message. Admin status is read from the auth cookies on the WebSocket upgrade request. Co-Authored-By: Claude Fable 5.1 <[email protected]>
13 lines
167 B
GraphQL
13 lines
167 B
GraphQL
type Message {
|
|
id: ID!
|
|
content: String!
|
|
authorId: Int!
|
|
fileUrl: String
|
|
private: Boolean!
|
|
createdAt: Time!
|
|
}
|
|
|
|
extend type Query {
|
|
messages: [Message!]!
|
|
}
|