Skip to content

Commit 870edf3

Browse files
committed
Add sample request documents to test clientgen
1 parent eb5906a commit 870edf3

File tree

3 files changed

+60
-0
lines changed

3 files changed

+60
-0
lines changed

samples/mutate.today.graphql

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Copyright (c) Microsoft Corporation. All rights reserved.
2+
# Licensed under the MIT License.
3+
4+
mutation {
5+
completedTask: completeTask(input: {id: "ZmFrZVRhc2tJZA==", isComplete: true, clientMutationId: "Hi There!"}) {
6+
completedTask: task {
7+
completedTaskId: id
8+
title
9+
isComplete
10+
}
11+
clientMutationId
12+
}
13+
}

samples/query.today.graphql

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Copyright (c) Microsoft Corporation. All rights reserved.
2+
# Licensed under the MIT License.
3+
4+
query Everything {
5+
appointments {
6+
edges {
7+
node {
8+
id
9+
subject
10+
when
11+
isNow
12+
__typename
13+
}
14+
}
15+
}
16+
tasks {
17+
edges {
18+
node {
19+
id
20+
title
21+
isComplete
22+
__typename
23+
}
24+
}
25+
}
26+
unreadCounts {
27+
edges {
28+
node {
29+
id
30+
name
31+
unreadCount
32+
__typename
33+
}
34+
}
35+
}
36+
}

samples/subscribe.today.graphql

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Copyright (c) Microsoft Corporation. All rights reserved.
2+
# Licensed under the MIT License.
3+
4+
subscription TestSubscription {
5+
nextAppointment: nextAppointmentChange {
6+
nextAppointmentId: id
7+
when
8+
subject
9+
isNow
10+
}
11+
}

0 commit comments

Comments
 (0)