Skip to content

Commit 8a31db1

Browse files
committed
add schema
1 parent 1675387 commit 8a31db1

File tree

1 file changed

+70
-0
lines changed

1 file changed

+70
-0
lines changed
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
type Query {
2+
greeting(name: String! = "Spring"): String!
3+
project(slug: ID!): Project
4+
tasks(projectSlug: ID!): [Task]
5+
}
6+
7+
type Mutation {
8+
addProject(slug: ID!): String!
9+
}
10+
11+
type Subscription {
12+
notifyNewTask(projectSlug: ID!): Task
13+
}
14+
15+
""" A Project in the Spring portfolio """
16+
type Project {
17+
""" Unique string id used in URLs """
18+
slug: ID!
19+
""" Project name """
20+
name: String
21+
""" URL of the git repository """
22+
repositoryUrl: String!
23+
""" Current support status """
24+
status: ProjectStatus!
25+
}
26+
27+
""" A task """
28+
type Task {
29+
""" ID """
30+
id: String!
31+
""" Name """
32+
name: String!
33+
""" ID of the Assignee """
34+
assigneeId: String
35+
""" Assignee """
36+
assignee: Assignee
37+
""" ID of the Creator """
38+
creatorId: String
39+
""" Creator """
40+
creator: Creator
41+
}
42+
43+
""" An Assignee """
44+
type Assignee {
45+
""" ID """
46+
id: String!
47+
""" Name """
48+
name: String!
49+
}
50+
51+
""" An Creator """
52+
type Creator {
53+
""" ID """
54+
id: String!
55+
""" Name """
56+
name: String!
57+
}
58+
59+
enum ProjectStatus {
60+
""" Actively supported by the Spring team """
61+
ACTIVE
62+
""" Supported by the community """
63+
COMMUNITY
64+
""" Prototype, not officially supported yet """
65+
INCUBATING
66+
""" Project being retired, in maintenance mode """
67+
ATTIC
68+
""" End-Of-Lifed """
69+
EOL
70+
}

0 commit comments

Comments
 (0)