-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathschema.graphql
More file actions
73 lines (65 loc) · 1.19 KB
/
schema.graphql
File metadata and controls
73 lines (65 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
"""declare a scalar type"""
scalar GraphQLDate
enum statustype{
New
Assigned
Fixed
Closed
}
type IssueCount{
owner:String!
New:Int
Assigned:Int
Closed:Int
Fixed:Int
}
input Issueinput{
title: String!
status: statustype
owner: String
effort: Int
due: GraphQLDate
description: String
}
input Issueupdateinput{
title: String
status: statustype
owner: String
effort: Int
due: GraphQLDate
description: String
}
type Issue {
_id:ID!
id: Int
title: String!
status: statustype
owner: String
effort: Int
created: GraphQLDate
due: GraphQLDate
description: String
}
##### Top level declarations
type issuelistwithpage{
issuesDb:[Issue!]
pages:Int
}
type Query {
about: String!
issueList(status:statustype
search:String
effortmin:Int
effortmax:Int,page:Int): issuelistwithpage!
examplethrow(a:Int,b:Int):Int!
examplecatchfromquery:Int!
issueAdd(issue:Issueinput!):Issue!
issue(id:Int!):Issue
issueCount(status:statustype,effortmin:Int,effortmax:Int):[IssueCount]!
}
type Mutation {
setAboutMessage(message: String!): String
issueUpdate(id:Int!,Changes:Issueupdateinput!): Issue!
examplecatchfrommutation:Int!
issueDelete(id:Int!):Boolean!
}