Skip to content

Commit 926f608

Browse files
committed
added graphql json
1 parent d5eaf9c commit 926f608

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

src/content/complete-mutation.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,24 @@ try {
142142

143143
⌛ In the customers section we are simply mapping over the customers supplied.
144144

145-
Next let's test the function:
145+
Next let's test the function with the follow mutation:
146+
147+
```javascript
148+
149+
mutation{
150+
makeABooking(listingId:"a114dded-ddef-4052-a106-bb18b94e6b51",bookingDate:"20-May-30",
151+
customerEmail:"peter@gmail.com",customers:{name: "Peter",surname:"Griffin",physioScore:"0",country:"USA",passportNumber:"34343445"}){
152+
chargeReciept
153+
bookingId
154+
size
155+
}
156+
}
157+
158+
159+
160+
```
161+
162+
If all went well our mutation should match the screenshot below:
146163

147164
\[Add the playground screenshot]
148165

0 commit comments

Comments
 (0)