Skip to content

Commit dc2df0d

Browse files
author
James Brundage
committed
docs: GitDiscussions.gql example ( Fixes #36 )
1 parent 0402e6c commit dc2df0d

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

Examples/GitDiscussions.gql

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
query getDiscussions($owner: String !, $repo: String !, $first: Int = 100){
2+
repository(owner: $owner, name: $repo) {
3+
discussions(first: $first) {
4+
# type: DiscussionConnection
5+
totalCount # Int!
6+
edges {
7+
# type: DiscussionEdge
8+
cursor
9+
node {
10+
# type: Discussion
11+
number
12+
title
13+
updatedAt
14+
url
15+
}
16+
}
17+
18+
nodes {
19+
# type: Discussion
20+
id
21+
}
22+
}
23+
}
24+
}

0 commit comments

Comments
 (0)