-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema.graphql
103 lines (84 loc) · 2.24 KB
/
schema.graphql
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
input CreateWorldInput {
placeholder: String
}
union CreateWorldPayload = MutationErrorPayload | World
"""
A date string, such as 2007-12-03, compliant with the `full-date` format outlined in section 5.6 of the RFC 3339 profile of the ISO 8601 standard for representation of dates and times using the Gregorian calendar.
"""
scalar Date
"""
A date-time string at UTC, such as 2007-12-03T10:15:30Z, compliant with the `date-time` format outlined in section 5.6 of the RFC 3339 profile of the ISO 8601 standard for representation of dates and times using the Gregorian calendar.
"""
scalar DateTime
input DeleteWorldInput {
worldID: String!
}
union DeleteWorldPayload = DeleteWorldSuccessPayload | MutationErrorPayload
type DeleteWorldSuccessPayload {
success: Boolean!
}
input GenerateWorldNamesInput {
worldID: String!
}
input GetOrCreateUserInput {
email: String!
}
union GetOrCreateUserPayload = MutationErrorPayload | User
input GetWorldInput {
worldID: String!
}
input GetWorldsInput {
placeholder: String
}
type Mutation {
createWorld(input: CreateWorldInput!): CreateWorldPayload!
deleteWorld(input: DeleteWorldInput!): DeleteWorldPayload!
getOrCreateUser(input: GetOrCreateUserInput!): GetOrCreateUserPayload!
updateWorld(input: UpdateWorldInput!): UpdateWorldPayload!
}
type MutationError {
message: String!
title: String!
}
type MutationErrorPayload {
error: MutationError!
}
type Query {
generateWorldNames(input: GenerateWorldNamesInput!): [String!]!
getCurrentUser: User!
getWorld(input: GetWorldInput!): World!
getWorlds(input: GetWorldsInput!): [World!]!
}
input UpdateWorldInput {
archetype: String
atmosphere: String
fantasyType: String
geographyFeatures: [String!]
geographyType: String
name: String
population: String
technologyLevel: String
worldID: String!
}
union UpdateWorldPayload = MutationErrorPayload | World
type User {
createdAt: DateTime!
email: String!
emailVerified: Boolean!
firstName: String
id: ID!
name: String!
}
type World {
archetype: String
atmosphere: String!
createdAt: DateTime!
fantasyType: String!
geographyFeatures: [String!]!
geographyType: String!
id: ID!
name: String!
population: String!
technologyLevel: String!
updatedAt: DateTime!
}