Permalink
Switch branches/tags
Nothing to show
Find file Copy path
d9f2173 Jun 21, 2018
1 contributor

Users who have contributed to this file

23 lines (18 sloc) 328 Bytes
scalar Time
type Message {
id: String!
user: String!
createdAt: Time!
text: String!
}
type Mutation {
postMessage(user: String!, text: String!): Message
}
type Query {
messages: [Message!]!
users: [String!]!
}
type Subscription {
messagePosted(user: String!): Message!
userJoined(user: String!): String!
}