forked from alexitaylor/nest-launch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
schema.gql
60 lines (51 loc) · 1.13 KB
/
schema.gql
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
# ------------------------------------------------------
# THIS FILE WAS AUTOMATICALLY GENERATED (DO NOT MODIFY)
# ------------------------------------------------------
type Mission {
name: String!
missionPatch: String
}
type Rocket {
id: ID!
name: String!
type: String!
}
type Launch {
id: ID!
site: String!
mission: Mission!
rocket: Rocket!
cursor: String!
}
type TripUpdateResponse {
success: Boolean!
message: String!
launches: [Launch!]!
}
type LaunchConnection {
cursor: Float!
hasMore: Boolean!
launches: [Launch!]!
}
type User {
id: ID!
firstName: String!
lastName: String!
userName: String!
email: String!
trips: [Launch!]!
}
type Query {
getLaunch(id: ID!): Launch!
getLaunches(after: String, pageSize: Float): LaunchConnection!
isBooked(launchId: [ID!]!): Boolean!
getTrips: [Launch!]!
"""Returns the current logged user."""
me: User
}
type Mutation {
bookTrips(launchIds: [ID!]!): TripUpdateResponse!
cancelTrip(launchId: ID!): TripUpdateResponse!
signIn(email: String!): String!
signUp(email: String!, userName: String!, lastName: String!, firstName: String!): User!
}