# Chat history. The live chat runs over the WebSocket at /ws, not GraphQL; # this query is the initial page load. # # Two gotchas: authorId is a per-connection counter from the chat hub, not a # User id, and private messages are silently filtered out for non-admins # rather than causing an error — which is why the query has no @admin: the # resolver makes that decision per row. type Message { id: ID! content: String! authorId: Int! fileUrl: String private: Boolean! createdAt: Time! } extend type Query { messages: [Message!]! }