master
1// DO NOT EDIT. This is a generated file. Instead of this file, edit "reactions.graphql".
2
3const Reaction = `#graphql
4fragment Reaction on Reaction {
5 user {
6 login
7 }
8 content
9 createdAt
10}`
11
12export type Reaction = {
13 user: {
14 login: string
15 } | null
16 content:
17 | 'CONFUSED'
18 | 'EYES'
19 | 'HEART'
20 | 'HOORAY'
21 | 'LAUGH'
22 | 'ROCKET'
23 | 'THUMBS_DOWN'
24 | 'THUMBS_UP'
25 createdAt: string
26}
27
28const Reactions = `#graphql
29fragment Reactions on Reactable {
30 reactions(first: $num, after: $cursor) {
31 totalCount
32 nodes {
33 ...Reaction
34 }
35 pageInfo {
36 hasNextPage
37 endCursor
38 }
39 }
40}`
41
42export type Reactions = {
43 reactions: {
44 totalCount: number
45 nodes: Array<{} & Reaction> | null
46 pageInfo: {
47 hasNextPage: boolean
48 endCursor: string | null
49 }
50 }
51}
52
53export const ReactionsQuery = `#graphql
54${Reaction}
55${Reactions}
56query ReactionsQuery($id: ID!, $num: Int = 100, $cursor: String) {
57 node(id: $id) {
58 __typename
59 ...Reactions
60 }
61 rateLimit {
62 limit
63 cost
64 remaining
65 resetAt
66 }
67}` as string & ReactionsQuery
68
69export type ReactionsQuery = (vars: {
70 id: string
71 num?: number | null
72 cursor?: string | null
73}) => {
74 node:
75 | ({
76 __typename: string
77 } & Reactions)
78 | null
79 rateLimit: {
80 limit: number
81 cost: number
82 remaining: number
83 resetAt: string
84 } | null
85}
86
87export const ReactionsBatchQuery = `#graphql
88${Reaction}
89${Reactions}
90query ReactionsBatchQuery($ids: [ID!]!, $num: Int = 100, $cursor: String) {
91 nodes(ids: $ids) {
92 __typename
93 id
94 ...Reactions
95 }
96 rateLimit {
97 limit
98 cost
99 remaining
100 resetAt
101 }
102}` as string & ReactionsBatchQuery
103
104export type ReactionsBatchQuery = (vars: {
105 ids: string[]
106 num?: number | null
107 cursor?: string | null
108}) => {
109 nodes: Array<
110 {
111 __typename: string
112 id: string
113 } & Reactions
114 >
115 rateLimit: {
116 limit: number
117 cost: number
118 remaining: number
119 resetAt: string
120 } | null
121}