OSDN Git Service

transitionを使って多少アニメーションさせた
[ngware/todo_client.git] / apollo-server / schema.graphql
1 "Included scalars"
2 scalar JSON
3 scalar Upload
4
5 "It will increment!"
6 type Counter {
7   "Number of increments"
8   count: Int!
9   "Full message for testing"
10   countStr: String
11 }
12
13 "A text message send by users"
14 type Message {
15   id: ID!
16   "Message content"
17   text: String!
18 }
19
20 "Input from user to create a message"
21 input MessageInput {
22   "Message content"
23   text: String!
24 }
25
26 type File {
27   id: ID!
28   path: String!
29   filename: String!
30   mimetype: String!
31   encoding: String!
32 }
33
34
35 type Query {
36   "Test query with a parameter"
37   hello(name: String): String!
38   "List of messages sent by users"
39   messages: [Message]
40   uploads: [File]
41
42 }
43
44 type Mutation {
45   myMutation: String!
46   "Add a message and publish it on 'messages' subscription channel"
47   addMessage (input: MessageInput!): Message!
48   singleUpload (file: Upload!): File!
49   multipleUpload (files: [Upload!]!): [File!]!
50
51 }
52
53 type Subscription {
54   mySub: String!
55   "This will update every 2 seconds"
56   counter: Counter!
57   "When a new message is added"
58   messageAdded: Message!
59
60 }