Skip to content

Commit 0402e6c

Browse files
author
James Brundage
committed
docs: GitDiscussion.gql example ( Fixes #35 )
1 parent 82dac59 commit 0402e6c

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

Examples/GitDiscussion.gql

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
query getDiscussions($owner: String !, $repo: String !, $number: Int !){
2+
repository(owner: $owner, name: $repo) {
3+
discussion(number: $number) {
4+
# type: Discussion
5+
number
6+
title
7+
publishedAt
8+
author {
9+
login
10+
url
11+
}
12+
editor {
13+
login
14+
url
15+
}
16+
body
17+
bodyHTML
18+
bodyText
19+
category {
20+
createdAt
21+
name
22+
emoji
23+
emojiHTML
24+
slug
25+
updatedAt
26+
}
27+
closed
28+
closedAt
29+
createdAt
30+
createdViaEmail
31+
isAnswered
32+
answerChosenBy {
33+
login
34+
url
35+
}
36+
locked
37+
publishedAt
38+
poll {
39+
question
40+
options(first: 10) {
41+
nodes {
42+
id
43+
option
44+
totalVoteCount
45+
}
46+
}
47+
}
48+
49+
url
50+
}
51+
}
52+
}

0 commit comments

Comments
 (0)