-
Notifications
You must be signed in to change notification settings - Fork 118
Expand file tree
/
Copy pathgraphql.ts
More file actions
159 lines (157 loc) · 5.91 KB
/
graphql.ts
File metadata and controls
159 lines (157 loc) · 5.91 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
import { merge } from 'lodash';
import * as common from './schema/common';
import * as comments from './schema/comments';
import * as compatibility from './schema/compatibility';
import * as bookmarks from './schema/bookmarks';
import * as feed from './schema/feeds';
import * as notifications from './schema/notifications';
import * as posts from './schema/posts';
import * as settings from './schema/settings';
import * as submissions from './schema/submissions';
import * as sourceRequests from './schema/sourceRequests';
import * as sources from './schema/sources';
import * as tags from './schema/tags';
import * as users from './schema/users';
import * as alerts from './schema/alerts';
import * as actions from './schema/actions';
import * as search from './schema/search';
import * as keywords from './schema/keywords';
import * as devcards from './schema/devcards';
import * as urlShortener from './schema/urlShortener';
import * as authDirective from './directive/auth';
import * as feedPlusDirective from './directive/feedPlus';
import * as urlDirective from './directive/url';
import * as leaderboard from './schema/leaderboard';
import * as integrations from './schema/integrations';
import * as contentPreference from './schema/contentPreference';
import * as paddle from './schema/paddle';
import * as njord from './schema/njord';
import * as organizations from './schema/organizations';
import * as campaigns from './schema/campaigns';
import * as opportunity from './schema/opportunity';
import * as autocompletes from './schema/autocompletes';
import * as profile from './schema/profile';
import * as userStack from './schema/userStack';
import * as sourceStack from './schema/sourceStack';
import * as userHotTake from './schema/userHotTake';
import * as gear from './schema/gear';
import * as userWorkspacePhoto from './schema/userWorkspacePhoto';
import * as personalAccessTokens from './schema/personalAccessTokens';
import * as feedback from './schema/feedback';
import * as sentiment from './schema/sentiment';
import * as achievements from './schema/achievements';
import * as quests from './schema/quests';
import * as highlights from './schema/highlights';
import * as archive from './schema/archive';
import { makeExecutableSchema } from '@graphql-tools/schema';
import {
rateLimitTypeDefs,
rateLimiterTransformers,
} from './directive/rateLimit';
import * as rateLimitCounterDirective from './directive/rateLimitCounter';
import { traceResolvers } from './schema/trace';
export const schema = urlDirective.transformer(
feedPlusDirective.transformer(
rateLimitCounterDirective.transformer(
authDirective.transformer(
rateLimiterTransformers(
makeExecutableSchema({
typeDefs: [
...rateLimitTypeDefs,
common.typeDefs,
urlDirective.typeDefs,
feedPlusDirective.typeDefs,
rateLimitCounterDirective.typeDefs,
authDirective.typeDefs,
comments.typeDefs,
compatibility.typeDefs,
bookmarks.typeDefs,
feed.typeDefs,
notifications.typeDefs,
posts.typeDefs,
settings.typeDefs,
sourceRequests.typeDefs,
sources.typeDefs,
tags.typeDefs,
users.typeDefs,
keywords.typeDefs,
alerts.typeDefs,
submissions.typeDefs,
actions.typeDefs,
search.typeDefs,
devcards.typeDefs,
urlShortener.typeDefs,
leaderboard.typeDefs,
integrations.typeDefs,
contentPreference.typeDefs,
paddle.typeDefs,
njord.typeDefs,
organizations.typeDefs,
campaigns.typeDefs,
opportunity.typeDefs,
autocompletes.typeDefs,
profile.typeDefs,
userStack.typeDefs,
sourceStack.typeDefs,
userHotTake.typeDefs,
gear.typeDefs,
userWorkspacePhoto.typeDefs,
personalAccessTokens.typeDefs,
feedback.typeDefs,
sentiment.typeDefs,
achievements.typeDefs,
quests.typeDefs,
highlights.typeDefs,
archive.typeDefs,
],
resolvers: traceResolvers(
merge(
common.resolvers,
comments.resolvers,
compatibility.resolvers,
bookmarks.resolvers,
feed.resolvers,
notifications.resolvers,
posts.resolvers,
settings.resolvers,
sourceRequests.resolvers,
sources.resolvers,
tags.resolvers,
users.resolvers,
keywords.resolvers,
alerts.resolvers,
submissions.resolvers,
actions.resolvers,
search.resolvers,
devcards.resolvers,
urlShortener.resolvers,
leaderboard.resolvers,
integrations.resolvers,
contentPreference.resolvers,
paddle.resolvers,
njord.resolvers,
organizations.resolvers,
campaigns.resolvers,
opportunity.resolvers,
autocompletes.resolvers,
profile.resolvers,
userStack.resolvers,
sourceStack.resolvers,
userHotTake.resolvers,
gear.resolvers,
userWorkspacePhoto.resolvers,
personalAccessTokens.resolvers,
feedback.resolvers,
sentiment.resolvers,
achievements.resolvers,
quests.resolvers,
highlights.resolvers,
archive.resolvers,
),
),
}),
),
),
),
),
);