forked from prisma-labs/graphql-prisma-typescript
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbooking.graphql
50 lines (47 loc) · 774 Bytes
/
booking.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
mutation signup {
signup(
email: "[email protected]"
firstName: "Tom"
lastName: "Hardy"
password: "pw"
phone: "+1132123123"
) {
user {
id
}
token
}
}
mutation login {
login(email: "[email protected]", password: "pw") {
user {
id
}
token
}
}
# TODO: IMPLEMENT
# mutation addPaymentMethod {
# addPaymentMethod(
# cardNumber: "4242424242424242"
# expiresOnMonth: 12
# expiresOnYear: 2020
# securityCode: "232"
# firstName: "Bob"
# lastName: "der Meister"
# postalCode: "12345"
# country: "Germany"
# ) {
# success
# }
# }
mutation book {
book(
placeId: ""
checkIn: "2017-11-19T11:57:44.828Z"
checkOut: "2017-11-20T11:57:44.828Z"
numGuests: 2
) {
success
}
}