forked from graphql-nexus/nexus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
fullstack-schema.graphql
71 lines (61 loc) · 1.18 KB
/
fullstack-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
### This file was generated by Nexus Schema
### Do not make changes to this file directly
type Launch {
id: ID
isBooked: Boolean
mission: Mission
rocket: Rocket
site: String
}
"""
Simple wrapper around our list of launches that contains a cursor to the
last item in the list. Pass this cursor to the launches query to fetch results
after these.
"""
type LaunchConnection {
cursor: String
hasMore: Boolean
launches: [Launch]
}
type Mission {
missionPatch(size: PatchSize): String
name: String
}
type Mutation {
bookTrips(launchIds: [ID!]!): TripUpdateResponse
cancelTrip(launchId: ID!): TripUpdateResponse
login(email: String): String
}
enum PatchSize {
LARGE
SMALL
}
type Query {
launch(count: Int, id: ID!): Launch
launches(
"""
If you add a cursor here, it will only return results _after_ this cursor
"""
after: String
"""
The number of results to show. Must be >= 1. Default = 20
"""
pageSize: Int
): LaunchConnection
me: User
}
type Rocket {
id: ID
name: String
type: String
}
type TripUpdateResponse {
launches: [Launch]
message: String
success: Boolean
}
type User {
email: String
id: ID
trips: [Launch]
}