coverage~bigbes/sr-ht-dolt3523280cgraph/api/generated.go

Coverage
0.0% 0/1877 statements
Δ
+0.0
Blob
c83e8d9
Uncovered L26-L28L135-L139L142-L145L147-L149L152-L155L158L160-L162L165-L168L171L173-L175L178-L181L184-L187L190-L193L196L198-L200L203-L206L209-L212L215-L218L221-L224L227-L230L233L235-L237L240-L243L246L248-L250L253-L256L259-L262L265-L268L271-L274L277-L280L283-L286L289-L292L294-L297L300-L303L306-L309L312-L315L317-L320L323-L326L329L331-L333L336-L339L342L344-L346L349-L352L354-L357L360-L363L365-L368L371-L374L376L378-L380L383L385-L387L390-L393L396-L399L402L404-L406L409-L412L415L418L421-L448L450-L456L458L461-L462L474-L483L717-L722L724L727-L732L734L737-L746L748L751-L764L766L769-L774L776L779-L804L806L809-L814L816L819-L826L828L831-L836L838L841-L852L854L857-L866L868L871-L884L886L889-L902L904L907-L920L922L925-L948L950L957-L984L987-L998L1001-L1012L1015-L1034L1037-L1064L1067-L1086L1089-L1100L1103-L1114L1117-L1128L1131-L1142L1149-L1159L1161-L1163L1168-L1176L1178L1181-L1191L1193-L1195L1200-L1202L1204-L1214L1216-L1218L1223-L1225L1227-L1237L1239-L1241L1246-L1248L1250-L1260L1262-L1264L1269-L1271L1273-L1283L1285-L1287L1292-L1294L1296-L1306L1308-L1310L1315-L1317L1319-L1329L1331-L1333L1338-L1340L1342-L1352L1354-L1356L1361-L1363L1365-L1375L1377-L1379L1384-L1386L1388-L1398L1400-L1402L1407-L1409L1411-L1421L1423-L1425L1430-L1432L1434-L1444L1446-L1448L1453-L1455L1457-L1467L1469-L1471L1476-L1478L1480-L1490L1492-L1494L1499-L1507L1509L1512-L1522L1524-L1526L1531-L1533L1535-L1545L1547-L1549L1554-L1556L1558-L1568L1570-L1572L1577-L1579L1581-L1591L1593-L1595L1600-L1608L1610L1613-L1623L1625-L1627L1632-L1634L1636-L1646L1648-L1650L1655-L1657L1659-L1669L1671-L1673L1678-L1680L1682-L1692L1694-L1696L1701-L1703L1705-L1715L1717-L1719L1724-L1726L1728-L1738L1740-L1742L1747-L1755L1757L1760-L1771L1773-L1775L1780-L1788L1790-L1794L1796-L1801L1804-L1815L1817-L1819L1824-L1832L1834-L1838L1840-L1845L1848-L1858L1860-L1862L1867-L1875L1877L1880-L1890L1892-L1894L1899-L1907L1909L1912-L1922L1924-L1926L1931-L1933L1935-L1945L1947-L1949L1954-L1962L1964L1967-L1978L1980-L1982L1987-L1995L1997-L2001L2003-L2008L2011-L2022L2024-L2026L2031-L2039L2041-L2045L2047-L2052L2055-L2066L2068-L2070L2075-L2083L2085-L2089L2091-L2096L2099-L2110L2112-L2114L2119-L2127L2129-L2133L2135-L2140L2143-L2153L2155-L2157L2162-L2170L2172L2175-L2185L2187-L2189L2194-L2196L2198-L2208L2210-L2212L2217-L2225L2227L2230-L2240L2242-L2244L2249-L2251L2253-L2263L2265-L2267L2272-L2274L2276-L2286L2288-L2290L2295-L2297L2299-L2309L2311-L2313L2318-L2320L2322-L2332L2334-L2336L2341-L2343L2345-L2355L2357-L2359L2364-L2366L2368-L2378L2380-L2382L2387-L2389L2391-L2401L2403-L2405L2410-L2418L2420-L2424L2426-L2431L2434-L2444L2446-L2448L2453-L2455L2457-L2467L2469-L2471L2476-L2478L2480-L2490L2492-L2494L2499-L2501L2503-L2513L2515-L2517L2522-L2524L2526-L2536L2538-L2540L2545-L2547L2549-L2559L2561-L2563L2568-L2570L2572-L2582L2584-L2586L2591-L2599L2601-L2605L2607-L2612L2615-L2625L2627-L2629L2634-L2642L2644L2647-L2657L2659-L2661L2666-L2668L2670-L2680L2682-L2684L2689-L2691L2693-L2703L2705-L2707L2712-L2714L2716-L2726L2728-L2730L2735-L2737L2739-L2749L2751-L2753L2758-L2766L2768L2771-L2781L2783-L2785L2790-L2792L2794-L2804L2806-L2808L2813-L2815L2817-L2827L2829-L2831L2836-L2838L2840-L2850L2852-L2854L2859-L2861L2863-L2873L2875-L2877L2882-L2890L2892L2895-L2905L2907-L2909L2914-L2922L2924L2927-L2937L2939-L2941L2946-L2954L2956L2959-L2969L2971-L2973L2978-L2986L2988L2991-L3001L3003-L3005L3010-L3018L3020L3023-L3033L3035-L3037L3042-L3044L3046-L3056L3058-L3060L3065-L3067L3069-L3079L3081-L3083L3088-L3090L3092-L3102L3104-L3106L3111-L3113L3115-L3126L3128-L3130L3135-L3143L3145-L3149L3151-L3156L3159-L3169L3171-L3173L3178-L3186L3188L3191-L3201L3203-L3205L3210-L3218L3220L3223-L3234L3236-L3238L3243-L3251L3253-L3257L3259-L3264L3267-L3277L3279-L3281L3286-L3294L3296L3299-L3309L3311-L3313L3318-L3326L3328L3331-L3341L3343-L3345L3350-L3352L3358-L3362L3364-L3367L3369-L3371L3373-L3377L3379-L3386L3389L3402-L3423L3426-L3429L3431-L3440L3445-L3466L3469-L3472L3474-L3483L3488-L3519L3522-L3525L3527-L3536L3541-L3582L3585-L3588L3590-L3599L3604-L3625L3628-L3631L3633-L3642L3647-L3699L3701-L3705L3708-L3713L3715-L3721L3725-L3726L3729-L3737L3739-L3743L3746-L3751L3753-L3759L3763-L3764L3767-L3775L3777-L3781L3784-L3789L3791-L3797L3801-L3802L3805-L3813L3815-L3819L3822-L3827L3829-L3835L3839-L3840L3843-L3851L3853-L3857L3860-L3865L3867-L3873L3877-L3878L3881-L3883L3886-L3889L3891-L3900L3905-L3926L3929-L3932L3934-L3943L3948-L3973L3975-L3979L3982-L3984L3987-L3995L3997-L4001L4004-L4006L4009-L4017L4019-L4023L4026-L4028L4031-L4039L4041-L4045L4048-L4050L4053-L4069L4072-L4075L4077-L4086L4091-L4117L4120-L4123L4125-L4134L4139-L4160L4163-L4166L4168-L4177L4182-L4218L4221-L4224L4226-L4235L4240-L4271L4274-L4277L4279-L4288L4293-L4334L4337-L4340L4342-L4351L4356-L4397L4400-L4403L4405-L4414L4419-L4460L4463-L4466L4468-L4477L4482-L4548L4551-L4554L4556-L4565L4572-L4577L4579-L4582L4585L4588-L4593L4595L4598-L4602L4604-L4606L4608-L4611L4613-L4619L4621L4624-L4629L4631-L4634L4637L4640-L4645L4647L4650-L4655L4657-L4660L4663L4666-L4671L4673L4676-L4681L4683-L4686L4689L4692-L4697L4699L4702-L4704L4706-L4711L4713L4716-L4721L4723-L4726L4729L4732-L4737L4739L4742-L4744L4746-L4751L4753L4756-L4759L4761-L4767L4769L4772-L4775L4777-L4783L4785L4788-L4797L4799L4802-L4806L4808-L4811L4814L4817-L4822L4824-L4827L4830L4833-L4838L4840L4843-L4846L4848-L4854L4856L4859-L4864L4866L4869-L4873L4875-L4877L4879-L4881L4883-L4888L4890-L4893L4896L4899-L4902L4904-L4910L4912L4915-L4924L4926L4929-L4934L4936-L4939L4942L4945-L4947L4949-L4951L4953-L4955L4957-L4962L4964-L4967L4970L4973-L4975L4977-L4982L4984-L4987L4990L4993-L4998L5000L5003-L5006L5008-L5014L5016L5019-L5022L5024-L5029L5031-L5036L5039-L5046L5049-L5055L5058-L5062L5065-L5069L5072-L5077L5080-L5085L5088-L5095L5098-L5103L5106-L5113L5116-L5120L5123-L5131L5133-L5136L5139L5142-L5150L5152-L5155L5158L5161-L5169L5171-L5174L5177L5180-L5184L5187-L5195L5197-L5200L5203L5206-L5210
1 // Code generated by github.com/99designs/gqlgen, DO NOT EDIT.
2
3 package api
4
5 import (
6 "bytes"
7 "context"
8 "errors"
9 "fmt"
10 "math"
11 "strconv"
12 "sync/atomic"
13 "time"
14
15 "github.com/99designs/gqlgen/graphql"
16 "github.com/99designs/gqlgen/graphql/introspection"
17 gqlparser "github.com/vektah/gqlparser/v2"
18 "github.com/vektah/gqlparser/v2/ast"
19 "sourcecraft.dev/bigbes/sr-ht-core/model"
20 model1 "sourcecraft.dev/bigbes/sr-ht-dolt/graph/model"
21 )
22
23 // region ***************************** api!.gotpl *****************************
24
25 // NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface.
26 0 func NewExecutableSchema(cfg Config) graphql.ExecutableSchema {
27 0 return &executableSchema{SchemaData: cfg.Schema, Resolvers: cfg.Resolvers, Directives: cfg.Directives, ComplexityRoot: cfg.Complexity}
28 0 }
29
30 type Config = graphql.Config[ResolverRoot, DirectiveRoot, ComplexityRoot]
31
32 type ResolverRoot interface {
33 Database() DatabaseResolver
34 Query() QueryResolver
35 }
36
37 type DirectiveRoot struct {
38 }
39
40 type ComplexityRoot struct {
41 ACLEntry struct {
42 Mode func(childComplexity int) int
43 User func(childComplexity int) int
44 }
45
46 Branch struct {
47 Head func(childComplexity int) int
48 Name func(childComplexity int) int
49 }
50
51 Column struct {
52 Name func(childComplexity int) int
53 Nullable func(childComplexity int) int
54 PrimaryKey func(childComplexity int) int
55 Type func(childComplexity int) int
56 }
57
58 Commit struct {
59 Author func(childComplexity int) int
60 Date func(childComplexity int) int
61 Email func(childComplexity int) int
62 Hash func(childComplexity int) int
63 Message func(childComplexity int) int
64 Parents func(childComplexity int) int
65 }
66
67 CommitCursor struct {
68 Cursor func(childComplexity int) int
69 Results func(childComplexity int) int
70 }
71
72 Database struct {
73 ACL func(childComplexity int) int
74 Branches func(childComplexity int) int
75 Created func(childComplexity int) int
76 DefaultBranch func(childComplexity int) int
77 Description func(childComplexity int) int
78 ID func(childComplexity int) int
79 Log func(childComplexity int, ref *string, from *model.Cursor, limit *int) int
80 Name func(childComplexity int) int
81 Owner func(childComplexity int) int
82 Tables func(childComplexity int, ref *string) int
83 Updated func(childComplexity int) int
84 Visibility func(childComplexity int) int
85 }
86
87 DatabaseCursor struct {
88 Cursor func(childComplexity int) int
89 Results func(childComplexity int) int
90 }
91
92 Query struct {
93 Database func(childComplexity int, owner string, name string) int
94 Databases func(childComplexity int, cursor *model.Cursor, filter *model.Filter) int
95 DatabasesByOwner func(childComplexity int, owner string, cursor *model.Cursor, filter *model.Filter) int
96 Me func(childComplexity int) int
97 }
98
99 Table struct {
100 Columns func(childComplexity int) int
101 Name func(childComplexity int) int
102 RowCount func(childComplexity int) int
103 }
104
105 User struct {
106 CanonicalName func(childComplexity int) int
107 Username func(childComplexity int) int
108 }
109 }
110
111 // endregion ***************************** api!.gotpl *****************************
112
113 // region ************************** generated!.gotpl **************************
114
115 type DatabaseResolver interface {
116 DefaultBranch(ctx context.Context, obj *model1.Database) (*string, error)
117 Branches(ctx context.Context, obj *model1.Database) ([]*model1.Branch, error)
118 Log(ctx context.Context, obj *model1.Database, ref *string, from *model.Cursor, limit *int) (*model1.CommitCursor, error)
119 Tables(ctx context.Context, obj *model1.Database, ref *string) ([]*model1.Table, error)
120 ACL(ctx context.Context, obj *model1.Database) ([]*model1.ACLEntry, error)
121 }
122 type QueryResolver interface {
123 Me(ctx context.Context) (*model1.User, error)
124 Databases(ctx context.Context, cursor *model.Cursor, filter *model.Filter) (*model1.DatabaseCursor, error)
125 DatabasesByOwner(ctx context.Context, owner string, cursor *model.Cursor, filter *model.Filter) (*model1.DatabaseCursor, error)
126 Database(ctx context.Context, owner string, name string) (*model1.Database, error)
127 }
128
129 // endregion ************************** generated!.gotpl **************************
130
131 // region ************************** internal!.gotpl ***************************
132
133 type executableSchema graphql.ExecutableSchemaState[ResolverRoot, DirectiveRoot, ComplexityRoot]
134
135 0 func (e *executableSchema) Schema() *ast.Schema {
136 0 if e.SchemaData != nil {
137 0 return e.SchemaData
138 0 }
139 0 return parsedSchema
140 }
141
142 0 func (e *executableSchema) Complexity(ctx context.Context, typeName, field string, childComplexity int, rawArgs map[string]any) (int, bool) {
143 0 ec := newExecutionContext(nil, e, nil)
144 0 _ = ec
145 0 switch typeName + "." + field {
146
147 0 case "ACLEntry.mode":
148 0 if e.ComplexityRoot.ACLEntry.Mode == nil {
149 0 break
150 }
151
152 0 return e.ComplexityRoot.ACLEntry.Mode(childComplexity), true
153 0 case "ACLEntry.user":
154 0 if e.ComplexityRoot.ACLEntry.User == nil {
155 0 break
156 }
157
158 0 return e.ComplexityRoot.ACLEntry.User(childComplexity), true
159
160 0 case "Branch.head":
161 0 if e.ComplexityRoot.Branch.Head == nil {
162 0 break
163 }
164
165 0 return e.ComplexityRoot.Branch.Head(childComplexity), true
166 0 case "Branch.name":
167 0 if e.ComplexityRoot.Branch.Name == nil {
168 0 break
169 }
170
171 0 return e.ComplexityRoot.Branch.Name(childComplexity), true
172
173 0 case "Column.name":
174 0 if e.ComplexityRoot.Column.Name == nil {
175 0 break
176 }
177
178 0 return e.ComplexityRoot.Column.Name(childComplexity), true
179 0 case "Column.nullable":
180 0 if e.ComplexityRoot.Column.Nullable == nil {
181 0 break
182 }
183
184 0 return e.ComplexityRoot.Column.Nullable(childComplexity), true
185 0 case "Column.primaryKey":
186 0 if e.ComplexityRoot.Column.PrimaryKey == nil {
187 0 break
188 }
189
190 0 return e.ComplexityRoot.Column.PrimaryKey(childComplexity), true
191 0 case "Column.type":
192 0 if e.ComplexityRoot.Column.Type == nil {
193 0 break
194 }
195
196 0 return e.ComplexityRoot.Column.Type(childComplexity), true
197
198 0 case "Commit.author":
199 0 if e.ComplexityRoot.Commit.Author == nil {
200 0 break
201 }
202
203 0 return e.ComplexityRoot.Commit.Author(childComplexity), true
204 0 case "Commit.date":
205 0 if e.ComplexityRoot.Commit.Date == nil {
206 0 break
207 }
208
209 0 return e.ComplexityRoot.Commit.Date(childComplexity), true
210 0 case "Commit.email":
211 0 if e.ComplexityRoot.Commit.Email == nil {
212 0 break
213 }
214
215 0 return e.ComplexityRoot.Commit.Email(childComplexity), true
216 0 case "Commit.hash":
217 0 if e.ComplexityRoot.Commit.Hash == nil {
218 0 break
219 }
220
221 0 return e.ComplexityRoot.Commit.Hash(childComplexity), true
222 0 case "Commit.message":
223 0 if e.ComplexityRoot.Commit.Message == nil {
224 0 break
225 }
226
227 0 return e.ComplexityRoot.Commit.Message(childComplexity), true
228 0 case "Commit.parents":
229 0 if e.ComplexityRoot.Commit.Parents == nil {
230 0 break
231 }
232
233 0 return e.ComplexityRoot.Commit.Parents(childComplexity), true
234
235 0 case "CommitCursor.cursor":
236 0 if e.ComplexityRoot.CommitCursor.Cursor == nil {
237 0 break
238 }
239
240 0 return e.ComplexityRoot.CommitCursor.Cursor(childComplexity), true
241 0 case "CommitCursor.results":
242 0 if e.ComplexityRoot.CommitCursor.Results == nil {
243 0 break
244 }
245
246 0 return e.ComplexityRoot.CommitCursor.Results(childComplexity), true
247
248 0 case "Database.acl":
249 0 if e.ComplexityRoot.Database.ACL == nil {
250 0 break
251 }
252
253 0 return e.ComplexityRoot.Database.ACL(childComplexity), true
254 0 case "Database.branches":
255 0 if e.ComplexityRoot.Database.Branches == nil {
256 0 break
257 }
258
259 0 return e.ComplexityRoot.Database.Branches(childComplexity), true
260 0 case "Database.created":
261 0 if e.ComplexityRoot.Database.Created == nil {
262 0 break
263 }
264
265 0 return e.ComplexityRoot.Database.Created(childComplexity), true
266 0 case "Database.defaultBranch":
267 0 if e.ComplexityRoot.Database.DefaultBranch == nil {
268 0 break
269 }
270
271 0 return e.ComplexityRoot.Database.DefaultBranch(childComplexity), true
272 0 case "Database.description":
273 0 if e.ComplexityRoot.Database.Description == nil {
274 0 break
275 }
276
277 0 return e.ComplexityRoot.Database.Description(childComplexity), true
278 0 case "Database.id":
279 0 if e.ComplexityRoot.Database.ID == nil {
280 0 break
281 }
282
283 0 return e.ComplexityRoot.Database.ID(childComplexity), true
284 0 case "Database.log":
285 0 if e.ComplexityRoot.Database.Log == nil {
286 0 break
287 }
288
289 0 args, err := ec.field_Database_log_args(ctx, rawArgs)
290 0 if err != nil {
291 0 return 0, false
292 0 }
293
294 0 return e.ComplexityRoot.Database.Log(childComplexity, args["ref"].(*string), args["from"].(*model.Cursor), args["limit"].(*int)), true
295 0 case "Database.name":
296 0 if e.ComplexityRoot.Database.Name == nil {
297 0 break
298 }
299
300 0 return e.ComplexityRoot.Database.Name(childComplexity), true
301 0 case "Database.owner":
302 0 if e.ComplexityRoot.Database.Owner == nil {
303 0 break
304 }
305
306 0 return e.ComplexityRoot.Database.Owner(childComplexity), true
307 0 case "Database.tables":
308 0 if e.ComplexityRoot.Database.Tables == nil {
309 0 break
310 }
311
312 0 args, err := ec.field_Database_tables_args(ctx, rawArgs)
313 0 if err != nil {
314 0 return 0, false
315 0 }
316
317 0 return e.ComplexityRoot.Database.Tables(childComplexity, args["ref"].(*string)), true
318 0 case "Database.updated":
319 0 if e.ComplexityRoot.Database.Updated == nil {
320 0 break
321 }
322
323 0 return e.ComplexityRoot.Database.Updated(childComplexity), true
324 0 case "Database.visibility":
325 0 if e.ComplexityRoot.Database.Visibility == nil {
326 0 break
327 }
328
329 0 return e.ComplexityRoot.Database.Visibility(childComplexity), true
330
331 0 case "DatabaseCursor.cursor":
332 0 if e.ComplexityRoot.DatabaseCursor.Cursor == nil {
333 0 break
334 }
335
336 0 return e.ComplexityRoot.DatabaseCursor.Cursor(childComplexity), true
337 0 case "DatabaseCursor.results":
338 0 if e.ComplexityRoot.DatabaseCursor.Results == nil {
339 0 break
340 }
341
342 0 return e.ComplexityRoot.DatabaseCursor.Results(childComplexity), true
343
344 0 case "Query.database":
345 0 if e.ComplexityRoot.Query.Database == nil {
346 0 break
347 }
348
349 0 args, err := ec.field_Query_database_args(ctx, rawArgs)
350 0 if err != nil {
351 0 return 0, false
352 0 }
353
354 0 return e.ComplexityRoot.Query.Database(childComplexity, args["owner"].(string), args["name"].(string)), true
355 0 case "Query.databases":
356 0 if e.ComplexityRoot.Query.Databases == nil {
357 0 break
358 }
359
360 0 args, err := ec.field_Query_databases_args(ctx, rawArgs)
361 0 if err != nil {
362 0 return 0, false
363 0 }
364
365 0 return e.ComplexityRoot.Query.Databases(childComplexity, args["cursor"].(*model.Cursor), args["filter"].(*model.Filter)), true
366 0 case "Query.databasesByOwner":
367 0 if e.ComplexityRoot.Query.DatabasesByOwner == nil {
368 0 break
369 }
370
371 0 args, err := ec.field_Query_databasesByOwner_args(ctx, rawArgs)
372 0 if err != nil {
373 0 return 0, false
374 0 }
375
376 0 return e.ComplexityRoot.Query.DatabasesByOwner(childComplexity, args["owner"].(string), args["cursor"].(*model.Cursor), args["filter"].(*model.Filter)), true
377
378 0 case "Query.me":
379 0 if e.ComplexityRoot.Query.Me == nil {
380 0 break
381 }
382
383 0 return e.ComplexityRoot.Query.Me(childComplexity), true
384
385 0 case "Table.columns":
386 0 if e.ComplexityRoot.Table.Columns == nil {
387 0 break
388 }
389
390 0 return e.ComplexityRoot.Table.Columns(childComplexity), true
391 0 case "Table.name":
392 0 if e.ComplexityRoot.Table.Name == nil {
393 0 break
394 }
395
396 0 return e.ComplexityRoot.Table.Name(childComplexity), true
397 0 case "Table.rowCount":
398 0 if e.ComplexityRoot.Table.RowCount == nil {
399 0 break
400 }
401
402 0 return e.ComplexityRoot.Table.RowCount(childComplexity), true
403
404 0 case "User.canonicalName":
405 0 if e.ComplexityRoot.User.CanonicalName == nil {
406 0 break
407 }
408
409 0 return e.ComplexityRoot.User.CanonicalName(childComplexity), true
410 0 case "User.username":
411 0 if e.ComplexityRoot.User.Username == nil {
412 0 break
413 }
414
415 0 return e.ComplexityRoot.User.Username(childComplexity), true
416
417 }
418 0 return 0, false
419 }
420
421 0 func (e *executableSchema) Exec(ctx context.Context) graphql.ResponseHandler {
422 0 opCtx := graphql.GetOperationContext(ctx)
423 0 ec := newExecutionContext(opCtx, e, make(chan graphql.DeferredResult))
424 0 inputUnmarshalMap := graphql.BuildUnmarshalerMap(
425 0 ec.unmarshalInputFilter,
426 0 )
427 0 first := true
428 0
429 0 switch opCtx.Operation.Operation {
430 0 case ast.Query:
431 0 return func(ctx context.Context) *graphql.Response {
432 0 var response graphql.Response
433 0 var data graphql.Marshaler
434 0 if first {
435 0 first = false
436 0 ctx = graphql.WithUnmarshalerMap(ctx, inputUnmarshalMap)
437 0 data = ec._Query(ctx, opCtx.Operation.SelectionSet)
438 0 } else {
439 0 if atomic.LoadInt32(&ec.PendingDeferred) > 0 {
440 0 result := <-ec.DeferredResults
441 0 atomic.AddInt32(&ec.PendingDeferred, -1)
442 0 data = result.Result
443 0 response.Path = result.Path
444 0 response.Label = result.Label
445 0 response.Errors = result.Errors
446 0 } else {
447 0 return nil
448 0 }
449 }
450 0 var buf bytes.Buffer
451 0 data.MarshalGQL(&buf)
452 0 response.Data = buf.Bytes()
453 0 if atomic.LoadInt32(&ec.Deferred) > 0 {
454 0 hasNext := atomic.LoadInt32(&ec.PendingDeferred) > 0
455 0 response.HasNext = &hasNext
456 0 }
457
458 0 return &response
459 }
460
461 0 default:
462 0 return graphql.OneShot(graphql.ErrorResponse(ctx, "unsupported GraphQL operation"))
463 }
464 }
465
466 type executionContext struct {
467 *graphql.ExecutionContextState[ResolverRoot, DirectiveRoot, ComplexityRoot]
468 }
469
470 func newExecutionContext(
471 opCtx *graphql.OperationContext,
472 execSchema *executableSchema,
473 deferredResults chan graphql.DeferredResult,
474 0 ) *executionContext {
475 0 return &executionContext{
476 0 ExecutionContextState: graphql.NewExecutionContextState[ResolverRoot, DirectiveRoot, ComplexityRoot](
477 0 opCtx,
478 0 (*graphql.ExecutableSchemaState[ResolverRoot, DirectiveRoot, ComplexityRoot])(execSchema),
479 0 parsedSchema,
480 0 deferredResults,
481 0 ),
482 0 }
483 0 }
484
485 var sources = []*ast.Source{
486 {Name: "../schema.graphqls", Input: `# dolt.sr.ht — the read schema.
487 #
488 # There are no mutations here, and the reason is the same one spec.sr.ht gives:
489 # a type federated into api.sr.ht is a consumed contract, expensive to churn, so
490 # only what has settled is published. Creating, renaming and deleting a database
491 # each move a metadata row and an on-disk store together, and that pairing is
492 # young; it stays behind the web UI until it is not.
493 #
494 # Rows and diffs are absent for a different reason. They exist on /mcp, where a
495 # read that had to be clipped says so in its own answer — a shape this schema
496 # would have to reproduce field by field to stay honest. Until it does, a client
497 # that wants table contents should ask /mcp, and this schema stops at the
498 # structure: what databases exist, what branches and commits they carry, and
499 # what tables live at a ref.
500 #
501 # Everything below is read through the same db/ store and browse/ session the
502 # web pages and the MCP tools use, so the three surfaces cannot disagree about
503 # what a database is.
504
505 """
506 An RFC-3339 timestamp.
507 """
508 scalar Time
509
510 """
511 An opaque pagination cursor. Pass it back into the same field to fetch the next
512 page; it is null when there are no further results.
513 """
514 scalar Cursor
515
516 """
517 Who may see a database, and how it is listed.
518
519 PUBLIC is listed to everyone including anonymous callers. UNLISTED is reachable
520 by direct address but never appears in a listing to a stranger. PRIVATE is
521 neither: to a caller who may not see it, it does not exist — this schema answers
522 null rather than an authorization error, exactly as the web UI answers "no such
523 database" rather than "forbidden".
524 """
525 enum Visibility {
526 PUBLIC
527 UNLISTED
528 PRIVATE
529 }
530
531 """
532 An ACL grant: read-only (browse and clone) or read-write (and push).
533 """
534 enum AccessMode {
535 RO
536 RW
537 }
538
539 """
540 A SourceHut account, mirrored from meta.sr.ht.
541 """
542 type User {
543 """
544 The username with no leading "~". This is the name that addresses the account
545 in ` + "`" + `database(owner:)` + "`" + ` and in a clone URL's path.
546 """
547 username: String!
548
549 """
550 The username with its leading "~", as SourceHut writes it in prose and in the
551 web UI.
552 """
553 canonicalName: String!
554 }
555
556 """
557 A hosted Dolt database: one metadata row and one bare chunk store.
558 """
559 type Database {
560 id: Int!
561 name: String!
562 owner: User!
563
564 """
565 The description shown in listings. Empty rather than null when unset: a
566 companion of a git repository mirrors that repository's description, and "no
567 description" and "the empty description" are the same state here.
568 """
569 description: String!
570 visibility: Visibility!
571 created: Time!
572 updated: Time!
573
574 """
575 The branch a reader lands on: "main" when it exists, else the first branch by
576 name. Null for a database nothing has been pushed to yet — a store with no
577 commits has no branches, which is a state and not a failure.
578 """
579 defaultBranch: String
580
581 """
582 Every branch, the default one first and the rest by name. Empty for a database
583 nothing has been pushed to.
584 """
585 branches: [Branch!]!
586
587 """
588 The commit log of ` + "`" + `ref` + "`" + `, newest first. ` + "`" + `ref` + "`" + ` is a branch name or a commit
589 hash, defaulting to ` + "`" + `defaultBranch` + "`" + `; ` + "`" + `from` + "`" + ` continues a previous page from the
590 hash it returned as ` + "`" + `cursor` + "`" + `.
591 """
592 log(ref: String, from: Cursor, limit: Int): CommitCursor!
593
594 """
595 The tables of the committed root at ` + "`" + `ref` + "`" + ` (a branch name or a commit hash,
596 defaulting to ` + "`" + `defaultBranch` + "`" + `), each with its columns and row count.
597 """
598 tables(ref: String): [Table!]!
599
600 """
601 Who else may read or write this database. Owner-only: to anybody else it is
602 the empty list, because the collaborator list of a database you do not own is
603 not yours to enumerate.
604 """
605 acl: [ACLEntry!]!
606 }
607
608 """
609 A branch and the commit it points at.
610 """
611 type Branch {
612 name: String!
613 head: String!
614 }
615
616 """
617 One commit of a database's history.
618 """
619 type Commit {
620 hash: String!
621 author: String!
622 email: String!
623 date: Time!
624 message: String!
625 parents: [String!]!
626 }
627
628 """
629 A column of a table, as the stored schema declares it.
630 """
631 type Column {
632 name: String!
633 type: String!
634 primaryKey: Boolean!
635 nullable: Boolean!
636 }
637
638 """
639 A table at a ref: its schema and how many rows it holds there.
640 """
641 type Table {
642 name: String!
643 columns: [Column!]!
644 rowCount: Int!
645 }
646
647 """
648 An access grant on a database.
649 """
650 type ACLEntry {
651 user: User!
652 mode: AccessMode!
653 }
654
655 """
656 How a listing is paged. It is git.sr.ht's ` + "`" + `Filter` + "`" + ` minus ` + "`" + `search` + "`" + `: nothing here
657 searches yet, and declaring a field this schema would ignore is a worse answer
658 than not declaring it.
659 """
660 input Filter {
661 """
662 How many results one page holds, capped at 100. It travels in the cursor the
663 page returns, so it is given once and kept for the rest of the walk.
664 """
665 count: Int = 25
666 }
667
668 type DatabaseCursor {
669 results: [Database!]!
670 cursor: Cursor
671 }
672
673 type CommitCursor {
674 results: [Commit!]!
675 cursor: Cursor
676 }
677
678 type Query {
679 """
680 The caller, or null for an anonymous one. Anonymous is a normal caller on this
681 schema — it reads what an anonymous visitor reads — so a null here is an
682 answer and not an error.
683 """
684 me: User
685
686 """
687 Every database the caller may be shown, newest first, across all owners.
688
689 This is the listing rule and not the read rule: PUBLIC to everyone, plus
690 whatever the caller owns or holds an ACL entry on. An UNLISTED database of
691 somebody else is absent here and still readable through ` + "`" + `database` + "`" + `.
692 """
693 databases(cursor: Cursor, filter: Filter): DatabaseCursor!
694
695 """
696 One owner's databases, under the same listing rule as ` + "`" + `databases` + "`" + `. ` + "`" + `owner` + "`" + `
697 carries no leading "~".
698 """
699 databasesByOwner(owner: String!, cursor: Cursor, filter: Filter): DatabaseCursor!
700
701 """
702 One database by owner and name, neither carrying a leading "~". Null when
703 there is no such database *or* when the caller may not see it — the two are
704 deliberately one answer, so that a PRIVATE database cannot be discovered by
705 the shape of the refusal.
706 """
707 database(owner: String!, name: String!): Database
708 }
709 `, BuiltIn: false},
710 }
711 var parsedSchema = gqlparser.MustLoadSchema(sources...)
712
713 // childFields_* functions provide shared child field context lookups.
714 // Each function is generated once per unique object type, deduplicating the
715 // switch statements that were previously inlined in every fieldContext_* function.
716
717 0 func (ec *executionContext) childFields_ACLEntry(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
718 0 switch field.Name {
719 0 case "user":
720 0 return ec.fieldContext_ACLEntry_user(ctx, field)
721 0 case "mode":
722 0 return ec.fieldContext_ACLEntry_mode(ctx, field)
723 }
724 0 return nil, fmt.Errorf("no field named %q was found under type ACLEntry", field.Name)
725 }
726
727 0 func (ec *executionContext) childFields_Branch(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
728 0 switch field.Name {
729 0 case "name":
730 0 return ec.fieldContext_Branch_name(ctx, field)
731 0 case "head":
732 0 return ec.fieldContext_Branch_head(ctx, field)
733 }
734 0 return nil, fmt.Errorf("no field named %q was found under type Branch", field.Name)
735 }
736
737 0 func (ec *executionContext) childFields_Column(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
738 0 switch field.Name {
739 0 case "name":
740 0 return ec.fieldContext_Column_name(ctx, field)
741 0 case "type":
742 0 return ec.fieldContext_Column_type(ctx, field)
743 0 case "primaryKey":
744 0 return ec.fieldContext_Column_primaryKey(ctx, field)
745 0 case "nullable":
746 0 return ec.fieldContext_Column_nullable(ctx, field)
747 }
748 0 return nil, fmt.Errorf("no field named %q was found under type Column", field.Name)
749 }
750
751 0 func (ec *executionContext) childFields_Commit(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
752 0 switch field.Name {
753 0 case "hash":
754 0 return ec.fieldContext_Commit_hash(ctx, field)
755 0 case "author":
756 0 return ec.fieldContext_Commit_author(ctx, field)
757 0 case "email":
758 0 return ec.fieldContext_Commit_email(ctx, field)
759 0 case "date":
760 0 return ec.fieldContext_Commit_date(ctx, field)
761 0 case "message":
762 0 return ec.fieldContext_Commit_message(ctx, field)
763 0 case "parents":
764 0 return ec.fieldContext_Commit_parents(ctx, field)
765 }
766 0 return nil, fmt.Errorf("no field named %q was found under type Commit", field.Name)
767 }
768
769 0 func (ec *executionContext) childFields_CommitCursor(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
770 0 switch field.Name {
771 0 case "results":
772 0 return ec.fieldContext_CommitCursor_results(ctx, field)
773 0 case "cursor":
774 0 return ec.fieldContext_CommitCursor_cursor(ctx, field)
775 }
776 0 return nil, fmt.Errorf("no field named %q was found under type CommitCursor", field.Name)
777 }
778
779 0 func (ec *executionContext) childFields_Database(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
780 0 switch field.Name {
781 0 case "id":
782 0 return ec.fieldContext_Database_id(ctx, field)
783 0 case "name":
784 0 return ec.fieldContext_Database_name(ctx, field)
785 0 case "owner":
786 0 return ec.fieldContext_Database_owner(ctx, field)
787 0 case "description":
788 0 return ec.fieldContext_Database_description(ctx, field)
789 0 case "visibility":
790 0 return ec.fieldContext_Database_visibility(ctx, field)
791 0 case "created":
792 0 return ec.fieldContext_Database_created(ctx, field)
793 0 case "updated":
794 0 return ec.fieldContext_Database_updated(ctx, field)
795 0 case "defaultBranch":
796 0 return ec.fieldContext_Database_defaultBranch(ctx, field)
797 0 case "branches":
798 0 return ec.fieldContext_Database_branches(ctx, field)
799 0 case "log":
800 0 return ec.fieldContext_Database_log(ctx, field)
801 0 case "tables":
802 0 return ec.fieldContext_Database_tables(ctx, field)
803 0 case "acl":
804 0 return ec.fieldContext_Database_acl(ctx, field)
805 }
806 0 return nil, fmt.Errorf("no field named %q was found under type Database", field.Name)
807 }
808
809 0 func (ec *executionContext) childFields_DatabaseCursor(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
810 0 switch field.Name {
811 0 case "results":
812 0 return ec.fieldContext_DatabaseCursor_results(ctx, field)
813 0 case "cursor":
814 0 return ec.fieldContext_DatabaseCursor_cursor(ctx, field)
815 }
816 0 return nil, fmt.Errorf("no field named %q was found under type DatabaseCursor", field.Name)
817 }
818
819 0 func (ec *executionContext) childFields_Table(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
820 0 switch field.Name {
821 0 case "name":
822 0 return ec.fieldContext_Table_name(ctx, field)
823 0 case "columns":
824 0 return ec.fieldContext_Table_columns(ctx, field)
825 0 case "rowCount":
826 0 return ec.fieldContext_Table_rowCount(ctx, field)
827 }
828 0 return nil, fmt.Errorf("no field named %q was found under type Table", field.Name)
829 }
830
831 0 func (ec *executionContext) childFields_User(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
832 0 switch field.Name {
833 0 case "username":
834 0 return ec.fieldContext_User_username(ctx, field)
835 0 case "canonicalName":
836 0 return ec.fieldContext_User_canonicalName(ctx, field)
837 }
838 0 return nil, fmt.Errorf("no field named %q was found under type User", field.Name)
839 }
840
841 0 func (ec *executionContext) childFields___Directive(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
842 0 switch field.Name {
843 0 case "name":
844 0 return ec.fieldContext___Directive_name(ctx, field)
845 0 case "description":
846 0 return ec.fieldContext___Directive_description(ctx, field)
847 0 case "isRepeatable":
848 0 return ec.fieldContext___Directive_isRepeatable(ctx, field)
849 0 case "locations":
850 0 return ec.fieldContext___Directive_locations(ctx, field)
851 0 case "args":
852 0 return ec.fieldContext___Directive_args(ctx, field)
853 }
854 0 return nil, fmt.Errorf("no field named %q was found under type __Directive", field.Name)
855 }
856
857 0 func (ec *executionContext) childFields___EnumValue(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
858 0 switch field.Name {
859 0 case "name":
860 0 return ec.fieldContext___EnumValue_name(ctx, field)
861 0 case "description":
862 0 return ec.fieldContext___EnumValue_description(ctx, field)
863 0 case "isDeprecated":
864 0 return ec.fieldContext___EnumValue_isDeprecated(ctx, field)
865 0 case "deprecationReason":
866 0 return ec.fieldContext___EnumValue_deprecationReason(ctx, field)
867 }
868 0 return nil, fmt.Errorf("no field named %q was found under type __EnumValue", field.Name)
869 }
870
871 0 func (ec *executionContext) childFields___Field(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
872 0 switch field.Name {
873 0 case "name":
874 0 return ec.fieldContext___Field_name(ctx, field)
875 0 case "description":
876 0 return ec.fieldContext___Field_description(ctx, field)
877 0 case "args":
878 0 return ec.fieldContext___Field_args(ctx, field)
879 0 case "type":
880 0 return ec.fieldContext___Field_type(ctx, field)
881 0 case "isDeprecated":
882 0 return ec.fieldContext___Field_isDeprecated(ctx, field)
883 0 case "deprecationReason":
884 0 return ec.fieldContext___Field_deprecationReason(ctx, field)
885 }
886 0 return nil, fmt.Errorf("no field named %q was found under type __Field", field.Name)
887 }
888
889 0 func (ec *executionContext) childFields___InputValue(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
890 0 switch field.Name {
891 0 case "name":
892 0 return ec.fieldContext___InputValue_name(ctx, field)
893 0 case "description":
894 0 return ec.fieldContext___InputValue_description(ctx, field)
895 0 case "type":
896 0 return ec.fieldContext___InputValue_type(ctx, field)
897 0 case "defaultValue":
898 0 return ec.fieldContext___InputValue_defaultValue(ctx, field)
899 0 case "isDeprecated":
900 0 return ec.fieldContext___InputValue_isDeprecated(ctx, field)
901 0 case "deprecationReason":
902 0 return ec.fieldContext___InputValue_deprecationReason(ctx, field)
903 }
904 0 return nil, fmt.Errorf("no field named %q was found under type __InputValue", field.Name)
905 }
906
907 0 func (ec *executionContext) childFields___Schema(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
908 0 switch field.Name {
909 0 case "description":
910 0 return ec.fieldContext___Schema_description(ctx, field)
911 0 case "types":
912 0 return ec.fieldContext___Schema_types(ctx, field)
913 0 case "queryType":
914 0 return ec.fieldContext___Schema_queryType(ctx, field)
915 0 case "mutationType":
916 0 return ec.fieldContext___Schema_mutationType(ctx, field)
917 0 case "subscriptionType":
918 0 return ec.fieldContext___Schema_subscriptionType(ctx, field)
919 0 case "directives":
920 0 return ec.fieldContext___Schema_directives(ctx, field)
921 }
922 0 return nil, fmt.Errorf("no field named %q was found under type __Schema", field.Name)
923 }
924
925 0 func (ec *executionContext) childFields___Type(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
926 0 switch field.Name {
927 0 case "kind":
928 0 return ec.fieldContext___Type_kind(ctx, field)
929 0 case "name":
930 0 return ec.fieldContext___Type_name(ctx, field)
931 0 case "description":
932 0 return ec.fieldContext___Type_description(ctx, field)
933 0 case "specifiedByURL":
934 0 return ec.fieldContext___Type_specifiedByURL(ctx, field)
935 0 case "fields":
936 0 return ec.fieldContext___Type_fields(ctx, field)
937 0 case "interfaces":
938 0 return ec.fieldContext___Type_interfaces(ctx, field)
939 0 case "possibleTypes":
940 0 return ec.fieldContext___Type_possibleTypes(ctx, field)
941 0 case "enumValues":
942 0 return ec.fieldContext___Type_enumValues(ctx, field)
943 0 case "inputFields":
944 0 return ec.fieldContext___Type_inputFields(ctx, field)
945 0 case "ofType":
946 0 return ec.fieldContext___Type_ofType(ctx, field)
947 0 case "isOneOf":
948 0 return ec.fieldContext___Type_isOneOf(ctx, field)
949 }
950 0 return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
951 }
952
953 // endregion ************************** internal!.gotpl ***************************
954
955 // region ***************************** args.gotpl *****************************
956
957 0 func (ec *executionContext) field_Database_log_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
958 0 var err error
959 0 args := map[string]any{}
960 0 arg0, err := graphql.ProcessArgField(ctx, rawArgs, "ref",
961 0 func(ctx context.Context, v any) (*string, error) {
962 0 return ec.unmarshalOString2ᚖstring(ctx, v)
963 0 })
964 0 if err != nil {
965 0 return nil, err
966 0 }
967 0 args["ref"] = arg0
968 0 arg1, err := graphql.ProcessArgField(ctx, rawArgs, "from",
969 0 func(ctx context.Context, v any) (*model.Cursor, error) {
970 0 return ec.unmarshalOCursor2ᚖsourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑcoreᚋmodelᚐCursor(ctx, v)
971 0 })
972 0 if err != nil {
973 0 return nil, err
974 0 }
975 0 args["from"] = arg1
976 0 arg2, err := graphql.ProcessArgField(ctx, rawArgs, "limit",
977 0 func(ctx context.Context, v any) (*int, error) {
978 0 return ec.unmarshalOInt2ᚖint(ctx, v)
979 0 })
980 0 if err != nil {
981 0 return nil, err
982 0 }
983 0 args["limit"] = arg2
984 0 return args, nil
985 }
986
987 0 func (ec *executionContext) field_Database_tables_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
988 0 var err error
989 0 args := map[string]any{}
990 0 arg0, err := graphql.ProcessArgField(ctx, rawArgs, "ref",
991 0 func(ctx context.Context, v any) (*string, error) {
992 0 return ec.unmarshalOString2ᚖstring(ctx, v)
993 0 })
994 0 if err != nil {
995 0 return nil, err
996 0 }
997 0 args["ref"] = arg0
998 0 return args, nil
999 }
1000
1001 0 func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
1002 0 var err error
1003 0 args := map[string]any{}
1004 0 arg0, err := graphql.ProcessArgField(ctx, rawArgs, "name",
1005 0 func(ctx context.Context, v any) (string, error) {
1006 0 return ec.unmarshalNString2string(ctx, v)
1007 0 })
1008 0 if err != nil {
1009 0 return nil, err
1010 0 }
1011 0 args["name"] = arg0
1012 0 return args, nil
1013 }
1014
1015 0 func (ec *executionContext) field_Query_database_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
1016 0 var err error
1017 0 args := map[string]any{}
1018 0 arg0, err := graphql.ProcessArgField(ctx, rawArgs, "owner",
1019 0 func(ctx context.Context, v any) (string, error) {
1020 0 return ec.unmarshalNString2string(ctx, v)
1021 0 })
1022 0 if err != nil {
1023 0 return nil, err
1024 0 }
1025 0 args["owner"] = arg0
1026 0 arg1, err := graphql.ProcessArgField(ctx, rawArgs, "name",
1027 0 func(ctx context.Context, v any) (string, error) {
1028 0 return ec.unmarshalNString2string(ctx, v)
1029 0 })
1030 0 if err != nil {
1031 0 return nil, err
1032 0 }
1033 0 args["name"] = arg1
1034 0 return args, nil
1035 }
1036
1037 0 func (ec *executionContext) field_Query_databasesByOwner_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
1038 0 var err error
1039 0 args := map[string]any{}
1040 0 arg0, err := graphql.ProcessArgField(ctx, rawArgs, "owner",
1041 0 func(ctx context.Context, v any) (string, error) {
1042 0 return ec.unmarshalNString2string(ctx, v)
1043 0 })
1044 0 if err != nil {
1045 0 return nil, err
1046 0 }
1047 0 args["owner"] = arg0
1048 0 arg1, err := graphql.ProcessArgField(ctx, rawArgs, "cursor",
1049 0 func(ctx context.Context, v any) (*model.Cursor, error) {
1050 0 return ec.unmarshalOCursor2ᚖsourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑcoreᚋmodelᚐCursor(ctx, v)
1051 0 })
1052 0 if err != nil {
1053 0 return nil, err
1054 0 }
1055 0 args["cursor"] = arg1
1056 0 arg2, err := graphql.ProcessArgField(ctx, rawArgs, "filter",
1057 0 func(ctx context.Context, v any) (*model.Filter, error) {
1058 0 return ec.unmarshalOFilter2ᚖsourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑcoreᚋmodelᚐFilter(ctx, v)
1059 0 })
1060 0 if err != nil {
1061 0 return nil, err
1062 0 }
1063 0 args["filter"] = arg2
1064 0 return args, nil
1065 }
1066
1067 0 func (ec *executionContext) field_Query_databases_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
1068 0 var err error
1069 0 args := map[string]any{}
1070 0 arg0, err := graphql.ProcessArgField(ctx, rawArgs, "cursor",
1071 0 func(ctx context.Context, v any) (*model.Cursor, error) {
1072 0 return ec.unmarshalOCursor2ᚖsourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑcoreᚋmodelᚐCursor(ctx, v)
1073 0 })
1074 0 if err != nil {
1075 0 return nil, err
1076 0 }
1077 0 args["cursor"] = arg0
1078 0 arg1, err := graphql.ProcessArgField(ctx, rawArgs, "filter",
1079 0 func(ctx context.Context, v any) (*model.Filter, error) {
1080 0 return ec.unmarshalOFilter2ᚖsourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑcoreᚋmodelᚐFilter(ctx, v)
1081 0 })
1082 0 if err != nil {
1083 0 return nil, err
1084 0 }
1085 0 args["filter"] = arg1
1086 0 return args, nil
1087 }
1088
1089 0 func (ec *executionContext) field___Directive_args_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
1090 0 var err error
1091 0 args := map[string]any{}
1092 0 arg0, err := graphql.ProcessArgField(ctx, rawArgs, "includeDeprecated",
1093 0 func(ctx context.Context, v any) (*bool, error) {
1094 0 return ec.unmarshalOBoolean2ᚖbool(ctx, v)
1095 0 })
1096 0 if err != nil {
1097 0 return nil, err
1098 0 }
1099 0 args["includeDeprecated"] = arg0
1100 0 return args, nil
1101 }
1102
1103 0 func (ec *executionContext) field___Field_args_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
1104 0 var err error
1105 0 args := map[string]any{}
1106 0 arg0, err := graphql.ProcessArgField(ctx, rawArgs, "includeDeprecated",
1107 0 func(ctx context.Context, v any) (*bool, error) {
1108 0 return ec.unmarshalOBoolean2ᚖbool(ctx, v)
1109 0 })
1110 0 if err != nil {
1111 0 return nil, err
1112 0 }
1113 0 args["includeDeprecated"] = arg0
1114 0 return args, nil
1115 }
1116
1117 0 func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
1118 0 var err error
1119 0 args := map[string]any{}
1120 0 arg0, err := graphql.ProcessArgField(ctx, rawArgs, "includeDeprecated",
1121 0 func(ctx context.Context, v any) (bool, error) {
1122 0 return ec.unmarshalOBoolean2bool(ctx, v)
1123 0 })
1124 0 if err != nil {
1125 0 return nil, err
1126 0 }
1127 0 args["includeDeprecated"] = arg0
1128 0 return args, nil
1129 }
1130
1131 0 func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
1132 0 var err error
1133 0 args := map[string]any{}
1134 0 arg0, err := graphql.ProcessArgField(ctx, rawArgs, "includeDeprecated",
1135 0 func(ctx context.Context, v any) (bool, error) {
1136 0 return ec.unmarshalOBoolean2bool(ctx, v)
1137 0 })
1138 0 if err != nil {
1139 0 return nil, err
1140 0 }
1141 0 args["includeDeprecated"] = arg0
1142 0 return args, nil
1143 }
1144
1145 // endregion ***************************** args.gotpl *****************************
1146
1147 // region **************************** field.gotpl *****************************
1148
1149 0 func (ec *executionContext) _ACLEntry_user(ctx context.Context, field graphql.CollectedField, obj *model1.ACLEntry) (ret graphql.Marshaler) {
1150 0 return graphql.ResolveField(
1151 0 ctx,
1152 0 ec.OperationContext,
1153 0 field,
1154 0 func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
1155 0 return ec.fieldContext_ACLEntry_user(ctx, field)
1156 0 },
1157 0 func(ctx context.Context) (any, error) {
1158 0 return obj.User, nil
1159 0 },
1160 nil,
1161 0 func(ctx context.Context, selections ast.SelectionSet, v *model1.User) graphql.Marshaler {
1162 0 return ec.marshalNUser2ᚖsourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑdoltᚋgraphᚋmodelᚐUser(ctx, selections, v)
1163 0 },
1164 true,
1165 true,
1166 )
1167 }
1168 0 func (ec *executionContext) fieldContext_ACLEntry_user(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
1169 0 fc = &graphql.FieldContext{
1170 0 Object: "ACLEntry",
1171 0 Field: field,
1172 0 IsMethod: false,
1173 0 IsResolver: false,
1174 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
1175 0 return ec.childFields_User(ctx, field)
1176 0 },
1177 }
1178 0 return fc, nil
1179 }
1180
1181 0 func (ec *executionContext) _ACLEntry_mode(ctx context.Context, field graphql.CollectedField, obj *model1.ACLEntry) (ret graphql.Marshaler) {
1182 0 return graphql.ResolveField(
1183 0 ctx,
1184 0 ec.OperationContext,
1185 0 field,
1186 0 func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
1187 0 return ec.fieldContext_ACLEntry_mode(ctx, field)
1188 0 },
1189 0 func(ctx context.Context) (any, error) {
1190 0 return obj.Mode, nil
1191 0 },
1192 nil,
1193 0 func(ctx context.Context, selections ast.SelectionSet, v model1.AccessMode) graphql.Marshaler {
1194 0 return ec.marshalNAccessMode2sourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑdoltᚋgraphᚋmodelᚐAccessMode(ctx, selections, v)
1195 0 },
1196 true,
1197 true,
1198 )
1199 }
1200 0 func (ec *executionContext) fieldContext_ACLEntry_mode(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
1201 0 return graphql.NewScalarFieldContext("ACLEntry", field, false, false, errors.New("field of type AccessMode does not have child fields"))
1202 0 }
1203
1204 0 func (ec *executionContext) _Branch_name(ctx context.Context, field graphql.CollectedField, obj *model1.Branch) (ret graphql.Marshaler) {
1205 0 return graphql.ResolveField(
1206 0 ctx,
1207 0 ec.OperationContext,
1208 0 field,
1209 0 func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
1210 0 return ec.fieldContext_Branch_name(ctx, field)
1211 0 },
1212 0 func(ctx context.Context) (any, error) {
1213 0 return obj.Name, nil
1214 0 },
1215 nil,
1216 0 func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler {
1217 0 return ec.marshalNString2string(ctx, selections, v)
1218 0 },
1219 true,
1220 true,
1221 )
1222 }
1223 0 func (ec *executionContext) fieldContext_Branch_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
1224 0 return graphql.NewScalarFieldContext("Branch", field, false, false, errors.New("field of type String does not have child fields"))
1225 0 }
1226
1227 0 func (ec *executionContext) _Branch_head(ctx context.Context, field graphql.CollectedField, obj *model1.Branch) (ret graphql.Marshaler) {
1228 0 return graphql.ResolveField(
1229 0 ctx,
1230 0 ec.OperationContext,
1231 0 field,
1232 0 func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
1233 0 return ec.fieldContext_Branch_head(ctx, field)
1234 0 },
1235 0 func(ctx context.Context) (any, error) {
1236 0 return obj.Head, nil
1237 0 },
1238 nil,
1239 0 func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler {
1240 0 return ec.marshalNString2string(ctx, selections, v)
1241 0 },
1242 true,
1243 true,
1244 )
1245 }
1246 0 func (ec *executionContext) fieldContext_Branch_head(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
1247 0 return graphql.NewScalarFieldContext("Branch", field, false, false, errors.New("field of type String does not have child fields"))
1248 0 }
1249
1250 0 func (ec *executionContext) _Column_name(ctx context.Context, field graphql.CollectedField, obj *model1.Column) (ret graphql.Marshaler) {
1251 0 return graphql.ResolveField(
1252 0 ctx,
1253 0 ec.OperationContext,
1254 0 field,
1255 0 func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
1256 0 return ec.fieldContext_Column_name(ctx, field)
1257 0 },
1258 0 func(ctx context.Context) (any, error) {
1259 0 return obj.Name, nil
1260 0 },
1261 nil,
1262 0 func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler {
1263 0 return ec.marshalNString2string(ctx, selections, v)
1264 0 },
1265 true,
1266 true,
1267 )
1268 }
1269 0 func (ec *executionContext) fieldContext_Column_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
1270 0 return graphql.NewScalarFieldContext("Column", field, false, false, errors.New("field of type String does not have child fields"))
1271 0 }
1272
1273 0 func (ec *executionContext) _Column_type(ctx context.Context, field graphql.CollectedField, obj *model1.Column) (ret graphql.Marshaler) {
1274 0 return graphql.ResolveField(
1275 0 ctx,
1276 0 ec.OperationContext,
1277 0 field,
1278 0 func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
1279 0 return ec.fieldContext_Column_type(ctx, field)
1280 0 },
1281 0 func(ctx context.Context) (any, error) {
1282 0 return obj.Type, nil
1283 0 },
1284 nil,
1285 0 func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler {
1286 0 return ec.marshalNString2string(ctx, selections, v)
1287 0 },
1288 true,
1289 true,
1290 )
1291 }
1292 0 func (ec *executionContext) fieldContext_Column_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
1293 0 return graphql.NewScalarFieldContext("Column", field, false, false, errors.New("field of type String does not have child fields"))
1294 0 }
1295
1296 0 func (ec *executionContext) _Column_primaryKey(ctx context.Context, field graphql.CollectedField, obj *model1.Column) (ret graphql.Marshaler) {
1297 0 return graphql.ResolveField(
1298 0 ctx,
1299 0 ec.OperationContext,
1300 0 field,
1301 0 func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
1302 0 return ec.fieldContext_Column_primaryKey(ctx, field)
1303 0 },
1304 0 func(ctx context.Context) (any, error) {
1305 0 return obj.PrimaryKey, nil
1306 0 },
1307 nil,
1308 0 func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler {
1309 0 return ec.marshalNBoolean2bool(ctx, selections, v)
1310 0 },
1311 true,
1312 true,
1313 )
1314 }
1315 0 func (ec *executionContext) fieldContext_Column_primaryKey(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
1316 0 return graphql.NewScalarFieldContext("Column", field, false, false, errors.New("field of type Boolean does not have child fields"))
1317 0 }
1318
1319 0 func (ec *executionContext) _Column_nullable(ctx context.Context, field graphql.CollectedField, obj *model1.Column) (ret graphql.Marshaler) {
1320 0 return graphql.ResolveField(
1321 0 ctx,
1322 0 ec.OperationContext,
1323 0 field,
1324 0 func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
1325 0 return ec.fieldContext_Column_nullable(ctx, field)
1326 0 },
1327 0 func(ctx context.Context) (any, error) {
1328 0 return obj.Nullable, nil
1329 0 },
1330 nil,
1331 0 func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler {
1332 0 return ec.marshalNBoolean2bool(ctx, selections, v)
1333 0 },
1334 true,
1335 true,
1336 )
1337 }
1338 0 func (ec *executionContext) fieldContext_Column_nullable(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
1339 0 return graphql.NewScalarFieldContext("Column", field, false, false, errors.New("field of type Boolean does not have child fields"))
1340 0 }
1341
1342 0 func (ec *executionContext) _Commit_hash(ctx context.Context, field graphql.CollectedField, obj *model1.Commit) (ret graphql.Marshaler) {
1343 0 return graphql.ResolveField(
1344 0 ctx,
1345 0 ec.OperationContext,
1346 0 field,
1347 0 func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
1348 0 return ec.fieldContext_Commit_hash(ctx, field)
1349 0 },
1350 0 func(ctx context.Context) (any, error) {
1351 0 return obj.Hash, nil
1352 0 },
1353 nil,
1354 0 func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler {
1355 0 return ec.marshalNString2string(ctx, selections, v)
1356 0 },
1357 true,
1358 true,
1359 )
1360 }
1361 0 func (ec *executionContext) fieldContext_Commit_hash(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
1362 0 return graphql.NewScalarFieldContext("Commit", field, false, false, errors.New("field of type String does not have child fields"))
1363 0 }
1364
1365 0 func (ec *executionContext) _Commit_author(ctx context.Context, field graphql.CollectedField, obj *model1.Commit) (ret graphql.Marshaler) {
1366 0 return graphql.ResolveField(
1367 0 ctx,
1368 0 ec.OperationContext,
1369 0 field,
1370 0 func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
1371 0 return ec.fieldContext_Commit_author(ctx, field)
1372 0 },
1373 0 func(ctx context.Context) (any, error) {
1374 0 return obj.Author, nil
1375 0 },
1376 nil,
1377 0 func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler {
1378 0 return ec.marshalNString2string(ctx, selections, v)
1379 0 },
1380 true,
1381 true,
1382 )
1383 }
1384 0 func (ec *executionContext) fieldContext_Commit_author(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
1385 0 return graphql.NewScalarFieldContext("Commit", field, false, false, errors.New("field of type String does not have child fields"))
1386 0 }
1387
1388 0 func (ec *executionContext) _Commit_email(ctx context.Context, field graphql.CollectedField, obj *model1.Commit) (ret graphql.Marshaler) {
1389 0 return graphql.ResolveField(
1390 0 ctx,
1391 0 ec.OperationContext,
1392 0 field,
1393 0 func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
1394 0 return ec.fieldContext_Commit_email(ctx, field)
1395 0 },
1396 0 func(ctx context.Context) (any, error) {
1397 0 return obj.Email, nil
1398 0 },
1399 nil,
1400 0 func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler {
1401 0 return ec.marshalNString2string(ctx, selections, v)
1402 0 },
1403 true,
1404 true,
1405 )
1406 }
1407 0 func (ec *executionContext) fieldContext_Commit_email(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
1408 0 return graphql.NewScalarFieldContext("Commit", field, false, false, errors.New("field of type String does not have child fields"))
1409 0 }
1410
1411 0 func (ec *executionContext) _Commit_date(ctx context.Context, field graphql.CollectedField, obj *model1.Commit) (ret graphql.Marshaler) {
1412 0 return graphql.ResolveField(
1413 0 ctx,
1414 0 ec.OperationContext,
1415 0 field,
1416 0 func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
1417 0 return ec.fieldContext_Commit_date(ctx, field)
1418 0 },
1419 0 func(ctx context.Context) (any, error) {
1420 0 return obj.Date, nil
1421 0 },
1422 nil,
1423 0 func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler {
1424 0 return ec.marshalNTime2timeᚐTime(ctx, selections, v)
1425 0 },
1426 true,
1427 true,
1428 )
1429 }
1430 0 func (ec *executionContext) fieldContext_Commit_date(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
1431 0 return graphql.NewScalarFieldContext("Commit", field, false, false, errors.New("field of type Time does not have child fields"))
1432 0 }
1433
1434 0 func (ec *executionContext) _Commit_message(ctx context.Context, field graphql.CollectedField, obj *model1.Commit) (ret graphql.Marshaler) {
1435 0 return graphql.ResolveField(
1436 0 ctx,
1437 0 ec.OperationContext,
1438 0 field,
1439 0 func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
1440 0 return ec.fieldContext_Commit_message(ctx, field)
1441 0 },
1442 0 func(ctx context.Context) (any, error) {
1443 0 return obj.Message, nil
1444 0 },
1445 nil,
1446 0 func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler {
1447 0 return ec.marshalNString2string(ctx, selections, v)
1448 0 },
1449 true,
1450 true,
1451 )
1452 }
1453 0 func (ec *executionContext) fieldContext_Commit_message(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
1454 0 return graphql.NewScalarFieldContext("Commit", field, false, false, errors.New("field of type String does not have child fields"))
1455 0 }
1456
1457 0 func (ec *executionContext) _Commit_parents(ctx context.Context, field graphql.CollectedField, obj *model1.Commit) (ret graphql.Marshaler) {
1458 0 return graphql.ResolveField(
1459 0 ctx,
1460 0 ec.OperationContext,
1461 0 field,
1462 0 func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
1463 0 return ec.fieldContext_Commit_parents(ctx, field)
1464 0 },
1465 0 func(ctx context.Context) (any, error) {
1466 0 return obj.Parents, nil
1467 0 },
1468 nil,
1469 0 func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler {
1470 0 return ec.marshalNString2ᚕstringᚄ(ctx, selections, v)
1471 0 },
1472 true,
1473 true,
1474 )
1475 }
1476 0 func (ec *executionContext) fieldContext_Commit_parents(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
1477 0 return graphql.NewScalarFieldContext("Commit", field, false, false, errors.New("field of type String does not have child fields"))
1478 0 }
1479
1480 0 func (ec *executionContext) _CommitCursor_results(ctx context.Context, field graphql.CollectedField, obj *model1.CommitCursor) (ret graphql.Marshaler) {
1481 0 return graphql.ResolveField(
1482 0 ctx,
1483 0 ec.OperationContext,
1484 0 field,
1485 0 func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
1486 0 return ec.fieldContext_CommitCursor_results(ctx, field)
1487 0 },
1488 0 func(ctx context.Context) (any, error) {
1489 0 return obj.Results, nil
1490 0 },
1491 nil,
1492 0 func(ctx context.Context, selections ast.SelectionSet, v []*model1.Commit) graphql.Marshaler {
1493 0 return ec.marshalNCommit2ᚕᚖsourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑdoltᚋgraphᚋmodelᚐCommitᚄ(ctx, selections, v)
1494 0 },
1495 true,
1496 true,
1497 )
1498 }
1499 0 func (ec *executionContext) fieldContext_CommitCursor_results(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
1500 0 fc = &graphql.FieldContext{
1501 0 Object: "CommitCursor",
1502 0 Field: field,
1503 0 IsMethod: false,
1504 0 IsResolver: false,
1505 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
1506 0 return ec.childFields_Commit(ctx, field)
1507 0 },
1508 }
1509 0 return fc, nil
1510 }
1511
1512 0 func (ec *executionContext) _CommitCursor_cursor(ctx context.Context, field graphql.CollectedField, obj *model1.CommitCursor) (ret graphql.Marshaler) {
1513 0 return graphql.ResolveField(
1514 0 ctx,
1515 0 ec.OperationContext,
1516 0 field,
1517 0 func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
1518 0 return ec.fieldContext_CommitCursor_cursor(ctx, field)
1519 0 },
1520 0 func(ctx context.Context) (any, error) {
1521 0 return obj.Cursor, nil
1522 0 },
1523 nil,
1524 0 func(ctx context.Context, selections ast.SelectionSet, v *model.Cursor) graphql.Marshaler {
1525 0 return ec.marshalOCursor2ᚖsourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑcoreᚋmodelᚐCursor(ctx, selections, v)
1526 0 },
1527 true,
1528 false,
1529 )
1530 }
1531 0 func (ec *executionContext) fieldContext_CommitCursor_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
1532 0 return graphql.NewScalarFieldContext("CommitCursor", field, false, false, errors.New("field of type Cursor does not have child fields"))
1533 0 }
1534
1535 0 func (ec *executionContext) _Database_id(ctx context.Context, field graphql.CollectedField, obj *model1.Database) (ret graphql.Marshaler) {
1536 0 return graphql.ResolveField(
1537 0 ctx,
1538 0 ec.OperationContext,
1539 0 field,
1540 0 func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
1541 0 return ec.fieldContext_Database_id(ctx, field)
1542 0 },
1543 0 func(ctx context.Context) (any, error) {
1544 0 return obj.ID, nil
1545 0 },
1546 nil,
1547 0 func(ctx context.Context, selections ast.SelectionSet, v int) graphql.Marshaler {
1548 0 return ec.marshalNInt2int(ctx, selections, v)
1549 0 },
1550 true,
1551 true,
1552 )
1553 }
1554 0 func (ec *executionContext) fieldContext_Database_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
1555 0 return graphql.NewScalarFieldContext("Database", field, false, false, errors.New("field of type Int does not have child fields"))
1556 0 }
1557
1558 0 func (ec *executionContext) _Database_name(ctx context.Context, field graphql.CollectedField, obj *model1.Database) (ret graphql.Marshaler) {
1559 0 return graphql.ResolveField(
1560 0 ctx,
1561 0 ec.OperationContext,
1562 0 field,
1563 0 func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
1564 0 return ec.fieldContext_Database_name(ctx, field)
1565 0 },
1566 0 func(ctx context.Context) (any, error) {
1567 0 return obj.Name, nil
1568 0 },
1569 nil,
1570 0 func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler {
1571 0 return ec.marshalNString2string(ctx, selections, v)
1572 0 },
1573 true,
1574 true,
1575 )
1576 }
1577 0 func (ec *executionContext) fieldContext_Database_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
1578 0 return graphql.NewScalarFieldContext("Database", field, false, false, errors.New("field of type String does not have child fields"))
1579 0 }
1580
1581 0 func (ec *executionContext) _Database_owner(ctx context.Context, field graphql.CollectedField, obj *model1.Database) (ret graphql.Marshaler) {
1582 0 return graphql.ResolveField(
1583 0 ctx,
1584 0 ec.OperationContext,
1585 0 field,
1586 0 func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
1587 0 return ec.fieldContext_Database_owner(ctx, field)
1588 0 },
1589 0 func(ctx context.Context) (any, error) {
1590 0 return obj.Owner, nil
1591 0 },
1592 nil,
1593 0 func(ctx context.Context, selections ast.SelectionSet, v *model1.User) graphql.Marshaler {
1594 0 return ec.marshalNUser2ᚖsourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑdoltᚋgraphᚋmodelᚐUser(ctx, selections, v)
1595 0 },
1596 true,
1597 true,
1598 )
1599 }
1600 0 func (ec *executionContext) fieldContext_Database_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
1601 0 fc = &graphql.FieldContext{
1602 0 Object: "Database",
1603 0 Field: field,
1604 0 IsMethod: false,
1605 0 IsResolver: false,
1606 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
1607 0 return ec.childFields_User(ctx, field)
1608 0 },
1609 }
1610 0 return fc, nil
1611 }
1612
1613 0 func (ec *executionContext) _Database_description(ctx context.Context, field graphql.CollectedField, obj *model1.Database) (ret graphql.Marshaler) {
1614 0 return graphql.ResolveField(
1615 0 ctx,
1616 0 ec.OperationContext,
1617 0 field,
1618 0 func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
1619 0 return ec.fieldContext_Database_description(ctx, field)
1620 0 },
1621 0 func(ctx context.Context) (any, error) {
1622 0 return obj.Description, nil
1623 0 },
1624 nil,
1625 0 func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler {
1626 0 return ec.marshalNString2string(ctx, selections, v)
1627 0 },
1628 true,
1629 true,
1630 )
1631 }
1632 0 func (ec *executionContext) fieldContext_Database_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
1633 0 return graphql.NewScalarFieldContext("Database", field, false, false, errors.New("field of type String does not have child fields"))
1634 0 }
1635
1636 0 func (ec *executionContext) _Database_visibility(ctx context.Context, field graphql.CollectedField, obj *model1.Database) (ret graphql.Marshaler) {
1637 0 return graphql.ResolveField(
1638 0 ctx,
1639 0 ec.OperationContext,
1640 0 field,
1641 0 func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
1642 0 return ec.fieldContext_Database_visibility(ctx, field)
1643 0 },
1644 0 func(ctx context.Context) (any, error) {
1645 0 return obj.Visibility, nil
1646 0 },
1647 nil,
1648 0 func(ctx context.Context, selections ast.SelectionSet, v model1.Visibility) graphql.Marshaler {
1649 0 return ec.marshalNVisibility2sourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑdoltᚋgraphᚋmodelᚐVisibility(ctx, selections, v)
1650 0 },
1651 true,
1652 true,
1653 )
1654 }
1655 0 func (ec *executionContext) fieldContext_Database_visibility(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
1656 0 return graphql.NewScalarFieldContext("Database", field, false, false, errors.New("field of type Visibility does not have child fields"))
1657 0 }
1658
1659 0 func (ec *executionContext) _Database_created(ctx context.Context, field graphql.CollectedField, obj *model1.Database) (ret graphql.Marshaler) {
1660 0 return graphql.ResolveField(
1661 0 ctx,
1662 0 ec.OperationContext,
1663 0 field,
1664 0 func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
1665 0 return ec.fieldContext_Database_created(ctx, field)
1666 0 },
1667 0 func(ctx context.Context) (any, error) {
1668 0 return obj.Created, nil
1669 0 },
1670 nil,
1671 0 func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler {
1672 0 return ec.marshalNTime2timeᚐTime(ctx, selections, v)
1673 0 },
1674 true,
1675 true,
1676 )
1677 }
1678 0 func (ec *executionContext) fieldContext_Database_created(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
1679 0 return graphql.NewScalarFieldContext("Database", field, false, false, errors.New("field of type Time does not have child fields"))
1680 0 }
1681
1682 0 func (ec *executionContext) _Database_updated(ctx context.Context, field graphql.CollectedField, obj *model1.Database) (ret graphql.Marshaler) {
1683 0 return graphql.ResolveField(
1684 0 ctx,
1685 0 ec.OperationContext,
1686 0 field,
1687 0 func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
1688 0 return ec.fieldContext_Database_updated(ctx, field)
1689 0 },
1690 0 func(ctx context.Context) (any, error) {
1691 0 return obj.Updated, nil
1692 0 },
1693 nil,
1694 0 func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler {
1695 0 return ec.marshalNTime2timeᚐTime(ctx, selections, v)
1696 0 },
1697 true,
1698 true,
1699 )
1700 }
1701 0 func (ec *executionContext) fieldContext_Database_updated(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
1702 0 return graphql.NewScalarFieldContext("Database", field, false, false, errors.New("field of type Time does not have child fields"))
1703 0 }
1704
1705 0 func (ec *executionContext) _Database_defaultBranch(ctx context.Context, field graphql.CollectedField, obj *model1.Database) (ret graphql.Marshaler) {
1706 0 return graphql.ResolveField(
1707 0 ctx,
1708 0 ec.OperationContext,
1709 0 field,
1710 0 func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
1711 0 return ec.fieldContext_Database_defaultBranch(ctx, field)
1712 0 },
1713 0 func(ctx context.Context) (any, error) {
1714 0 return ec.Resolvers.Database().DefaultBranch(ctx, obj)
1715 0 },
1716 nil,
1717 0 func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler {
1718 0 return ec.marshalOString2ᚖstring(ctx, selections, v)
1719 0 },
1720 true,
1721 false,
1722 )
1723 }
1724 0 func (ec *executionContext) fieldContext_Database_defaultBranch(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
1725 0 return graphql.NewScalarFieldContext("Database", field, true, true, errors.New("field of type String does not have child fields"))
1726 0 }
1727
1728 0 func (ec *executionContext) _Database_branches(ctx context.Context, field graphql.CollectedField, obj *model1.Database) (ret graphql.Marshaler) {
1729 0 return graphql.ResolveField(
1730 0 ctx,
1731 0 ec.OperationContext,
1732 0 field,
1733 0 func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
1734 0 return ec.fieldContext_Database_branches(ctx, field)
1735 0 },
1736 0 func(ctx context.Context) (any, error) {
1737 0 return ec.Resolvers.Database().Branches(ctx, obj)
1738 0 },
1739 nil,
1740 0 func(ctx context.Context, selections ast.SelectionSet, v []*model1.Branch) graphql.Marshaler {
1741 0 return ec.marshalNBranch2ᚕᚖsourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑdoltᚋgraphᚋmodelᚐBranchᚄ(ctx, selections, v)
1742 0 },
1743 true,
1744 true,
1745 )
1746 }
1747 0 func (ec *executionContext) fieldContext_Database_branches(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
1748 0 fc = &graphql.FieldContext{
1749 0 Object: "Database",
1750 0 Field: field,
1751 0 IsMethod: true,
1752 0 IsResolver: true,
1753 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
1754 0 return ec.childFields_Branch(ctx, field)
1755 0 },
1756 }
1757 0 return fc, nil
1758 }
1759
1760 0 func (ec *executionContext) _Database_log(ctx context.Context, field graphql.CollectedField, obj *model1.Database) (ret graphql.Marshaler) {
1761 0 return graphql.ResolveField(
1762 0 ctx,
1763 0 ec.OperationContext,
1764 0 field,
1765 0 func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
1766 0 return ec.fieldContext_Database_log(ctx, field)
1767 0 },
1768 0 func(ctx context.Context) (any, error) {
1769 0 fc := graphql.GetFieldContext(ctx)
1770 0 return ec.Resolvers.Database().Log(ctx, obj, fc.Args["ref"].(*string), fc.Args["from"].(*model.Cursor), fc.Args["limit"].(*int))
1771 0 },
1772 nil,
1773 0 func(ctx context.Context, selections ast.SelectionSet, v *model1.CommitCursor) graphql.Marshaler {
1774 0 return ec.marshalNCommitCursor2ᚖsourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑdoltᚋgraphᚋmodelᚐCommitCursor(ctx, selections, v)
1775 0 },
1776 true,
1777 true,
1778 )
1779 }
1780 0 func (ec *executionContext) fieldContext_Database_log(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
1781 0 fc = &graphql.FieldContext{
1782 0 Object: "Database",
1783 0 Field: field,
1784 0 IsMethod: true,
1785 0 IsResolver: true,
1786 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
1787 0 return ec.childFields_CommitCursor(ctx, field)
1788 0 },
1789 }
1790 0 defer func() {
1791 0 if r := recover(); r != nil {
1792 0 err = ec.Recover(ctx, r)
1793 0 ec.Error(ctx, err)
1794 0 }
1795 }()
1796 0 ctx = graphql.WithFieldContext(ctx, fc)
1797 0 if fc.Args, err = ec.field_Database_log_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
1798 0 ec.Error(ctx, err)
1799 0 return fc, err
1800 0 }
1801 0 return fc, nil
1802 }
1803
1804 0 func (ec *executionContext) _Database_tables(ctx context.Context, field graphql.CollectedField, obj *model1.Database) (ret graphql.Marshaler) {
1805 0 return graphql.ResolveField(
1806 0 ctx,
1807 0 ec.OperationContext,
1808 0 field,
1809 0 func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
1810 0 return ec.fieldContext_Database_tables(ctx, field)
1811 0 },
1812 0 func(ctx context.Context) (any, error) {
1813 0 fc := graphql.GetFieldContext(ctx)
1814 0 return ec.Resolvers.Database().Tables(ctx, obj, fc.Args["ref"].(*string))
1815 0 },
1816 nil,
1817 0 func(ctx context.Context, selections ast.SelectionSet, v []*model1.Table) graphql.Marshaler {
1818 0 return ec.marshalNTable2ᚕᚖsourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑdoltᚋgraphᚋmodelᚐTableᚄ(ctx, selections, v)
1819 0 },
1820 true,
1821 true,
1822 )
1823 }
1824 0 func (ec *executionContext) fieldContext_Database_tables(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
1825 0 fc = &graphql.FieldContext{
1826 0 Object: "Database",
1827 0 Field: field,
1828 0 IsMethod: true,
1829 0 IsResolver: true,
1830 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
1831 0 return ec.childFields_Table(ctx, field)
1832 0 },
1833 }
1834 0 defer func() {
1835 0 if r := recover(); r != nil {
1836 0 err = ec.Recover(ctx, r)
1837 0 ec.Error(ctx, err)
1838 0 }
1839 }()
1840 0 ctx = graphql.WithFieldContext(ctx, fc)
1841 0 if fc.Args, err = ec.field_Database_tables_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
1842 0 ec.Error(ctx, err)
1843 0 return fc, err
1844 0 }
1845 0 return fc, nil
1846 }
1847
1848 0 func (ec *executionContext) _Database_acl(ctx context.Context, field graphql.CollectedField, obj *model1.Database) (ret graphql.Marshaler) {
1849 0 return graphql.ResolveField(
1850 0 ctx,
1851 0 ec.OperationContext,
1852 0 field,
1853 0 func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
1854 0 return ec.fieldContext_Database_acl(ctx, field)
1855 0 },
1856 0 func(ctx context.Context) (any, error) {
1857 0 return ec.Resolvers.Database().ACL(ctx, obj)
1858 0 },
1859 nil,
1860 0 func(ctx context.Context, selections ast.SelectionSet, v []*model1.ACLEntry) graphql.Marshaler {
1861 0 return ec.marshalNACLEntry2ᚕᚖsourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑdoltᚋgraphᚋmodelᚐACLEntryᚄ(ctx, selections, v)
1862 0 },
1863 true,
1864 true,
1865 )
1866 }
1867 0 func (ec *executionContext) fieldContext_Database_acl(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
1868 0 fc = &graphql.FieldContext{
1869 0 Object: "Database",
1870 0 Field: field,
1871 0 IsMethod: true,
1872 0 IsResolver: true,
1873 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
1874 0 return ec.childFields_ACLEntry(ctx, field)
1875 0 },
1876 }
1877 0 return fc, nil
1878 }
1879
1880 0 func (ec *executionContext) _DatabaseCursor_results(ctx context.Context, field graphql.CollectedField, obj *model1.DatabaseCursor) (ret graphql.Marshaler) {
1881 0 return graphql.ResolveField(
1882 0 ctx,
1883 0 ec.OperationContext,
1884 0 field,
1885 0 func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
1886 0 return ec.fieldContext_DatabaseCursor_results(ctx, field)
1887 0 },
1888 0 func(ctx context.Context) (any, error) {
1889 0 return obj.Results, nil
1890 0 },
1891 nil,
1892 0 func(ctx context.Context, selections ast.SelectionSet, v []*model1.Database) graphql.Marshaler {
1893 0 return ec.marshalNDatabase2ᚕᚖsourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑdoltᚋgraphᚋmodelᚐDatabaseᚄ(ctx, selections, v)
1894 0 },
1895 true,
1896 true,
1897 )
1898 }
1899 0 func (ec *executionContext) fieldContext_DatabaseCursor_results(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
1900 0 fc = &graphql.FieldContext{
1901 0 Object: "DatabaseCursor",
1902 0 Field: field,
1903 0 IsMethod: false,
1904 0 IsResolver: false,
1905 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
1906 0 return ec.childFields_Database(ctx, field)
1907 0 },
1908 }
1909 0 return fc, nil
1910 }
1911
1912 0 func (ec *executionContext) _DatabaseCursor_cursor(ctx context.Context, field graphql.CollectedField, obj *model1.DatabaseCursor) (ret graphql.Marshaler) {
1913 0 return graphql.ResolveField(
1914 0 ctx,
1915 0 ec.OperationContext,
1916 0 field,
1917 0 func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
1918 0 return ec.fieldContext_DatabaseCursor_cursor(ctx, field)
1919 0 },
1920 0 func(ctx context.Context) (any, error) {
1921 0 return obj.Cursor, nil
1922 0 },
1923 nil,
1924 0 func(ctx context.Context, selections ast.SelectionSet, v *model.Cursor) graphql.Marshaler {
1925 0 return ec.marshalOCursor2ᚖsourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑcoreᚋmodelᚐCursor(ctx, selections, v)
1926 0 },
1927 true,
1928 false,
1929 )
1930 }
1931 0 func (ec *executionContext) fieldContext_DatabaseCursor_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
1932 0 return graphql.NewScalarFieldContext("DatabaseCursor", field, false, false, errors.New("field of type Cursor does not have child fields"))
1933 0 }
1934
1935 0 func (ec *executionContext) _Query_me(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
1936 0 return graphql.ResolveField(
1937 0 ctx,
1938 0 ec.OperationContext,
1939 0 field,
1940 0 func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
1941 0 return ec.fieldContext_Query_me(ctx, field)
1942 0 },
1943 0 func(ctx context.Context) (any, error) {
1944 0 return ec.Resolvers.Query().Me(ctx)
1945 0 },
1946 nil,
1947 0 func(ctx context.Context, selections ast.SelectionSet, v *model1.User) graphql.Marshaler {
1948 0 return ec.marshalOUser2ᚖsourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑdoltᚋgraphᚋmodelᚐUser(ctx, selections, v)
1949 0 },
1950 true,
1951 false,
1952 )
1953 }
1954 0 func (ec *executionContext) fieldContext_Query_me(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
1955 0 fc = &graphql.FieldContext{
1956 0 Object: "Query",
1957 0 Field: field,
1958 0 IsMethod: true,
1959 0 IsResolver: true,
1960 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
1961 0 return ec.childFields_User(ctx, field)
1962 0 },
1963 }
1964 0 return fc, nil
1965 }
1966
1967 0 func (ec *executionContext) _Query_databases(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
1968 0 return graphql.ResolveField(
1969 0 ctx,
1970 0 ec.OperationContext,
1971 0 field,
1972 0 func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
1973 0 return ec.fieldContext_Query_databases(ctx, field)
1974 0 },
1975 0 func(ctx context.Context) (any, error) {
1976 0 fc := graphql.GetFieldContext(ctx)
1977 0 return ec.Resolvers.Query().Databases(ctx, fc.Args["cursor"].(*model.Cursor), fc.Args["filter"].(*model.Filter))
1978 0 },
1979 nil,
1980 0 func(ctx context.Context, selections ast.SelectionSet, v *model1.DatabaseCursor) graphql.Marshaler {
1981 0 return ec.marshalNDatabaseCursor2ᚖsourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑdoltᚋgraphᚋmodelᚐDatabaseCursor(ctx, selections, v)
1982 0 },
1983 true,
1984 true,
1985 )
1986 }
1987 0 func (ec *executionContext) fieldContext_Query_databases(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
1988 0 fc = &graphql.FieldContext{
1989 0 Object: "Query",
1990 0 Field: field,
1991 0 IsMethod: true,
1992 0 IsResolver: true,
1993 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
1994 0 return ec.childFields_DatabaseCursor(ctx, field)
1995 0 },
1996 }
1997 0 defer func() {
1998 0 if r := recover(); r != nil {
1999 0 err = ec.Recover(ctx, r)
2000 0 ec.Error(ctx, err)
2001 0 }
2002 }()
2003 0 ctx = graphql.WithFieldContext(ctx, fc)
2004 0 if fc.Args, err = ec.field_Query_databases_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
2005 0 ec.Error(ctx, err)
2006 0 return fc, err
2007 0 }
2008 0 return fc, nil
2009 }
2010
2011 0 func (ec *executionContext) _Query_databasesByOwner(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
2012 0 return graphql.ResolveField(
2013 0 ctx,
2014 0 ec.OperationContext,
2015 0 field,
2016 0 func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
2017 0 return ec.fieldContext_Query_databasesByOwner(ctx, field)
2018 0 },
2019 0 func(ctx context.Context) (any, error) {
2020 0 fc := graphql.GetFieldContext(ctx)
2021 0 return ec.Resolvers.Query().DatabasesByOwner(ctx, fc.Args["owner"].(string), fc.Args["cursor"].(*model.Cursor), fc.Args["filter"].(*model.Filter))
2022 0 },
2023 nil,
2024 0 func(ctx context.Context, selections ast.SelectionSet, v *model1.DatabaseCursor) graphql.Marshaler {
2025 0 return ec.marshalNDatabaseCursor2ᚖsourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑdoltᚋgraphᚋmodelᚐDatabaseCursor(ctx, selections, v)
2026 0 },
2027 true,
2028 true,
2029 )
2030 }
2031 0 func (ec *executionContext) fieldContext_Query_databasesByOwner(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
2032 0 fc = &graphql.FieldContext{
2033 0 Object: "Query",
2034 0 Field: field,
2035 0 IsMethod: true,
2036 0 IsResolver: true,
2037 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
2038 0 return ec.childFields_DatabaseCursor(ctx, field)
2039 0 },
2040 }
2041 0 defer func() {
2042 0 if r := recover(); r != nil {
2043 0 err = ec.Recover(ctx, r)
2044 0 ec.Error(ctx, err)
2045 0 }
2046 }()
2047 0 ctx = graphql.WithFieldContext(ctx, fc)
2048 0 if fc.Args, err = ec.field_Query_databasesByOwner_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
2049 0 ec.Error(ctx, err)
2050 0 return fc, err
2051 0 }
2052 0 return fc, nil
2053 }
2054
2055 0 func (ec *executionContext) _Query_database(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
2056 0 return graphql.ResolveField(
2057 0 ctx,
2058 0 ec.OperationContext,
2059 0 field,
2060 0 func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
2061 0 return ec.fieldContext_Query_database(ctx, field)
2062 0 },
2063 0 func(ctx context.Context) (any, error) {
2064 0 fc := graphql.GetFieldContext(ctx)
2065 0 return ec.Resolvers.Query().Database(ctx, fc.Args["owner"].(string), fc.Args["name"].(string))
2066 0 },
2067 nil,
2068 0 func(ctx context.Context, selections ast.SelectionSet, v *model1.Database) graphql.Marshaler {
2069 0 return ec.marshalODatabase2ᚖsourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑdoltᚋgraphᚋmodelᚐDatabase(ctx, selections, v)
2070 0 },
2071 true,
2072 false,
2073 )
2074 }
2075 0 func (ec *executionContext) fieldContext_Query_database(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
2076 0 fc = &graphql.FieldContext{
2077 0 Object: "Query",
2078 0 Field: field,
2079 0 IsMethod: true,
2080 0 IsResolver: true,
2081 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
2082 0 return ec.childFields_Database(ctx, field)
2083 0 },
2084 }
2085 0 defer func() {
2086 0 if r := recover(); r != nil {
2087 0 err = ec.Recover(ctx, r)
2088 0 ec.Error(ctx, err)
2089 0 }
2090 }()
2091 0 ctx = graphql.WithFieldContext(ctx, fc)
2092 0 if fc.Args, err = ec.field_Query_database_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
2093 0 ec.Error(ctx, err)
2094 0 return fc, err
2095 0 }
2096 0 return fc, nil
2097 }
2098
2099 0 func (ec *executionContext) _Query___type(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
2100 0 return graphql.ResolveField(
2101 0 ctx,
2102 0 ec.OperationContext,
2103 0 field,
2104 0 func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
2105 0 return ec.fieldContext_Query___type(ctx, field)
2106 0 },
2107 0 func(ctx context.Context) (any, error) {
2108 0 fc := graphql.GetFieldContext(ctx)
2109 0 return ec.IntrospectType(fc.Args["name"].(string))
2110 0 },
2111 nil,
2112 0 func(ctx context.Context, selections ast.SelectionSet, v *introspection.Type) graphql.Marshaler {
2113 0 return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, selections, v)
2114 0 },
2115 true,
2116 false,
2117 )
2118 }
2119 0 func (ec *executionContext) fieldContext_Query___type(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
2120 0 fc = &graphql.FieldContext{
2121 0 Object: "Query",
2122 0 Field: field,
2123 0 IsMethod: true,
2124 0 IsResolver: false,
2125 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
2126 0 return ec.childFields___Type(ctx, field)
2127 0 },
2128 }
2129 0 defer func() {
2130 0 if r := recover(); r != nil {
2131 0 err = ec.Recover(ctx, r)
2132 0 ec.Error(ctx, err)
2133 0 }
2134 }()
2135 0 ctx = graphql.WithFieldContext(ctx, fc)
2136 0 if fc.Args, err = ec.field_Query___type_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
2137 0 ec.Error(ctx, err)
2138 0 return fc, err
2139 0 }
2140 0 return fc, nil
2141 }
2142
2143 0 func (ec *executionContext) _Query___schema(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
2144 0 return graphql.ResolveField(
2145 0 ctx,
2146 0 ec.OperationContext,
2147 0 field,
2148 0 func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
2149 0 return ec.fieldContext_Query___schema(ctx, field)
2150 0 },
2151 0 func(ctx context.Context) (any, error) {
2152 0 return ec.IntrospectSchema()
2153 0 },
2154 nil,
2155 0 func(ctx context.Context, selections ast.SelectionSet, v *introspection.Schema) graphql.Marshaler {
2156 0 return ec.marshalO__Schema2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐSchema(ctx, selections, v)
2157 0 },
2158 true,
2159 false,
2160 )
2161 }
2162 0 func (ec *executionContext) fieldContext_Query___schema(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
2163 0 fc = &graphql.FieldContext{
2164 0 Object: "Query",
2165 0 Field: field,
2166 0 IsMethod: true,
2167 0 IsResolver: false,
2168 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
2169 0 return ec.childFields___Schema(ctx, field)
2170 0 },
2171 }
2172 0 return fc, nil
2173 }
2174
2175 0 func (ec *executionContext) _Table_name(ctx context.Context, field graphql.CollectedField, obj *model1.Table) (ret graphql.Marshaler) {
2176 0 return graphql.ResolveField(
2177 0 ctx,
2178 0 ec.OperationContext,
2179 0 field,
2180 0 func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
2181 0 return ec.fieldContext_Table_name(ctx, field)
2182 0 },
2183 0 func(ctx context.Context) (any, error) {
2184 0 return obj.Name, nil
2185 0 },
2186 nil,
2187 0 func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler {
2188 0 return ec.marshalNString2string(ctx, selections, v)
2189 0 },
2190 true,
2191 true,
2192 )
2193 }
2194 0 func (ec *executionContext) fieldContext_Table_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
2195 0 return graphql.NewScalarFieldContext("Table", field, false, false, errors.New("field of type String does not have child fields"))
2196 0 }
2197
2198 0 func (ec *executionContext) _Table_columns(ctx context.Context, field graphql.CollectedField, obj *model1.Table) (ret graphql.Marshaler) {
2199 0 return graphql.ResolveField(
2200 0 ctx,
2201 0 ec.OperationContext,
2202 0 field,
2203 0 func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
2204 0 return ec.fieldContext_Table_columns(ctx, field)
2205 0 },
2206 0 func(ctx context.Context) (any, error) {
2207 0 return obj.Columns, nil
2208 0 },
2209 nil,
2210 0 func(ctx context.Context, selections ast.SelectionSet, v []*model1.Column) graphql.Marshaler {
2211 0 return ec.marshalNColumn2ᚕᚖsourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑdoltᚋgraphᚋmodelᚐColumnᚄ(ctx, selections, v)
2212 0 },
2213 true,
2214 true,
2215 )
2216 }
2217 0 func (ec *executionContext) fieldContext_Table_columns(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
2218 0 fc = &graphql.FieldContext{
2219 0 Object: "Table",
2220 0 Field: field,
2221 0 IsMethod: false,
2222 0 IsResolver: false,
2223 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
2224 0 return ec.childFields_Column(ctx, field)
2225 0 },
2226 }
2227 0 return fc, nil
2228 }
2229
2230 0 func (ec *executionContext) _Table_rowCount(ctx context.Context, field graphql.CollectedField, obj *model1.Table) (ret graphql.Marshaler) {
2231 0 return graphql.ResolveField(
2232 0 ctx,
2233 0 ec.OperationContext,
2234 0 field,
2235 0 func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
2236 0 return ec.fieldContext_Table_rowCount(ctx, field)
2237 0 },
2238 0 func(ctx context.Context) (any, error) {
2239 0 return obj.RowCount, nil
2240 0 },
2241 nil,
2242 0 func(ctx context.Context, selections ast.SelectionSet, v int) graphql.Marshaler {
2243 0 return ec.marshalNInt2int(ctx, selections, v)
2244 0 },
2245 true,
2246 true,
2247 )
2248 }
2249 0 func (ec *executionContext) fieldContext_Table_rowCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
2250 0 return graphql.NewScalarFieldContext("Table", field, false, false, errors.New("field of type Int does not have child fields"))
2251 0 }
2252
2253 0 func (ec *executionContext) _User_username(ctx context.Context, field graphql.CollectedField, obj *model1.User) (ret graphql.Marshaler) {
2254 0 return graphql.ResolveField(
2255 0 ctx,
2256 0 ec.OperationContext,
2257 0 field,
2258 0 func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
2259 0 return ec.fieldContext_User_username(ctx, field)
2260 0 },
2261 0 func(ctx context.Context) (any, error) {
2262 0 return obj.Username, nil
2263 0 },
2264 nil,
2265 0 func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler {
2266 0 return ec.marshalNString2string(ctx, selections, v)
2267 0 },
2268 true,
2269 true,
2270 )
2271 }
2272 0 func (ec *executionContext) fieldContext_User_username(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
2273 0 return graphql.NewScalarFieldContext("User", field, false, false, errors.New("field of type String does not have child fields"))
2274 0 }
2275
2276 0 func (ec *executionContext) _User_canonicalName(ctx context.Context, field graphql.CollectedField, obj *model1.User) (ret graphql.Marshaler) {
2277 0 return graphql.ResolveField(
2278 0 ctx,
2279 0 ec.OperationContext,
2280 0 field,
2281 0 func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
2282 0 return ec.fieldContext_User_canonicalName(ctx, field)
2283 0 },
2284 0 func(ctx context.Context) (any, error) {
2285 0 return obj.CanonicalName, nil
2286 0 },
2287 nil,
2288 0 func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler {
2289 0 return ec.marshalNString2string(ctx, selections, v)
2290 0 },
2291 true,
2292 true,
2293 )
2294 }
2295 0 func (ec *executionContext) fieldContext_User_canonicalName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
2296 0 return graphql.NewScalarFieldContext("User", field, false, false, errors.New("field of type String does not have child fields"))
2297 0 }
2298
2299 0 func (ec *executionContext) ___Directive_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) {
2300 0 return graphql.ResolveField(
2301 0 ctx,
2302 0 ec.OperationContext,
2303 0 field,
2304 0 func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
2305 0 return ec.fieldContext___Directive_name(ctx, field)
2306 0 },
2307 0 func(ctx context.Context) (any, error) {
2308 0 return obj.Name, nil
2309 0 },
2310 nil,
2311 0 func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler {
2312 0 return ec.marshalNString2string(ctx, selections, v)
2313 0 },
2314 true,
2315 true,
2316 )
2317 }
2318 0 func (ec *executionContext) fieldContext___Directive_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
2319 0 return graphql.NewScalarFieldContext("__Directive", field, false, false, errors.New("field of type String does not have child fields"))
2320 0 }
2321
2322 0 func (ec *executionContext) ___Directive_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) {
2323 0 return graphql.ResolveField(
2324 0 ctx,
2325 0 ec.OperationContext,
2326 0 field,
2327 0 func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
2328 0 return ec.fieldContext___Directive_description(ctx, field)
2329 0 },
2330 0 func(ctx context.Context) (any, error) {
2331 0 return obj.Description(), nil
2332 0 },
2333 nil,
2334 0 func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler {
2335 0 return ec.marshalOString2ᚖstring(ctx, selections, v)
2336 0 },
2337 true,
2338 false,
2339 )
2340 }
2341 0 func (ec *executionContext) fieldContext___Directive_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
2342 0 return graphql.NewScalarFieldContext("__Directive", field, true, false, errors.New("field of type String does not have child fields"))
2343 0 }
2344
2345 0 func (ec *executionContext) ___Directive_isRepeatable(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) {
2346 0 return graphql.ResolveField(
2347 0 ctx,
2348 0 ec.OperationContext,
2349 0 field,
2350 0 func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
2351 0 return ec.fieldContext___Directive_isRepeatable(ctx, field)
2352 0 },
2353 0 func(ctx context.Context) (any, error) {
2354 0 return obj.IsRepeatable, nil
2355 0 },
2356 nil,
2357 0 func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler {
2358 0 return ec.marshalNBoolean2bool(ctx, selections, v)
2359 0 },
2360 true,
2361 true,
2362 )
2363 }
2364 0 func (ec *executionContext) fieldContext___Directive_isRepeatable(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
2365 0 return graphql.NewScalarFieldContext("__Directive", field, false, false, errors.New("field of type Boolean does not have child fields"))
2366 0 }
2367
2368 0 func (ec *executionContext) ___Directive_locations(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) {
2369 0 return graphql.ResolveField(
2370 0 ctx,
2371 0 ec.OperationContext,
2372 0 field,
2373 0 func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
2374 0 return ec.fieldContext___Directive_locations(ctx, field)
2375 0 },
2376 0 func(ctx context.Context) (any, error) {
2377 0 return obj.Locations, nil
2378 0 },
2379 nil,
2380 0 func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler {
2381 0 return ec.marshalN__DirectiveLocation2ᚕstringᚄ(ctx, selections, v)
2382 0 },
2383 true,
2384 true,
2385 )
2386 }
2387 0 func (ec *executionContext) fieldContext___Directive_locations(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
2388 0 return graphql.NewScalarFieldContext("__Directive", field, false, false, errors.New("field of type __DirectiveLocation does not have child fields"))
2389 0 }
2390
2391 0 func (ec *executionContext) ___Directive_args(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) {
2392 0 return graphql.ResolveField(
2393 0 ctx,
2394 0 ec.OperationContext,
2395 0 field,
2396 0 func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
2397 0 return ec.fieldContext___Directive_args(ctx, field)
2398 0 },
2399 0 func(ctx context.Context) (any, error) {
2400 0 return obj.Args, nil
2401 0 },
2402 nil,
2403 0 func(ctx context.Context, selections ast.SelectionSet, v []introspection.InputValue) graphql.Marshaler {
2404 0 return ec.marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx, selections, v)
2405 0 },
2406 true,
2407 true,
2408 )
2409 }
2410 0 func (ec *executionContext) fieldContext___Directive_args(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
2411 0 fc = &graphql.FieldContext{
2412 0 Object: "__Directive",
2413 0 Field: field,
2414 0 IsMethod: false,
2415 0 IsResolver: false,
2416 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
2417 0 return ec.childFields___InputValue(ctx, field)
2418 0 },
2419 }
2420 0 defer func() {
2421 0 if r := recover(); r != nil {
2422 0 err = ec.Recover(ctx, r)
2423 0 ec.Error(ctx, err)
2424 0 }
2425 }()
2426 0 ctx = graphql.WithFieldContext(ctx, fc)
2427 0 if fc.Args, err = ec.field___Directive_args_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
2428 0 ec.Error(ctx, err)
2429 0 return fc, err
2430 0 }
2431 0 return fc, nil
2432 }
2433
2434 0 func (ec *executionContext) ___EnumValue_name(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) {
2435 0 return graphql.ResolveField(
2436 0 ctx,
2437 0 ec.OperationContext,
2438 0 field,
2439 0 func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
2440 0 return ec.fieldContext___EnumValue_name(ctx, field)
2441 0 },
2442 0 func(ctx context.Context) (any, error) {
2443 0 return obj.Name, nil
2444 0 },
2445 nil,
2446 0 func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler {
2447 0 return ec.marshalNString2string(ctx, selections, v)
2448 0 },
2449 true,
2450 true,
2451 )
2452 }
2453 0 func (ec *executionContext) fieldContext___EnumValue_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
2454 0 return graphql.NewScalarFieldContext("__EnumValue", field, false, false, errors.New("field of type String does not have child fields"))
2455 0 }
2456
2457 0 func (ec *executionContext) ___EnumValue_description(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) {
2458 0 return graphql.ResolveField(
2459 0 ctx,
2460 0 ec.OperationContext,
2461 0 field,
2462 0 func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
2463 0 return ec.fieldContext___EnumValue_description(ctx, field)
2464 0 },
2465 0 func(ctx context.Context) (any, error) {
2466 0 return obj.Description(), nil
2467 0 },
2468 nil,
2469 0 func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler {
2470 0 return ec.marshalOString2ᚖstring(ctx, selections, v)
2471 0 },
2472 true,
2473 false,
2474 )
2475 }
2476 0 func (ec *executionContext) fieldContext___EnumValue_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
2477 0 return graphql.NewScalarFieldContext("__EnumValue", field, true, false, errors.New("field of type String does not have child fields"))
2478 0 }
2479
2480 0 func (ec *executionContext) ___EnumValue_isDeprecated(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) {
2481 0 return graphql.ResolveField(
2482 0 ctx,
2483 0 ec.OperationContext,
2484 0 field,
2485 0 func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
2486 0 return ec.fieldContext___EnumValue_isDeprecated(ctx, field)
2487 0 },
2488 0 func(ctx context.Context) (any, error) {
2489 0 return obj.IsDeprecated(), nil
2490 0 },
2491 nil,
2492 0 func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler {
2493 0 return ec.marshalNBoolean2bool(ctx, selections, v)
2494 0 },
2495 true,
2496 true,
2497 )
2498 }
2499 0 func (ec *executionContext) fieldContext___EnumValue_isDeprecated(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
2500 0 return graphql.NewScalarFieldContext("__EnumValue", field, true, false, errors.New("field of type Boolean does not have child fields"))
2501 0 }
2502
2503 0 func (ec *executionContext) ___EnumValue_deprecationReason(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) {
2504 0 return graphql.ResolveField(
2505 0 ctx,
2506 0 ec.OperationContext,
2507 0 field,
2508 0 func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
2509 0 return ec.fieldContext___EnumValue_deprecationReason(ctx, field)
2510 0 },
2511 0 func(ctx context.Context) (any, error) {
2512 0 return obj.DeprecationReason(), nil
2513 0 },
2514 nil,
2515 0 func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler {
2516 0 return ec.marshalOString2ᚖstring(ctx, selections, v)
2517 0 },
2518 true,
2519 false,
2520 )
2521 }
2522 0 func (ec *executionContext) fieldContext___EnumValue_deprecationReason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
2523 0 return graphql.NewScalarFieldContext("__EnumValue", field, true, false, errors.New("field of type String does not have child fields"))
2524 0 }
2525
2526 0 func (ec *executionContext) ___Field_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) {
2527 0 return graphql.ResolveField(
2528 0 ctx,
2529 0 ec.OperationContext,
2530 0 field,
2531 0 func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
2532 0 return ec.fieldContext___Field_name(ctx, field)
2533 0 },
2534 0 func(ctx context.Context) (any, error) {
2535 0 return obj.Name, nil
2536 0 },
2537 nil,
2538 0 func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler {
2539 0 return ec.marshalNString2string(ctx, selections, v)
2540 0 },
2541 true,
2542 true,
2543 )
2544 }
2545 0 func (ec *executionContext) fieldContext___Field_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
2546 0 return graphql.NewScalarFieldContext("__Field", field, false, false, errors.New("field of type String does not have child fields"))
2547 0 }
2548
2549 0 func (ec *executionContext) ___Field_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) {
2550 0 return graphql.ResolveField(
2551 0 ctx,
2552 0 ec.OperationContext,
2553 0 field,
2554 0 func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
2555 0 return ec.fieldContext___Field_description(ctx, field)
2556 0 },
2557 0 func(ctx context.Context) (any, error) {
2558 0 return obj.Description(), nil
2559 0 },
2560 nil,
2561 0 func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler {
2562 0 return ec.marshalOString2ᚖstring(ctx, selections, v)
2563 0 },
2564 true,
2565 false,
2566 )
2567 }
2568 0 func (ec *executionContext) fieldContext___Field_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
2569 0 return graphql.NewScalarFieldContext("__Field", field, true, false, errors.New("field of type String does not have child fields"))
2570 0 }
2571
2572 0 func (ec *executionContext) ___Field_args(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) {
2573 0 return graphql.ResolveField(
2574 0 ctx,
2575 0 ec.OperationContext,
2576 0 field,
2577 0 func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
2578 0 return ec.fieldContext___Field_args(ctx, field)
2579 0 },
2580 0 func(ctx context.Context) (any, error) {
2581 0 return obj.Args, nil
2582 0 },
2583 nil,
2584 0 func(ctx context.Context, selections ast.SelectionSet, v []introspection.InputValue) graphql.Marshaler {
2585 0 return ec.marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx, selections, v)
2586 0 },
2587 true,
2588 true,
2589 )
2590 }
2591 0 func (ec *executionContext) fieldContext___Field_args(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
2592 0 fc = &graphql.FieldContext{
2593 0 Object: "__Field",
2594 0 Field: field,
2595 0 IsMethod: false,
2596 0 IsResolver: false,
2597 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
2598 0 return ec.childFields___InputValue(ctx, field)
2599 0 },
2600 }
2601 0 defer func() {
2602 0 if r := recover(); r != nil {
2603 0 err = ec.Recover(ctx, r)
2604 0 ec.Error(ctx, err)
2605 0 }
2606 }()
2607 0 ctx = graphql.WithFieldContext(ctx, fc)
2608 0 if fc.Args, err = ec.field___Field_args_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
2609 0 ec.Error(ctx, err)
2610 0 return fc, err
2611 0 }
2612 0 return fc, nil
2613 }
2614
2615 0 func (ec *executionContext) ___Field_type(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) {
2616 0 return graphql.ResolveField(
2617 0 ctx,
2618 0 ec.OperationContext,
2619 0 field,
2620 0 func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
2621 0 return ec.fieldContext___Field_type(ctx, field)
2622 0 },
2623 0 func(ctx context.Context) (any, error) {
2624 0 return obj.Type, nil
2625 0 },
2626 nil,
2627 0 func(ctx context.Context, selections ast.SelectionSet, v *introspection.Type) graphql.Marshaler {
2628 0 return ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, selections, v)
2629 0 },
2630 true,
2631 true,
2632 )
2633 }
2634 0 func (ec *executionContext) fieldContext___Field_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
2635 0 fc = &graphql.FieldContext{
2636 0 Object: "__Field",
2637 0 Field: field,
2638 0 IsMethod: false,
2639 0 IsResolver: false,
2640 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
2641 0 return ec.childFields___Type(ctx, field)
2642 0 },
2643 }
2644 0 return fc, nil
2645 }
2646
2647 0 func (ec *executionContext) ___Field_isDeprecated(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) {
2648 0 return graphql.ResolveField(
2649 0 ctx,
2650 0 ec.OperationContext,
2651 0 field,
2652 0 func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
2653 0 return ec.fieldContext___Field_isDeprecated(ctx, field)
2654 0 },
2655 0 func(ctx context.Context) (any, error) {
2656 0 return obj.IsDeprecated(), nil
2657 0 },
2658 nil,
2659 0 func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler {
2660 0 return ec.marshalNBoolean2bool(ctx, selections, v)
2661 0 },
2662 true,
2663 true,
2664 )
2665 }
2666 0 func (ec *executionContext) fieldContext___Field_isDeprecated(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
2667 0 return graphql.NewScalarFieldContext("__Field", field, true, false, errors.New("field of type Boolean does not have child fields"))
2668 0 }
2669
2670 0 func (ec *executionContext) ___Field_deprecationReason(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) {
2671 0 return graphql.ResolveField(
2672 0 ctx,
2673 0 ec.OperationContext,
2674 0 field,
2675 0 func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
2676 0 return ec.fieldContext___Field_deprecationReason(ctx, field)
2677 0 },
2678 0 func(ctx context.Context) (any, error) {
2679 0 return obj.DeprecationReason(), nil
2680 0 },
2681 nil,
2682 0 func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler {
2683 0 return ec.marshalOString2ᚖstring(ctx, selections, v)
2684 0 },
2685 true,
2686 false,
2687 )
2688 }
2689 0 func (ec *executionContext) fieldContext___Field_deprecationReason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
2690 0 return graphql.NewScalarFieldContext("__Field", field, true, false, errors.New("field of type String does not have child fields"))
2691 0 }
2692
2693 0 func (ec *executionContext) ___InputValue_name(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) {
2694 0 return graphql.ResolveField(
2695 0 ctx,
2696 0 ec.OperationContext,
2697 0 field,
2698 0 func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
2699 0 return ec.fieldContext___InputValue_name(ctx, field)
2700 0 },
2701 0 func(ctx context.Context) (any, error) {
2702 0 return obj.Name, nil
2703 0 },
2704 nil,
2705 0 func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler {
2706 0 return ec.marshalNString2string(ctx, selections, v)
2707 0 },
2708 true,
2709 true,
2710 )
2711 }
2712 0 func (ec *executionContext) fieldContext___InputValue_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
2713 0 return graphql.NewScalarFieldContext("__InputValue", field, false, false, errors.New("field of type String does not have child fields"))
2714 0 }
2715
2716 0 func (ec *executionContext) ___InputValue_description(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) {
2717 0 return graphql.ResolveField(
2718 0 ctx,
2719 0 ec.OperationContext,
2720 0 field,
2721 0 func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
2722 0 return ec.fieldContext___InputValue_description(ctx, field)
2723 0 },
2724 0 func(ctx context.Context) (any, error) {
2725 0 return obj.Description(), nil
2726 0 },
2727 nil,
2728 0 func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler {
2729 0 return ec.marshalOString2ᚖstring(ctx, selections, v)
2730 0 },
2731 true,
2732 false,
2733 )
2734 }
2735 0 func (ec *executionContext) fieldContext___InputValue_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
2736 0 return graphql.NewScalarFieldContext("__InputValue", field, true, false, errors.New("field of type String does not have child fields"))
2737 0 }
2738
2739 0 func (ec *executionContext) ___InputValue_type(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) {
2740 0 return graphql.ResolveField(
2741 0 ctx,
2742 0 ec.OperationContext,
2743 0 field,
2744 0 func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
2745 0 return ec.fieldContext___InputValue_type(ctx, field)
2746 0 },
2747 0 func(ctx context.Context) (any, error) {
2748 0 return obj.Type, nil
2749 0 },
2750 nil,
2751 0 func(ctx context.Context, selections ast.SelectionSet, v *introspection.Type) graphql.Marshaler {
2752 0 return ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, selections, v)
2753 0 },
2754 true,
2755 true,
2756 )
2757 }
2758 0 func (ec *executionContext) fieldContext___InputValue_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
2759 0 fc = &graphql.FieldContext{
2760 0 Object: "__InputValue",
2761 0 Field: field,
2762 0 IsMethod: false,
2763 0 IsResolver: false,
2764 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
2765 0 return ec.childFields___Type(ctx, field)
2766 0 },
2767 }
2768 0 return fc, nil
2769 }
2770
2771 0 func (ec *executionContext) ___InputValue_defaultValue(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) {
2772 0 return graphql.ResolveField(
2773 0 ctx,
2774 0 ec.OperationContext,
2775 0 field,
2776 0 func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
2777 0 return ec.fieldContext___InputValue_defaultValue(ctx, field)
2778 0 },
2779 0 func(ctx context.Context) (any, error) {
2780 0 return obj.DefaultValue, nil
2781 0 },
2782 nil,
2783 0 func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler {
2784 0 return ec.marshalOString2ᚖstring(ctx, selections, v)
2785 0 },
2786 true,
2787 false,
2788 )
2789 }
2790 0 func (ec *executionContext) fieldContext___InputValue_defaultValue(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
2791 0 return graphql.NewScalarFieldContext("__InputValue", field, false, false, errors.New("field of type String does not have child fields"))
2792 0 }
2793
2794 0 func (ec *executionContext) ___InputValue_isDeprecated(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) {
2795 0 return graphql.ResolveField(
2796 0 ctx,
2797 0 ec.OperationContext,
2798 0 field,
2799 0 func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
2800 0 return ec.fieldContext___InputValue_isDeprecated(ctx, field)
2801 0 },
2802 0 func(ctx context.Context) (any, error) {
2803 0 return obj.IsDeprecated(), nil
2804 0 },
2805 nil,
2806 0 func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler {
2807 0 return ec.marshalNBoolean2bool(ctx, selections, v)
2808 0 },
2809 true,
2810 true,
2811 )
2812 }
2813 0 func (ec *executionContext) fieldContext___InputValue_isDeprecated(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
2814 0 return graphql.NewScalarFieldContext("__InputValue", field, true, false, errors.New("field of type Boolean does not have child fields"))
2815 0 }
2816
2817 0 func (ec *executionContext) ___InputValue_deprecationReason(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) {
2818 0 return graphql.ResolveField(
2819 0 ctx,
2820 0 ec.OperationContext,
2821 0 field,
2822 0 func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
2823 0 return ec.fieldContext___InputValue_deprecationReason(ctx, field)
2824 0 },
2825 0 func(ctx context.Context) (any, error) {
2826 0 return obj.DeprecationReason(), nil
2827 0 },
2828 nil,
2829 0 func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler {
2830 0 return ec.marshalOString2ᚖstring(ctx, selections, v)
2831 0 },
2832 true,
2833 false,
2834 )
2835 }
2836 0 func (ec *executionContext) fieldContext___InputValue_deprecationReason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
2837 0 return graphql.NewScalarFieldContext("__InputValue", field, true, false, errors.New("field of type String does not have child fields"))
2838 0 }
2839
2840 0 func (ec *executionContext) ___Schema_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) {
2841 0 return graphql.ResolveField(
2842 0 ctx,
2843 0 ec.OperationContext,
2844 0 field,
2845 0 func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
2846 0 return ec.fieldContext___Schema_description(ctx, field)
2847 0 },
2848 0 func(ctx context.Context) (any, error) {
2849 0 return obj.Description(), nil
2850 0 },
2851 nil,
2852 0 func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler {
2853 0 return ec.marshalOString2ᚖstring(ctx, selections, v)
2854 0 },
2855 true,
2856 false,
2857 )
2858 }
2859 0 func (ec *executionContext) fieldContext___Schema_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
2860 0 return graphql.NewScalarFieldContext("__Schema", field, true, false, errors.New("field of type String does not have child fields"))
2861 0 }
2862
2863 0 func (ec *executionContext) ___Schema_types(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) {
2864 0 return graphql.ResolveField(
2865 0 ctx,
2866 0 ec.OperationContext,
2867 0 field,
2868 0 func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
2869 0 return ec.fieldContext___Schema_types(ctx, field)
2870 0 },
2871 0 func(ctx context.Context) (any, error) {
2872 0 return obj.Types(), nil
2873 0 },
2874 nil,
2875 0 func(ctx context.Context, selections ast.SelectionSet, v []introspection.Type) graphql.Marshaler {
2876 0 return ec.marshalN__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx, selections, v)
2877 0 },
2878 true,
2879 true,
2880 )
2881 }
2882 0 func (ec *executionContext) fieldContext___Schema_types(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
2883 0 fc = &graphql.FieldContext{
2884 0 Object: "__Schema",
2885 0 Field: field,
2886 0 IsMethod: true,
2887 0 IsResolver: false,
2888 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
2889 0 return ec.childFields___Type(ctx, field)
2890 0 },
2891 }
2892 0 return fc, nil
2893 }
2894
2895 0 func (ec *executionContext) ___Schema_queryType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) {
2896 0 return graphql.ResolveField(
2897 0 ctx,
2898 0 ec.OperationContext,
2899 0 field,
2900 0 func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
2901 0 return ec.fieldContext___Schema_queryType(ctx, field)
2902 0 },
2903 0 func(ctx context.Context) (any, error) {
2904 0 return obj.QueryType(), nil
2905 0 },
2906 nil,
2907 0 func(ctx context.Context, selections ast.SelectionSet, v *introspection.Type) graphql.Marshaler {
2908 0 return ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, selections, v)
2909 0 },
2910 true,
2911 true,
2912 )
2913 }
2914 0 func (ec *executionContext) fieldContext___Schema_queryType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
2915 0 fc = &graphql.FieldContext{
2916 0 Object: "__Schema",
2917 0 Field: field,
2918 0 IsMethod: true,
2919 0 IsResolver: false,
2920 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
2921 0 return ec.childFields___Type(ctx, field)
2922 0 },
2923 }
2924 0 return fc, nil
2925 }
2926
2927 0 func (ec *executionContext) ___Schema_mutationType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) {
2928 0 return graphql.ResolveField(
2929 0 ctx,
2930 0 ec.OperationContext,
2931 0 field,
2932 0 func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
2933 0 return ec.fieldContext___Schema_mutationType(ctx, field)
2934 0 },
2935 0 func(ctx context.Context) (any, error) {
2936 0 return obj.MutationType(), nil
2937 0 },
2938 nil,
2939 0 func(ctx context.Context, selections ast.SelectionSet, v *introspection.Type) graphql.Marshaler {
2940 0 return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, selections, v)
2941 0 },
2942 true,
2943 false,
2944 )
2945 }
2946 0 func (ec *executionContext) fieldContext___Schema_mutationType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
2947 0 fc = &graphql.FieldContext{
2948 0 Object: "__Schema",
2949 0 Field: field,
2950 0 IsMethod: true,
2951 0 IsResolver: false,
2952 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
2953 0 return ec.childFields___Type(ctx, field)
2954 0 },
2955 }
2956 0 return fc, nil
2957 }
2958
2959 0 func (ec *executionContext) ___Schema_subscriptionType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) {
2960 0 return graphql.ResolveField(
2961 0 ctx,
2962 0 ec.OperationContext,
2963 0 field,
2964 0 func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
2965 0 return ec.fieldContext___Schema_subscriptionType(ctx, field)
2966 0 },
2967 0 func(ctx context.Context) (any, error) {
2968 0 return obj.SubscriptionType(), nil
2969 0 },
2970 nil,
2971 0 func(ctx context.Context, selections ast.SelectionSet, v *introspection.Type) graphql.Marshaler {
2972 0 return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, selections, v)
2973 0 },
2974 true,
2975 false,
2976 )
2977 }
2978 0 func (ec *executionContext) fieldContext___Schema_subscriptionType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
2979 0 fc = &graphql.FieldContext{
2980 0 Object: "__Schema",
2981 0 Field: field,
2982 0 IsMethod: true,
2983 0 IsResolver: false,
2984 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
2985 0 return ec.childFields___Type(ctx, field)
2986 0 },
2987 }
2988 0 return fc, nil
2989 }
2990
2991 0 func (ec *executionContext) ___Schema_directives(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) {
2992 0 return graphql.ResolveField(
2993 0 ctx,
2994 0 ec.OperationContext,
2995 0 field,
2996 0 func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
2997 0 return ec.fieldContext___Schema_directives(ctx, field)
2998 0 },
2999 0 func(ctx context.Context) (any, error) {
3000 0 return obj.Directives(), nil
3001 0 },
3002 nil,
3003 0 func(ctx context.Context, selections ast.SelectionSet, v []introspection.Directive) graphql.Marshaler {
3004 0 return ec.marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirectiveᚄ(ctx, selections, v)
3005 0 },
3006 true,
3007 true,
3008 )
3009 }
3010 0 func (ec *executionContext) fieldContext___Schema_directives(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
3011 0 fc = &graphql.FieldContext{
3012 0 Object: "__Schema",
3013 0 Field: field,
3014 0 IsMethod: true,
3015 0 IsResolver: false,
3016 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
3017 0 return ec.childFields___Directive(ctx, field)
3018 0 },
3019 }
3020 0 return fc, nil
3021 }
3022
3023 0 func (ec *executionContext) ___Type_kind(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
3024 0 return graphql.ResolveField(
3025 0 ctx,
3026 0 ec.OperationContext,
3027 0 field,
3028 0 func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
3029 0 return ec.fieldContext___Type_kind(ctx, field)
3030 0 },
3031 0 func(ctx context.Context) (any, error) {
3032 0 return obj.Kind(), nil
3033 0 },
3034 nil,
3035 0 func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler {
3036 0 return ec.marshalN__TypeKind2string(ctx, selections, v)
3037 0 },
3038 true,
3039 true,
3040 )
3041 }
3042 0 func (ec *executionContext) fieldContext___Type_kind(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
3043 0 return graphql.NewScalarFieldContext("__Type", field, true, false, errors.New("field of type __TypeKind does not have child fields"))
3044 0 }
3045
3046 0 func (ec *executionContext) ___Type_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
3047 0 return graphql.ResolveField(
3048 0 ctx,
3049 0 ec.OperationContext,
3050 0 field,
3051 0 func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
3052 0 return ec.fieldContext___Type_name(ctx, field)
3053 0 },
3054 0 func(ctx context.Context) (any, error) {
3055 0 return obj.Name(), nil
3056 0 },
3057 nil,
3058 0 func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler {
3059 0 return ec.marshalOString2ᚖstring(ctx, selections, v)
3060 0 },
3061 true,
3062 false,
3063 )
3064 }
3065 0 func (ec *executionContext) fieldContext___Type_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
3066 0 return graphql.NewScalarFieldContext("__Type", field, true, false, errors.New("field of type String does not have child fields"))
3067 0 }
3068
3069 0 func (ec *executionContext) ___Type_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
3070 0 return graphql.ResolveField(
3071 0 ctx,
3072 0 ec.OperationContext,
3073 0 field,
3074 0 func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
3075 0 return ec.fieldContext___Type_description(ctx, field)
3076 0 },
3077 0 func(ctx context.Context) (any, error) {
3078 0 return obj.Description(), nil
3079 0 },
3080 nil,
3081 0 func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler {
3082 0 return ec.marshalOString2ᚖstring(ctx, selections, v)
3083 0 },
3084 true,
3085 false,
3086 )
3087 }
3088 0 func (ec *executionContext) fieldContext___Type_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
3089 0 return graphql.NewScalarFieldContext("__Type", field, true, false, errors.New("field of type String does not have child fields"))
3090 0 }
3091
3092 0 func (ec *executionContext) ___Type_specifiedByURL(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
3093 0 return graphql.ResolveField(
3094 0 ctx,
3095 0 ec.OperationContext,
3096 0 field,
3097 0 func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
3098 0 return ec.fieldContext___Type_specifiedByURL(ctx, field)
3099 0 },
3100 0 func(ctx context.Context) (any, error) {
3101 0 return obj.SpecifiedByURL(), nil
3102 0 },
3103 nil,
3104 0 func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler {
3105 0 return ec.marshalOString2ᚖstring(ctx, selections, v)
3106 0 },
3107 true,
3108 false,
3109 )
3110 }
3111 0 func (ec *executionContext) fieldContext___Type_specifiedByURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
3112 0 return graphql.NewScalarFieldContext("__Type", field, true, false, errors.New("field of type String does not have child fields"))
3113 0 }
3114
3115 0 func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
3116 0 return graphql.ResolveField(
3117 0 ctx,
3118 0 ec.OperationContext,
3119 0 field,
3120 0 func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
3121 0 return ec.fieldContext___Type_fields(ctx, field)
3122 0 },
3123 0 func(ctx context.Context) (any, error) {
3124 0 fc := graphql.GetFieldContext(ctx)
3125 0 return obj.Fields(fc.Args["includeDeprecated"].(bool)), nil
3126 0 },
3127 nil,
3128 0 func(ctx context.Context, selections ast.SelectionSet, v []introspection.Field) graphql.Marshaler {
3129 0 return ec.marshalO__Field2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐFieldᚄ(ctx, selections, v)
3130 0 },
3131 true,
3132 false,
3133 )
3134 }
3135 0 func (ec *executionContext) fieldContext___Type_fields(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
3136 0 fc = &graphql.FieldContext{
3137 0 Object: "__Type",
3138 0 Field: field,
3139 0 IsMethod: true,
3140 0 IsResolver: false,
3141 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
3142 0 return ec.childFields___Field(ctx, field)
3143 0 },
3144 }
3145 0 defer func() {
3146 0 if r := recover(); r != nil {
3147 0 err = ec.Recover(ctx, r)
3148 0 ec.Error(ctx, err)
3149 0 }
3150 }()
3151 0 ctx = graphql.WithFieldContext(ctx, fc)
3152 0 if fc.Args, err = ec.field___Type_fields_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
3153 0 ec.Error(ctx, err)
3154 0 return fc, err
3155 0 }
3156 0 return fc, nil
3157 }
3158
3159 0 func (ec *executionContext) ___Type_interfaces(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
3160 0 return graphql.ResolveField(
3161 0 ctx,
3162 0 ec.OperationContext,
3163 0 field,
3164 0 func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
3165 0 return ec.fieldContext___Type_interfaces(ctx, field)
3166 0 },
3167 0 func(ctx context.Context) (any, error) {
3168 0 return obj.Interfaces(), nil
3169 0 },
3170 nil,
3171 0 func(ctx context.Context, selections ast.SelectionSet, v []introspection.Type) graphql.Marshaler {
3172 0 return ec.marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx, selections, v)
3173 0 },
3174 true,
3175 false,
3176 )
3177 }
3178 0 func (ec *executionContext) fieldContext___Type_interfaces(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
3179 0 fc = &graphql.FieldContext{
3180 0 Object: "__Type",
3181 0 Field: field,
3182 0 IsMethod: true,
3183 0 IsResolver: false,
3184 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
3185 0 return ec.childFields___Type(ctx, field)
3186 0 },
3187 }
3188 0 return fc, nil
3189 }
3190
3191 0 func (ec *executionContext) ___Type_possibleTypes(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
3192 0 return graphql.ResolveField(
3193 0 ctx,
3194 0 ec.OperationContext,
3195 0 field,
3196 0 func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
3197 0 return ec.fieldContext___Type_possibleTypes(ctx, field)
3198 0 },
3199 0 func(ctx context.Context) (any, error) {
3200 0 return obj.PossibleTypes(), nil
3201 0 },
3202 nil,
3203 0 func(ctx context.Context, selections ast.SelectionSet, v []introspection.Type) graphql.Marshaler {
3204 0 return ec.marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx, selections, v)
3205 0 },
3206 true,
3207 false,
3208 )
3209 }
3210 0 func (ec *executionContext) fieldContext___Type_possibleTypes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
3211 0 fc = &graphql.FieldContext{
3212 0 Object: "__Type",
3213 0 Field: field,
3214 0 IsMethod: true,
3215 0 IsResolver: false,
3216 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
3217 0 return ec.childFields___Type(ctx, field)
3218 0 },
3219 }
3220 0 return fc, nil
3221 }
3222
3223 0 func (ec *executionContext) ___Type_enumValues(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
3224 0 return graphql.ResolveField(
3225 0 ctx,
3226 0 ec.OperationContext,
3227 0 field,
3228 0 func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
3229 0 return ec.fieldContext___Type_enumValues(ctx, field)
3230 0 },
3231 0 func(ctx context.Context) (any, error) {
3232 0 fc := graphql.GetFieldContext(ctx)
3233 0 return obj.EnumValues(fc.Args["includeDeprecated"].(bool)), nil
3234 0 },
3235 nil,
3236 0 func(ctx context.Context, selections ast.SelectionSet, v []introspection.EnumValue) graphql.Marshaler {
3237 0 return ec.marshalO__EnumValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValueᚄ(ctx, selections, v)
3238 0 },
3239 true,
3240 false,
3241 )
3242 }
3243 0 func (ec *executionContext) fieldContext___Type_enumValues(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
3244 0 fc = &graphql.FieldContext{
3245 0 Object: "__Type",
3246 0 Field: field,
3247 0 IsMethod: true,
3248 0 IsResolver: false,
3249 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
3250 0 return ec.childFields___EnumValue(ctx, field)
3251 0 },
3252 }
3253 0 defer func() {
3254 0 if r := recover(); r != nil {
3255 0 err = ec.Recover(ctx, r)
3256 0 ec.Error(ctx, err)
3257 0 }
3258 }()
3259 0 ctx = graphql.WithFieldContext(ctx, fc)
3260 0 if fc.Args, err = ec.field___Type_enumValues_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
3261 0 ec.Error(ctx, err)
3262 0 return fc, err
3263 0 }
3264 0 return fc, nil
3265 }
3266
3267 0 func (ec *executionContext) ___Type_inputFields(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
3268 0 return graphql.ResolveField(
3269 0 ctx,
3270 0 ec.OperationContext,
3271 0 field,
3272 0 func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
3273 0 return ec.fieldContext___Type_inputFields(ctx, field)
3274 0 },
3275 0 func(ctx context.Context) (any, error) {
3276 0 return obj.InputFields(), nil
3277 0 },
3278 nil,
3279 0 func(ctx context.Context, selections ast.SelectionSet, v []introspection.InputValue) graphql.Marshaler {
3280 0 return ec.marshalO__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx, selections, v)
3281 0 },
3282 true,
3283 false,
3284 )
3285 }
3286 0 func (ec *executionContext) fieldContext___Type_inputFields(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
3287 0 fc = &graphql.FieldContext{
3288 0 Object: "__Type",
3289 0 Field: field,
3290 0 IsMethod: true,
3291 0 IsResolver: false,
3292 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
3293 0 return ec.childFields___InputValue(ctx, field)
3294 0 },
3295 }
3296 0 return fc, nil
3297 }
3298
3299 0 func (ec *executionContext) ___Type_ofType(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
3300 0 return graphql.ResolveField(
3301 0 ctx,
3302 0 ec.OperationContext,
3303 0 field,
3304 0 func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
3305 0 return ec.fieldContext___Type_ofType(ctx, field)
3306 0 },
3307 0 func(ctx context.Context) (any, error) {
3308 0 return obj.OfType(), nil
3309 0 },
3310 nil,
3311 0 func(ctx context.Context, selections ast.SelectionSet, v *introspection.Type) graphql.Marshaler {
3312 0 return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, selections, v)
3313 0 },
3314 true,
3315 false,
3316 )
3317 }
3318 0 func (ec *executionContext) fieldContext___Type_ofType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
3319 0 fc = &graphql.FieldContext{
3320 0 Object: "__Type",
3321 0 Field: field,
3322 0 IsMethod: true,
3323 0 IsResolver: false,
3324 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
3325 0 return ec.childFields___Type(ctx, field)
3326 0 },
3327 }
3328 0 return fc, nil
3329 }
3330
3331 0 func (ec *executionContext) ___Type_isOneOf(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
3332 0 return graphql.ResolveField(
3333 0 ctx,
3334 0 ec.OperationContext,
3335 0 field,
3336 0 func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
3337 0 return ec.fieldContext___Type_isOneOf(ctx, field)
3338 0 },
3339 0 func(ctx context.Context) (any, error) {
3340 0 return obj.IsOneOf(), nil
3341 0 },
3342 nil,
3343 0 func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler {
3344 0 return ec.marshalOBoolean2bool(ctx, selections, v)
3345 0 },
3346 true,
3347 false,
3348 )
3349 }
3350 0 func (ec *executionContext) fieldContext___Type_isOneOf(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
3351 0 return graphql.NewScalarFieldContext("__Type", field, true, false, errors.New("field of type Boolean does not have child fields"))
3352 0 }
3353
3354 // endregion **************************** field.gotpl *****************************
3355
3356 // region **************************** input.gotpl *****************************
3357
3358 0 func (ec *executionContext) unmarshalInputFilter(ctx context.Context, obj any) (model.Filter, error) {
3359 0 var it model.Filter
3360 0 if obj == nil {
3361 0 return it, nil
3362 0 }
3363
3364 0 asMap := map[string]any{}
3365 0 for k, v := range obj.(map[string]any) {
3366 0 asMap[k] = v
3367 0 }
3368
3369 0 if _, present := asMap["count"]; !present {
3370 0 asMap["count"] = 25
3371 0 }
3372
3373 0 fieldsInOrder := [...]string{"count"}
3374 0 for _, k := range fieldsInOrder {
3375 0 v, ok := asMap[k]
3376 0 if !ok {
3377 0 continue
3378 }
3379 0 switch k {
3380 0 case "count":
3381 0 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("count"))
3382 0 data, err := ec.unmarshalOInt2ᚖint(ctx, v)
3383 0 if err != nil {
3384 0 return it, err
3385 0 }
3386 0 it.Count = data
3387 }
3388 }
3389 0 return it, nil
3390 }
3391
3392 // endregion **************************** input.gotpl *****************************
3393
3394 // region ************************** interface.gotpl ***************************
3395
3396 // endregion ************************** interface.gotpl ***************************
3397
3398 // region **************************** object.gotpl ****************************
3399
3400 var aCLEntryImplementors = []string{"ACLEntry"}
3401
3402 0 func (ec *executionContext) _ACLEntry(ctx context.Context, sel ast.SelectionSet, obj *model1.ACLEntry) graphql.Marshaler {
3403 0 fields := graphql.CollectFields(ec.OperationContext, sel, aCLEntryImplementors)
3404 0
3405 0 out := graphql.NewFieldSet(fields)
3406 0 deferredFieldSet := graphql.NewFieldSet(nil)
3407 0 deferLabelToView := make(map[string]*graphql.FieldSetView)
3408 0 for i, field := range fields {
3409 0 switch field.Name {
3410 0 case "__typename":
3411 0 out.Values[i] = graphql.MarshalString("ACLEntry")
3412 0 case "user":
3413 0 out.Values[i] = ec._ACLEntry_user(ctx, field, obj)
3414 0 if out.Values[i] == graphql.Null {
3415 0 out.Invalids++
3416 0 }
3417 0 case "mode":
3418 0 out.Values[i] = ec._ACLEntry_mode(ctx, field, obj)
3419 0 if out.Values[i] == graphql.Null {
3420 0 out.Invalids++
3421 0 }
3422 0 default:
3423 0 panic("unknown field " + strconv.Quote(field.Name))
3424 }
3425 }
3426 0 out.Dispatch(ctx)
3427 0 if out.Invalids > 0 {
3428 0 return graphql.Null
3429 0 }
3430
3431 0 atomic.AddInt32(&ec.Deferred, int32(min(len(deferLabelToView), math.MaxInt32)))
3432 0
3433 0 ec.ProcessDeferredGroup(graphql.DeferredGroup{
3434 0 Defers: deferLabelToView,
3435 0 Path: graphql.GetPath(ctx),
3436 0 FieldSet: deferredFieldSet,
3437 0 Context: ctx,
3438 0 })
3439 0
3440 0 return out
3441 }
3442
3443 var branchImplementors = []string{"Branch"}
3444
3445 0 func (ec *executionContext) _Branch(ctx context.Context, sel ast.SelectionSet, obj *model1.Branch) graphql.Marshaler {
3446 0 fields := graphql.CollectFields(ec.OperationContext, sel, branchImplementors)
3447 0
3448 0 out := graphql.NewFieldSet(fields)
3449 0 deferredFieldSet := graphql.NewFieldSet(nil)
3450 0 deferLabelToView := make(map[string]*graphql.FieldSetView)
3451 0 for i, field := range fields {
3452 0 switch field.Name {
3453 0 case "__typename":
3454 0 out.Values[i] = graphql.MarshalString("Branch")
3455 0 case "name":
3456 0 out.Values[i] = ec._Branch_name(ctx, field, obj)
3457 0 if out.Values[i] == graphql.Null {
3458 0 out.Invalids++
3459 0 }
3460 0 case "head":
3461 0 out.Values[i] = ec._Branch_head(ctx, field, obj)
3462 0 if out.Values[i] == graphql.Null {
3463 0 out.Invalids++
3464 0 }
3465 0 default:
3466 0 panic("unknown field " + strconv.Quote(field.Name))
3467 }
3468 }
3469 0 out.Dispatch(ctx)
3470 0 if out.Invalids > 0 {
3471 0 return graphql.Null
3472 0 }
3473
3474 0 atomic.AddInt32(&ec.Deferred, int32(min(len(deferLabelToView), math.MaxInt32)))
3475 0
3476 0 ec.ProcessDeferredGroup(graphql.DeferredGroup{
3477 0 Defers: deferLabelToView,
3478 0 Path: graphql.GetPath(ctx),
3479 0 FieldSet: deferredFieldSet,
3480 0 Context: ctx,
3481 0 })
3482 0
3483 0 return out
3484 }
3485
3486 var columnImplementors = []string{"Column"}
3487
3488 0 func (ec *executionContext) _Column(ctx context.Context, sel ast.SelectionSet, obj *model1.Column) graphql.Marshaler {
3489 0 fields := graphql.CollectFields(ec.OperationContext, sel, columnImplementors)
3490 0
3491 0 out := graphql.NewFieldSet(fields)
3492 0 deferredFieldSet := graphql.NewFieldSet(nil)
3493 0 deferLabelToView := make(map[string]*graphql.FieldSetView)
3494 0 for i, field := range fields {
3495 0 switch field.Name {
3496 0 case "__typename":
3497 0 out.Values[i] = graphql.MarshalString("Column")
3498 0 case "name":
3499 0 out.Values[i] = ec._Column_name(ctx, field, obj)
3500 0 if out.Values[i] == graphql.Null {
3501 0 out.Invalids++
3502 0 }
3503 0 case "type":
3504 0 out.Values[i] = ec._Column_type(ctx, field, obj)
3505 0 if out.Values[i] == graphql.Null {
3506 0 out.Invalids++
3507 0 }
3508 0 case "primaryKey":
3509 0 out.Values[i] = ec._Column_primaryKey(ctx, field, obj)
3510 0 if out.Values[i] == graphql.Null {
3511 0 out.Invalids++
3512 0 }
3513 0 case "nullable":
3514 0 out.Values[i] = ec._Column_nullable(ctx, field, obj)
3515 0 if out.Values[i] == graphql.Null {
3516 0 out.Invalids++
3517 0 }
3518 0 default:
3519 0 panic("unknown field " + strconv.Quote(field.Name))
3520 }
3521 }
3522 0 out.Dispatch(ctx)
3523 0 if out.Invalids > 0 {
3524 0 return graphql.Null
3525 0 }
3526
3527 0 atomic.AddInt32(&ec.Deferred, int32(min(len(deferLabelToView), math.MaxInt32)))
3528 0
3529 0 ec.ProcessDeferredGroup(graphql.DeferredGroup{
3530 0 Defers: deferLabelToView,
3531 0 Path: graphql.GetPath(ctx),
3532 0 FieldSet: deferredFieldSet,
3533 0 Context: ctx,
3534 0 })
3535 0
3536 0 return out
3537 }
3538
3539 var commitImplementors = []string{"Commit"}
3540
3541 0 func (ec *executionContext) _Commit(ctx context.Context, sel ast.SelectionSet, obj *model1.Commit) graphql.Marshaler {
3542 0 fields := graphql.CollectFields(ec.OperationContext, sel, commitImplementors)
3543 0
3544 0 out := graphql.NewFieldSet(fields)
3545 0 deferredFieldSet := graphql.NewFieldSet(nil)
3546 0 deferLabelToView := make(map[string]*graphql.FieldSetView)
3547 0 for i, field := range fields {
3548 0 switch field.Name {
3549 0 case "__typename":
3550 0 out.Values[i] = graphql.MarshalString("Commit")
3551 0 case "hash":
3552 0 out.Values[i] = ec._Commit_hash(ctx, field, obj)
3553 0 if out.Values[i] == graphql.Null {
3554 0 out.Invalids++
3555 0 }
3556 0 case "author":
3557 0 out.Values[i] = ec._Commit_author(ctx, field, obj)
3558 0 if out.Values[i] == graphql.Null {
3559 0 out.Invalids++
3560 0 }
3561 0 case "email":
3562 0 out.Values[i] = ec._Commit_email(ctx, field, obj)
3563 0 if out.Values[i] == graphql.Null {
3564 0 out.Invalids++
3565 0 }
3566 0 case "date":
3567 0 out.Values[i] = ec._Commit_date(ctx, field, obj)
3568 0 if out.Values[i] == graphql.Null {
3569 0 out.Invalids++
3570 0 }
3571 0 case "message":
3572 0 out.Values[i] = ec._Commit_message(ctx, field, obj)
3573 0 if out.Values[i] == graphql.Null {
3574 0 out.Invalids++
3575 0 }
3576 0 case "parents":
3577 0 out.Values[i] = ec._Commit_parents(ctx, field, obj)
3578 0 if out.Values[i] == graphql.Null {
3579 0 out.Invalids++
3580 0 }
3581 0 default:
3582 0 panic("unknown field " + strconv.Quote(field.Name))
3583 }
3584 }
3585 0 out.Dispatch(ctx)
3586 0 if out.Invalids > 0 {
3587 0 return graphql.Null
3588 0 }
3589
3590 0 atomic.AddInt32(&ec.Deferred, int32(min(len(deferLabelToView), math.MaxInt32)))
3591 0
3592 0 ec.ProcessDeferredGroup(graphql.DeferredGroup{
3593 0 Defers: deferLabelToView,
3594 0 Path: graphql.GetPath(ctx),
3595 0 FieldSet: deferredFieldSet,
3596 0 Context: ctx,
3597 0 })
3598 0
3599 0 return out
3600 }
3601
3602 var commitCursorImplementors = []string{"CommitCursor"}
3603
3604 0 func (ec *executionContext) _CommitCursor(ctx context.Context, sel ast.SelectionSet, obj *model1.CommitCursor) graphql.Marshaler {
3605 0 fields := graphql.CollectFields(ec.OperationContext, sel, commitCursorImplementors)
3606 0
3607 0 out := graphql.NewFieldSet(fields)
3608 0 deferredFieldSet := graphql.NewFieldSet(nil)
3609 0 deferLabelToView := make(map[string]*graphql.FieldSetView)
3610 0 for i, field := range fields {
3611 0 switch field.Name {
3612 0 case "__typename":
3613 0 out.Values[i] = graphql.MarshalString("CommitCursor")
3614 0 case "results":
3615 0 out.Values[i] = ec._CommitCursor_results(ctx, field, obj)
3616 0 if out.Values[i] == graphql.Null {
3617 0 out.Invalids++
3618 0 }
3619 0 case "cursor":
3620 0 out.Values[i] = ec._CommitCursor_cursor(ctx, field, obj)
3621 0 if out.Values[i] == graphql.RequiredNull {
3622 0 out.Invalids++
3623 0 }
3624 0 default:
3625 0 panic("unknown field " + strconv.Quote(field.Name))
3626 }
3627 }
3628 0 out.Dispatch(ctx)
3629 0 if out.Invalids > 0 {
3630 0 return graphql.Null
3631 0 }
3632
3633 0 atomic.AddInt32(&ec.Deferred, int32(min(len(deferLabelToView), math.MaxInt32)))
3634 0
3635 0 ec.ProcessDeferredGroup(graphql.DeferredGroup{
3636 0 Defers: deferLabelToView,
3637 0 Path: graphql.GetPath(ctx),
3638 0 FieldSet: deferredFieldSet,
3639 0 Context: ctx,
3640 0 })
3641 0
3642 0 return out
3643 }
3644
3645 var databaseImplementors = []string{"Database"}
3646
3647 0 func (ec *executionContext) _Database(ctx context.Context, sel ast.SelectionSet, obj *model1.Database) graphql.Marshaler {
3648 0 fields := graphql.CollectFields(ec.OperationContext, sel, databaseImplementors)
3649 0
3650 0 out := graphql.NewFieldSet(fields)
3651 0 deferredFieldSet := graphql.NewFieldSet(nil)
3652 0 deferLabelToView := make(map[string]*graphql.FieldSetView)
3653 0 for i, field := range fields {
3654 0 switch field.Name {
3655 0 case "__typename":
3656 0 out.Values[i] = graphql.MarshalString("Database")
3657 0 case "id":
3658 0 out.Values[i] = ec._Database_id(ctx, field, obj)
3659 0 if out.Values[i] == graphql.Null {
3660 0 atomic.AddUint32(&out.Invalids, 1)
3661 0 }
3662 0 case "name":
3663 0 out.Values[i] = ec._Database_name(ctx, field, obj)
3664 0 if out.Values[i] == graphql.Null {
3665 0 atomic.AddUint32(&out.Invalids, 1)
3666 0 }
3667 0 case "owner":
3668 0 out.Values[i] = ec._Database_owner(ctx, field, obj)
3669 0 if out.Values[i] == graphql.Null {
3670 0 atomic.AddUint32(&out.Invalids, 1)
3671 0 }
3672 0 case "description":
3673 0 out.Values[i] = ec._Database_description(ctx, field, obj)
3674 0 if out.Values[i] == graphql.Null {
3675 0 atomic.AddUint32(&out.Invalids, 1)
3676 0 }
3677 0 case "visibility":
3678 0 out.Values[i] = ec._Database_visibility(ctx, field, obj)
3679 0 if out.Values[i] == graphql.Null {
3680 0 atomic.AddUint32(&out.Invalids, 1)
3681 0 }
3682 0 case "created":
3683 0 out.Values[i] = ec._Database_created(ctx, field, obj)
3684 0 if out.Values[i] == graphql.Null {
3685 0 atomic.AddUint32(&out.Invalids, 1)
3686 0 }
3687 0 case "updated":
3688 0 out.Values[i] = ec._Database_updated(ctx, field, obj)
3689 0 if out.Values[i] == graphql.Null {
3690 0 atomic.AddUint32(&out.Invalids, 1)
3691 0 }
3692 0 case "defaultBranch":
3693 0 field := field
3694 0
3695 0 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
3696 0 defer func() {
3697 0 if r := recover(); r != nil {
3698 0 ec.Error(ctx, ec.Recover(ctx, r))
3699 0 }
3700 }()
3701 0 res = ec._Database_defaultBranch(ctx, field, obj)
3702 0 if res == graphql.RequiredNull {
3703 0 atomic.AddUint32(&fs.Invalids, 1)
3704 0 }
3705 0 return res
3706 }
3707
3708 0 if field.IsDeferred() {
3709 0 deferredFieldSet.AddField(field)
3710 0 fieldIndex := len(deferredFieldSet.Values) - 1
3711 0 deferredFieldSet.Concurrently(fieldIndex, func(ctx context.Context) graphql.Marshaler {
3712 0 return innerFunc(ctx, deferredFieldSet)
3713 0 })
3714
3715 0 for _, deferrable := range field.Deferrables {
3716 0 view, ok := deferLabelToView[deferrable.Label]
3717 0 if !ok {
3718 0 view = deferredFieldSet.NewView()
3719 0 deferLabelToView[deferrable.Label] = view
3720 0 }
3721 0 view.AddIndices(fieldIndex)
3722 }
3723
3724 // don't run the out.Concurrently() call below
3725 0 out.Values[i] = graphql.Null
3726 0 continue
3727 }
3728
3729 0 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
3730 0 case "branches":
3731 0 field := field
3732 0
3733 0 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
3734 0 defer func() {
3735 0 if r := recover(); r != nil {
3736 0 ec.Error(ctx, ec.Recover(ctx, r))
3737 0 }
3738 }()
3739 0 res = ec._Database_branches(ctx, field, obj)
3740 0 if res == graphql.Null {
3741 0 atomic.AddUint32(&fs.Invalids, 1)
3742 0 }
3743 0 return res
3744 }
3745
3746 0 if field.IsDeferred() {
3747 0 deferredFieldSet.AddField(field)
3748 0 fieldIndex := len(deferredFieldSet.Values) - 1
3749 0 deferredFieldSet.Concurrently(fieldIndex, func(ctx context.Context) graphql.Marshaler {
3750 0 return innerFunc(ctx, deferredFieldSet)
3751 0 })
3752
3753 0 for _, deferrable := range field.Deferrables {
3754 0 view, ok := deferLabelToView[deferrable.Label]
3755 0 if !ok {
3756 0 view = deferredFieldSet.NewView()
3757 0 deferLabelToView[deferrable.Label] = view
3758 0 }
3759 0 view.AddIndices(fieldIndex)
3760 }
3761
3762 // don't run the out.Concurrently() call below
3763 0 out.Values[i] = graphql.Null
3764 0 continue
3765 }
3766
3767 0 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
3768 0 case "log":
3769 0 field := field
3770 0
3771 0 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
3772 0 defer func() {
3773 0 if r := recover(); r != nil {
3774 0 ec.Error(ctx, ec.Recover(ctx, r))
3775 0 }
3776 }()
3777 0 res = ec._Database_log(ctx, field, obj)
3778 0 if res == graphql.Null {
3779 0 atomic.AddUint32(&fs.Invalids, 1)
3780 0 }
3781 0 return res
3782 }
3783
3784 0 if field.IsDeferred() {
3785 0 deferredFieldSet.AddField(field)
3786 0 fieldIndex := len(deferredFieldSet.Values) - 1
3787 0 deferredFieldSet.Concurrently(fieldIndex, func(ctx context.Context) graphql.Marshaler {
3788 0 return innerFunc(ctx, deferredFieldSet)
3789 0 })
3790
3791 0 for _, deferrable := range field.Deferrables {
3792 0 view, ok := deferLabelToView[deferrable.Label]
3793 0 if !ok {
3794 0 view = deferredFieldSet.NewView()
3795 0 deferLabelToView[deferrable.Label] = view
3796 0 }
3797 0 view.AddIndices(fieldIndex)
3798 }
3799
3800 // don't run the out.Concurrently() call below
3801 0 out.Values[i] = graphql.Null
3802 0 continue
3803 }
3804
3805 0 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
3806 0 case "tables":
3807 0 field := field
3808 0
3809 0 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
3810 0 defer func() {
3811 0 if r := recover(); r != nil {
3812 0 ec.Error(ctx, ec.Recover(ctx, r))
3813 0 }
3814 }()
3815 0 res = ec._Database_tables(ctx, field, obj)
3816 0 if res == graphql.Null {
3817 0 atomic.AddUint32(&fs.Invalids, 1)
3818 0 }
3819 0 return res
3820 }
3821
3822 0 if field.IsDeferred() {
3823 0 deferredFieldSet.AddField(field)
3824 0 fieldIndex := len(deferredFieldSet.Values) - 1
3825 0 deferredFieldSet.Concurrently(fieldIndex, func(ctx context.Context) graphql.Marshaler {
3826 0 return innerFunc(ctx, deferredFieldSet)
3827 0 })
3828
3829 0 for _, deferrable := range field.Deferrables {
3830 0 view, ok := deferLabelToView[deferrable.Label]
3831 0 if !ok {
3832 0 view = deferredFieldSet.NewView()
3833 0 deferLabelToView[deferrable.Label] = view
3834 0 }
3835 0 view.AddIndices(fieldIndex)
3836 }
3837
3838 // don't run the out.Concurrently() call below
3839 0 out.Values[i] = graphql.Null
3840 0 continue
3841 }
3842
3843 0 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
3844 0 case "acl":
3845 0 field := field
3846 0
3847 0 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
3848 0 defer func() {
3849 0 if r := recover(); r != nil {
3850 0 ec.Error(ctx, ec.Recover(ctx, r))
3851 0 }
3852 }()
3853 0 res = ec._Database_acl(ctx, field, obj)
3854 0 if res == graphql.Null {
3855 0 atomic.AddUint32(&fs.Invalids, 1)
3856 0 }
3857 0 return res
3858 }
3859
3860 0 if field.IsDeferred() {
3861 0 deferredFieldSet.AddField(field)
3862 0 fieldIndex := len(deferredFieldSet.Values) - 1
3863 0 deferredFieldSet.Concurrently(fieldIndex, func(ctx context.Context) graphql.Marshaler {
3864 0 return innerFunc(ctx, deferredFieldSet)
3865 0 })
3866
3867 0 for _, deferrable := range field.Deferrables {
3868 0 view, ok := deferLabelToView[deferrable.Label]
3869 0 if !ok {
3870 0 view = deferredFieldSet.NewView()
3871 0 deferLabelToView[deferrable.Label] = view
3872 0 }
3873 0 view.AddIndices(fieldIndex)
3874 }
3875
3876 // don't run the out.Concurrently() call below
3877 0 out.Values[i] = graphql.Null
3878 0 continue
3879 }
3880
3881 0 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
3882 0 default:
3883 0 panic("unknown field " + strconv.Quote(field.Name))
3884 }
3885 }
3886 0 out.Dispatch(ctx)
3887 0 if out.Invalids > 0 {
3888 0 return graphql.Null
3889 0 }
3890
3891 0 atomic.AddInt32(&ec.Deferred, int32(min(len(deferLabelToView), math.MaxInt32)))
3892 0
3893 0 ec.ProcessDeferredGroup(graphql.DeferredGroup{
3894 0 Defers: deferLabelToView,
3895 0 Path: graphql.GetPath(ctx),
3896 0 FieldSet: deferredFieldSet,
3897 0 Context: ctx,
3898 0 })
3899 0
3900 0 return out
3901 }
3902
3903 var databaseCursorImplementors = []string{"DatabaseCursor"}
3904
3905 0 func (ec *executionContext) _DatabaseCursor(ctx context.Context, sel ast.SelectionSet, obj *model1.DatabaseCursor) graphql.Marshaler {
3906 0 fields := graphql.CollectFields(ec.OperationContext, sel, databaseCursorImplementors)
3907 0
3908 0 out := graphql.NewFieldSet(fields)
3909 0 deferredFieldSet := graphql.NewFieldSet(nil)
3910 0 deferLabelToView := make(map[string]*graphql.FieldSetView)
3911 0 for i, field := range fields {
3912 0 switch field.Name {
3913 0 case "__typename":
3914 0 out.Values[i] = graphql.MarshalString("DatabaseCursor")
3915 0 case "results":
3916 0 out.Values[i] = ec._DatabaseCursor_results(ctx, field, obj)
3917 0 if out.Values[i] == graphql.Null {
3918 0 out.Invalids++
3919 0 }
3920 0 case "cursor":
3921 0 out.Values[i] = ec._DatabaseCursor_cursor(ctx, field, obj)
3922 0 if out.Values[i] == graphql.RequiredNull {
3923 0 out.Invalids++
3924 0 }
3925 0 default:
3926 0 panic("unknown field " + strconv.Quote(field.Name))
3927 }
3928 }
3929 0 out.Dispatch(ctx)
3930 0 if out.Invalids > 0 {
3931 0 return graphql.Null
3932 0 }
3933
3934 0 atomic.AddInt32(&ec.Deferred, int32(min(len(deferLabelToView), math.MaxInt32)))
3935 0
3936 0 ec.ProcessDeferredGroup(graphql.DeferredGroup{
3937 0 Defers: deferLabelToView,
3938 0 Path: graphql.GetPath(ctx),
3939 0 FieldSet: deferredFieldSet,
3940 0 Context: ctx,
3941 0 })
3942 0
3943 0 return out
3944 }
3945
3946 var queryImplementors = []string{"Query"}
3947
3948 0 func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) graphql.Marshaler {
3949 0 fields := graphql.CollectFields(ec.OperationContext, sel, queryImplementors)
3950 0 ctx = graphql.WithFieldContext(ctx, &graphql.FieldContext{
3951 0 Object: "Query",
3952 0 })
3953 0
3954 0 out := graphql.NewFieldSet(fields)
3955 0 deferredFieldSet := graphql.NewFieldSet(nil)
3956 0 deferLabelToView := make(map[string]*graphql.FieldSetView)
3957 0 for i, field := range fields {
3958 0 innerCtx := graphql.WithRootFieldContext(ctx, &graphql.RootFieldContext{
3959 0 Object: field.Name,
3960 0 Field: field,
3961 0 })
3962 0
3963 0 switch field.Name {
3964 0 case "__typename":
3965 0 out.Values[i] = graphql.MarshalString("Query")
3966 0 case "me":
3967 0 field := field
3968 0
3969 0 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
3970 0 defer func() {
3971 0 if r := recover(); r != nil {
3972 0 ec.Error(ctx, ec.Recover(ctx, r))
3973 0 }
3974 }()
3975 0 res = ec._Query_me(ctx, field)
3976 0 if res == graphql.RequiredNull {
3977 0 atomic.AddUint32(&fs.Invalids, 1)
3978 0 }
3979 0 return res
3980 }
3981
3982 0 rrm := func(ctx context.Context) graphql.Marshaler {
3983 0 return ec.OperationContext.RootResolverMiddleware(ctx,
3984 0 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
3985 }
3986
3987 0 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) })
3988 0 case "databases":
3989 0 field := field
3990 0
3991 0 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
3992 0 defer func() {
3993 0 if r := recover(); r != nil {
3994 0 ec.Error(ctx, ec.Recover(ctx, r))
3995 0 }
3996 }()
3997 0 res = ec._Query_databases(ctx, field)
3998 0 if res == graphql.Null {
3999 0 atomic.AddUint32(&fs.Invalids, 1)
4000 0 }
4001 0 return res
4002 }
4003
4004 0 rrm := func(ctx context.Context) graphql.Marshaler {
4005 0 return ec.OperationContext.RootResolverMiddleware(ctx,
4006 0 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
4007 }
4008
4009 0 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) })
4010 0 case "databasesByOwner":
4011 0 field := field
4012 0
4013 0 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
4014 0 defer func() {
4015 0 if r := recover(); r != nil {
4016 0 ec.Error(ctx, ec.Recover(ctx, r))
4017 0 }
4018 }()
4019 0 res = ec._Query_databasesByOwner(ctx, field)
4020 0 if res == graphql.Null {
4021 0 atomic.AddUint32(&fs.Invalids, 1)
4022 0 }
4023 0 return res
4024 }
4025
4026 0 rrm := func(ctx context.Context) graphql.Marshaler {
4027 0 return ec.OperationContext.RootResolverMiddleware(ctx,
4028 0 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
4029 }
4030
4031 0 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) })
4032 0 case "database":
4033 0 field := field
4034 0
4035 0 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
4036 0 defer func() {
4037 0 if r := recover(); r != nil {
4038 0 ec.Error(ctx, ec.Recover(ctx, r))
4039 0 }
4040 }()
4041 0 res = ec._Query_database(ctx, field)
4042 0 if res == graphql.RequiredNull {
4043 0 atomic.AddUint32(&fs.Invalids, 1)
4044 0 }
4045 0 return res
4046 }
4047
4048 0 rrm := func(ctx context.Context) graphql.Marshaler {
4049 0 return ec.OperationContext.RootResolverMiddleware(ctx,
4050 0 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
4051 }
4052
4053 0 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) })
4054 0 case "__type":
4055 0 out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
4056 0 return ec._Query___type(ctx, field)
4057 0 })
4058 0 if out.Values[i] == graphql.RequiredNull {
4059 0 atomic.AddUint32(&out.Invalids, 1)
4060 0 }
4061 0 case "__schema":
4062 0 out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
4063 0 return ec._Query___schema(ctx, field)
4064 0 })
4065 0 if out.Values[i] == graphql.RequiredNull {
4066 0 atomic.AddUint32(&out.Invalids, 1)
4067 0 }
4068 0 default:
4069 0 panic("unknown field " + strconv.Quote(field.Name))
4070 }
4071 }
4072 0 out.Dispatch(ctx)
4073 0 if out.Invalids > 0 {
4074 0 return graphql.Null
4075 0 }
4076
4077 0 atomic.AddInt32(&ec.Deferred, int32(min(len(deferLabelToView), math.MaxInt32)))
4078 0
4079 0 ec.ProcessDeferredGroup(graphql.DeferredGroup{
4080 0 Defers: deferLabelToView,
4081 0 Path: graphql.GetPath(ctx),
4082 0 FieldSet: deferredFieldSet,
4083 0 Context: ctx,
4084 0 })
4085 0
4086 0 return out
4087 }
4088
4089 var tableImplementors = []string{"Table"}
4090
4091 0 func (ec *executionContext) _Table(ctx context.Context, sel ast.SelectionSet, obj *model1.Table) graphql.Marshaler {
4092 0 fields := graphql.CollectFields(ec.OperationContext, sel, tableImplementors)
4093 0
4094 0 out := graphql.NewFieldSet(fields)
4095 0 deferredFieldSet := graphql.NewFieldSet(nil)
4096 0 deferLabelToView := make(map[string]*graphql.FieldSetView)
4097 0 for i, field := range fields {
4098 0 switch field.Name {
4099 0 case "__typename":
4100 0 out.Values[i] = graphql.MarshalString("Table")
4101 0 case "name":
4102 0 out.Values[i] = ec._Table_name(ctx, field, obj)
4103 0 if out.Values[i] == graphql.Null {
4104 0 out.Invalids++
4105 0 }
4106 0 case "columns":
4107 0 out.Values[i] = ec._Table_columns(ctx, field, obj)
4108 0 if out.Values[i] == graphql.Null {
4109 0 out.Invalids++
4110 0 }
4111 0 case "rowCount":
4112 0 out.Values[i] = ec._Table_rowCount(ctx, field, obj)
4113 0 if out.Values[i] == graphql.Null {
4114 0 out.Invalids++
4115 0 }
4116 0 default:
4117 0 panic("unknown field " + strconv.Quote(field.Name))
4118 }
4119 }
4120 0 out.Dispatch(ctx)
4121 0 if out.Invalids > 0 {
4122 0 return graphql.Null
4123 0 }
4124
4125 0 atomic.AddInt32(&ec.Deferred, int32(min(len(deferLabelToView), math.MaxInt32)))
4126 0
4127 0 ec.ProcessDeferredGroup(graphql.DeferredGroup{
4128 0 Defers: deferLabelToView,
4129 0 Path: graphql.GetPath(ctx),
4130 0 FieldSet: deferredFieldSet,
4131 0 Context: ctx,
4132 0 })
4133 0
4134 0 return out
4135 }
4136
4137 var userImplementors = []string{"User"}
4138
4139 0 func (ec *executionContext) _User(ctx context.Context, sel ast.SelectionSet, obj *model1.User) graphql.Marshaler {
4140 0 fields := graphql.CollectFields(ec.OperationContext, sel, userImplementors)
4141 0
4142 0 out := graphql.NewFieldSet(fields)
4143 0 deferredFieldSet := graphql.NewFieldSet(nil)
4144 0 deferLabelToView := make(map[string]*graphql.FieldSetView)
4145 0 for i, field := range fields {
4146 0 switch field.Name {
4147 0 case "__typename":
4148 0 out.Values[i] = graphql.MarshalString("User")
4149 0 case "username":
4150 0 out.Values[i] = ec._User_username(ctx, field, obj)
4151 0 if out.Values[i] == graphql.Null {
4152 0 out.Invalids++
4153 0 }
4154 0 case "canonicalName":
4155 0 out.Values[i] = ec._User_canonicalName(ctx, field, obj)
4156 0 if out.Values[i] == graphql.Null {
4157 0 out.Invalids++
4158 0 }
4159 0 default:
4160 0 panic("unknown field " + strconv.Quote(field.Name))
4161 }
4162 }
4163 0 out.Dispatch(ctx)
4164 0 if out.Invalids > 0 {
4165 0 return graphql.Null
4166 0 }
4167
4168 0 atomic.AddInt32(&ec.Deferred, int32(min(len(deferLabelToView), math.MaxInt32)))
4169 0
4170 0 ec.ProcessDeferredGroup(graphql.DeferredGroup{
4171 0 Defers: deferLabelToView,
4172 0 Path: graphql.GetPath(ctx),
4173 0 FieldSet: deferredFieldSet,
4174 0 Context: ctx,
4175 0 })
4176 0
4177 0 return out
4178 }
4179
4180 var __DirectiveImplementors = []string{"__Directive"}
4181
4182 0 func (ec *executionContext) ___Directive(ctx context.Context, sel ast.SelectionSet, obj *introspection.Directive) graphql.Marshaler {
4183 0 fields := graphql.CollectFields(ec.OperationContext, sel, __DirectiveImplementors)
4184 0
4185 0 out := graphql.NewFieldSet(fields)
4186 0 deferredFieldSet := graphql.NewFieldSet(nil)
4187 0 deferLabelToView := make(map[string]*graphql.FieldSetView)
4188 0 for i, field := range fields {
4189 0 switch field.Name {
4190 0 case "__typename":
4191 0 out.Values[i] = graphql.MarshalString("__Directive")
4192 0 case "name":
4193 0 out.Values[i] = ec.___Directive_name(ctx, field, obj)
4194 0 if out.Values[i] == graphql.Null {
4195 0 out.Invalids++
4196 0 }
4197 0 case "description":
4198 0 out.Values[i] = ec.___Directive_description(ctx, field, obj)
4199 0 if out.Values[i] == graphql.RequiredNull {
4200 0 out.Invalids++
4201 0 }
4202 0 case "isRepeatable":
4203 0 out.Values[i] = ec.___Directive_isRepeatable(ctx, field, obj)
4204 0 if out.Values[i] == graphql.Null {
4205 0 out.Invalids++
4206 0 }
4207 0 case "locations":
4208 0 out.Values[i] = ec.___Directive_locations(ctx, field, obj)
4209 0 if out.Values[i] == graphql.Null {
4210 0 out.Invalids++
4211 0 }
4212 0 case "args":
4213 0 out.Values[i] = ec.___Directive_args(ctx, field, obj)
4214 0 if out.Values[i] == graphql.Null {
4215 0 out.Invalids++
4216 0 }
4217 0 default:
4218 0 panic("unknown field " + strconv.Quote(field.Name))
4219 }
4220 }
4221 0 out.Dispatch(ctx)
4222 0 if out.Invalids > 0 {
4223 0 return graphql.Null
4224 0 }
4225
4226 0 atomic.AddInt32(&ec.Deferred, int32(min(len(deferLabelToView), math.MaxInt32)))
4227 0
4228 0 ec.ProcessDeferredGroup(graphql.DeferredGroup{
4229 0 Defers: deferLabelToView,
4230 0 Path: graphql.GetPath(ctx),
4231 0 FieldSet: deferredFieldSet,
4232 0 Context: ctx,
4233 0 })
4234 0
4235 0 return out
4236 }
4237
4238 var __EnumValueImplementors = []string{"__EnumValue"}
4239
4240 0 func (ec *executionContext) ___EnumValue(ctx context.Context, sel ast.SelectionSet, obj *introspection.EnumValue) graphql.Marshaler {
4241 0 fields := graphql.CollectFields(ec.OperationContext, sel, __EnumValueImplementors)
4242 0
4243 0 out := graphql.NewFieldSet(fields)
4244 0 deferredFieldSet := graphql.NewFieldSet(nil)
4245 0 deferLabelToView := make(map[string]*graphql.FieldSetView)
4246 0 for i, field := range fields {
4247 0 switch field.Name {
4248 0 case "__typename":
4249 0 out.Values[i] = graphql.MarshalString("__EnumValue")
4250 0 case "name":
4251 0 out.Values[i] = ec.___EnumValue_name(ctx, field, obj)
4252 0 if out.Values[i] == graphql.Null {
4253 0 out.Invalids++
4254 0 }
4255 0 case "description":
4256 0 out.Values[i] = ec.___EnumValue_description(ctx, field, obj)
4257 0 if out.Values[i] == graphql.RequiredNull {
4258 0 out.Invalids++
4259 0 }
4260 0 case "isDeprecated":
4261 0 out.Values[i] = ec.___EnumValue_isDeprecated(ctx, field, obj)
4262 0 if out.Values[i] == graphql.Null {
4263 0 out.Invalids++
4264 0 }
4265 0 case "deprecationReason":
4266 0 out.Values[i] = ec.___EnumValue_deprecationReason(ctx, field, obj)
4267 0 if out.Values[i] == graphql.RequiredNull {
4268 0 out.Invalids++
4269 0 }
4270 0 default:
4271 0 panic("unknown field " + strconv.Quote(field.Name))
4272 }
4273 }
4274 0 out.Dispatch(ctx)
4275 0 if out.Invalids > 0 {
4276 0 return graphql.Null
4277 0 }
4278
4279 0 atomic.AddInt32(&ec.Deferred, int32(min(len(deferLabelToView), math.MaxInt32)))
4280 0
4281 0 ec.ProcessDeferredGroup(graphql.DeferredGroup{
4282 0 Defers: deferLabelToView,
4283 0 Path: graphql.GetPath(ctx),
4284 0 FieldSet: deferredFieldSet,
4285 0 Context: ctx,
4286 0 })
4287 0
4288 0 return out
4289 }
4290
4291 var __FieldImplementors = []string{"__Field"}
4292
4293 0 func (ec *executionContext) ___Field(ctx context.Context, sel ast.SelectionSet, obj *introspection.Field) graphql.Marshaler {
4294 0 fields := graphql.CollectFields(ec.OperationContext, sel, __FieldImplementors)
4295 0
4296 0 out := graphql.NewFieldSet(fields)
4297 0 deferredFieldSet := graphql.NewFieldSet(nil)
4298 0 deferLabelToView := make(map[string]*graphql.FieldSetView)
4299 0 for i, field := range fields {
4300 0 switch field.Name {
4301 0 case "__typename":
4302 0 out.Values[i] = graphql.MarshalString("__Field")
4303 0 case "name":
4304 0 out.Values[i] = ec.___Field_name(ctx, field, obj)
4305 0 if out.Values[i] == graphql.Null {
4306 0 out.Invalids++
4307 0 }
4308 0 case "description":
4309 0 out.Values[i] = ec.___Field_description(ctx, field, obj)
4310 0 if out.Values[i] == graphql.RequiredNull {
4311 0 out.Invalids++
4312 0 }
4313 0 case "args":
4314 0 out.Values[i] = ec.___Field_args(ctx, field, obj)
4315 0 if out.Values[i] == graphql.Null {
4316 0 out.Invalids++
4317 0 }
4318 0 case "type":
4319 0 out.Values[i] = ec.___Field_type(ctx, field, obj)
4320 0 if out.Values[i] == graphql.Null {
4321 0 out.Invalids++
4322 0 }
4323 0 case "isDeprecated":
4324 0 out.Values[i] = ec.___Field_isDeprecated(ctx, field, obj)
4325 0 if out.Values[i] == graphql.Null {
4326 0 out.Invalids++
4327 0 }
4328 0 case "deprecationReason":
4329 0 out.Values[i] = ec.___Field_deprecationReason(ctx, field, obj)
4330 0 if out.Values[i] == graphql.RequiredNull {
4331 0 out.Invalids++
4332 0 }
4333 0 default:
4334 0 panic("unknown field " + strconv.Quote(field.Name))
4335 }
4336 }
4337 0 out.Dispatch(ctx)
4338 0 if out.Invalids > 0 {
4339 0 return graphql.Null
4340 0 }
4341
4342 0 atomic.AddInt32(&ec.Deferred, int32(min(len(deferLabelToView), math.MaxInt32)))
4343 0
4344 0 ec.ProcessDeferredGroup(graphql.DeferredGroup{
4345 0 Defers: deferLabelToView,
4346 0 Path: graphql.GetPath(ctx),
4347 0 FieldSet: deferredFieldSet,
4348 0 Context: ctx,
4349 0 })
4350 0
4351 0 return out
4352 }
4353
4354 var __InputValueImplementors = []string{"__InputValue"}
4355
4356 0 func (ec *executionContext) ___InputValue(ctx context.Context, sel ast.SelectionSet, obj *introspection.InputValue) graphql.Marshaler {
4357 0 fields := graphql.CollectFields(ec.OperationContext, sel, __InputValueImplementors)
4358 0
4359 0 out := graphql.NewFieldSet(fields)
4360 0 deferredFieldSet := graphql.NewFieldSet(nil)
4361 0 deferLabelToView := make(map[string]*graphql.FieldSetView)
4362 0 for i, field := range fields {
4363 0 switch field.Name {
4364 0 case "__typename":
4365 0 out.Values[i] = graphql.MarshalString("__InputValue")
4366 0 case "name":
4367 0 out.Values[i] = ec.___InputValue_name(ctx, field, obj)
4368 0 if out.Values[i] == graphql.Null {
4369 0 out.Invalids++
4370 0 }
4371 0 case "description":
4372 0 out.Values[i] = ec.___InputValue_description(ctx, field, obj)
4373 0 if out.Values[i] == graphql.RequiredNull {
4374 0 out.Invalids++
4375 0 }
4376 0 case "type":
4377 0 out.Values[i] = ec.___InputValue_type(ctx, field, obj)
4378 0 if out.Values[i] == graphql.Null {
4379 0 out.Invalids++
4380 0 }
4381 0 case "defaultValue":
4382 0 out.Values[i] = ec.___InputValue_defaultValue(ctx, field, obj)
4383 0 if out.Values[i] == graphql.RequiredNull {
4384 0 out.Invalids++
4385 0 }
4386 0 case "isDeprecated":
4387 0 out.Values[i] = ec.___InputValue_isDeprecated(ctx, field, obj)
4388 0 if out.Values[i] == graphql.Null {
4389 0 out.Invalids++
4390 0 }
4391 0 case "deprecationReason":
4392 0 out.Values[i] = ec.___InputValue_deprecationReason(ctx, field, obj)
4393 0 if out.Values[i] == graphql.RequiredNull {
4394 0 out.Invalids++
4395 0 }
4396 0 default:
4397 0 panic("unknown field " + strconv.Quote(field.Name))
4398 }
4399 }
4400 0 out.Dispatch(ctx)
4401 0 if out.Invalids > 0 {
4402 0 return graphql.Null
4403 0 }
4404
4405 0 atomic.AddInt32(&ec.Deferred, int32(min(len(deferLabelToView), math.MaxInt32)))
4406 0
4407 0 ec.ProcessDeferredGroup(graphql.DeferredGroup{
4408 0 Defers: deferLabelToView,
4409 0 Path: graphql.GetPath(ctx),
4410 0 FieldSet: deferredFieldSet,
4411 0 Context: ctx,
4412 0 })
4413 0
4414 0 return out
4415 }
4416
4417 var __SchemaImplementors = []string{"__Schema"}
4418
4419 0 func (ec *executionContext) ___Schema(ctx context.Context, sel ast.SelectionSet, obj *introspection.Schema) graphql.Marshaler {
4420 0 fields := graphql.CollectFields(ec.OperationContext, sel, __SchemaImplementors)
4421 0
4422 0 out := graphql.NewFieldSet(fields)
4423 0 deferredFieldSet := graphql.NewFieldSet(nil)
4424 0 deferLabelToView := make(map[string]*graphql.FieldSetView)
4425 0 for i, field := range fields {
4426 0 switch field.Name {
4427 0 case "__typename":
4428 0 out.Values[i] = graphql.MarshalString("__Schema")
4429 0 case "description":
4430 0 out.Values[i] = ec.___Schema_description(ctx, field, obj)
4431 0 if out.Values[i] == graphql.RequiredNull {
4432 0 out.Invalids++
4433 0 }
4434 0 case "types":
4435 0 out.Values[i] = ec.___Schema_types(ctx, field, obj)
4436 0 if out.Values[i] == graphql.Null {
4437 0 out.Invalids++
4438 0 }
4439 0 case "queryType":
4440 0 out.Values[i] = ec.___Schema_queryType(ctx, field, obj)
4441 0 if out.Values[i] == graphql.Null {
4442 0 out.Invalids++
4443 0 }
4444 0 case "mutationType":
4445 0 out.Values[i] = ec.___Schema_mutationType(ctx, field, obj)
4446 0 if out.Values[i] == graphql.RequiredNull {
4447 0 out.Invalids++
4448 0 }
4449 0 case "subscriptionType":
4450 0 out.Values[i] = ec.___Schema_subscriptionType(ctx, field, obj)
4451 0 if out.Values[i] == graphql.RequiredNull {
4452 0 out.Invalids++
4453 0 }
4454 0 case "directives":
4455 0 out.Values[i] = ec.___Schema_directives(ctx, field, obj)
4456 0 if out.Values[i] == graphql.Null {
4457 0 out.Invalids++
4458 0 }
4459 0 default:
4460 0 panic("unknown field " + strconv.Quote(field.Name))
4461 }
4462 }
4463 0 out.Dispatch(ctx)
4464 0 if out.Invalids > 0 {
4465 0 return graphql.Null
4466 0 }
4467
4468 0 atomic.AddInt32(&ec.Deferred, int32(min(len(deferLabelToView), math.MaxInt32)))
4469 0
4470 0 ec.ProcessDeferredGroup(graphql.DeferredGroup{
4471 0 Defers: deferLabelToView,
4472 0 Path: graphql.GetPath(ctx),
4473 0 FieldSet: deferredFieldSet,
4474 0 Context: ctx,
4475 0 })
4476 0
4477 0 return out
4478 }
4479
4480 var __TypeImplementors = []string{"__Type"}
4481
4482 0 func (ec *executionContext) ___Type(ctx context.Context, sel ast.SelectionSet, obj *introspection.Type) graphql.Marshaler {
4483 0 fields := graphql.CollectFields(ec.OperationContext, sel, __TypeImplementors)
4484 0
4485 0 out := graphql.NewFieldSet(fields)
4486 0 deferredFieldSet := graphql.NewFieldSet(nil)
4487 0 deferLabelToView := make(map[string]*graphql.FieldSetView)
4488 0 for i, field := range fields {
4489 0 switch field.Name {
4490 0 case "__typename":
4491 0 out.Values[i] = graphql.MarshalString("__Type")
4492 0 case "kind":
4493 0 out.Values[i] = ec.___Type_kind(ctx, field, obj)
4494 0 if out.Values[i] == graphql.Null {
4495 0 out.Invalids++
4496 0 }
4497 0 case "name":
4498 0 out.Values[i] = ec.___Type_name(ctx, field, obj)
4499 0 if out.Values[i] == graphql.RequiredNull {
4500 0 out.Invalids++
4501 0 }
4502 0 case "description":
4503 0 out.Values[i] = ec.___Type_description(ctx, field, obj)
4504 0 if out.Values[i] == graphql.RequiredNull {
4505 0 out.Invalids++
4506 0 }
4507 0 case "specifiedByURL":
4508 0 out.Values[i] = ec.___Type_specifiedByURL(ctx, field, obj)
4509 0 if out.Values[i] == graphql.RequiredNull {
4510 0 out.Invalids++
4511 0 }
4512 0 case "fields":
4513 0 out.Values[i] = ec.___Type_fields(ctx, field, obj)
4514 0 if out.Values[i] == graphql.RequiredNull {
4515 0 out.Invalids++
4516 0 }
4517 0 case "interfaces":
4518 0 out.Values[i] = ec.___Type_interfaces(ctx, field, obj)
4519 0 if out.Values[i] == graphql.RequiredNull {
4520 0 out.Invalids++
4521 0 }
4522 0 case "possibleTypes":
4523 0 out.Values[i] = ec.___Type_possibleTypes(ctx, field, obj)
4524 0 if out.Values[i] == graphql.RequiredNull {
4525 0 out.Invalids++
4526 0 }
4527 0 case "enumValues":
4528 0 out.Values[i] = ec.___Type_enumValues(ctx, field, obj)
4529 0 if out.Values[i] == graphql.RequiredNull {
4530 0 out.Invalids++
4531 0 }
4532 0 case "inputFields":
4533 0 out.Values[i] = ec.___Type_inputFields(ctx, field, obj)
4534 0 if out.Values[i] == graphql.RequiredNull {
4535 0 out.Invalids++
4536 0 }
4537 0 case "ofType":
4538 0 out.Values[i] = ec.___Type_ofType(ctx, field, obj)
4539 0 if out.Values[i] == graphql.RequiredNull {
4540 0 out.Invalids++
4541 0 }
4542 0 case "isOneOf":
4543 0 out.Values[i] = ec.___Type_isOneOf(ctx, field, obj)
4544 0 if out.Values[i] == graphql.RequiredNull {
4545 0 out.Invalids++
4546 0 }
4547 0 default:
4548 0 panic("unknown field " + strconv.Quote(field.Name))
4549 }
4550 }
4551 0 out.Dispatch(ctx)
4552 0 if out.Invalids > 0 {
4553 0 return graphql.Null
4554 0 }
4555
4556 0 atomic.AddInt32(&ec.Deferred, int32(min(len(deferLabelToView), math.MaxInt32)))
4557 0
4558 0 ec.ProcessDeferredGroup(graphql.DeferredGroup{
4559 0 Defers: deferLabelToView,
4560 0 Path: graphql.GetPath(ctx),
4561 0 FieldSet: deferredFieldSet,
4562 0 Context: ctx,
4563 0 })
4564 0
4565 0 return out
4566 }
4567
4568 // endregion **************************** object.gotpl ****************************
4569
4570 // region ***************************** type.gotpl *****************************
4571
4572 0 func (ec *executionContext) marshalNACLEntry2ᚕᚖsourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑdoltᚋgraphᚋmodelᚐACLEntryᚄ(ctx context.Context, sel ast.SelectionSet, v []*model1.ACLEntry) graphql.Marshaler {
4573 0 ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler {
4574 0 fc := graphql.GetFieldContext(ctx)
4575 0 fc.Result = &v[i]
4576 0 return ec.marshalNACLEntry2ᚖsourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑdoltᚋgraphᚋmodelᚐACLEntry(ctx, sel, v[i])
4577 0 })
4578
4579 0 for _, e := range ret {
4580 0 if e == graphql.Null {
4581 0 return graphql.Null
4582 0 }
4583 }
4584
4585 0 return ret
4586 }
4587
4588 0 func (ec *executionContext) marshalNACLEntry2ᚖsourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑdoltᚋgraphᚋmodelᚐACLEntry(ctx context.Context, sel ast.SelectionSet, v *model1.ACLEntry) graphql.Marshaler {
4589 0 if v == nil {
4590 0 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
4591 0 graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow")
4592 0 }
4593 0 return graphql.Null
4594 }
4595 0 return ec._ACLEntry(ctx, sel, v)
4596 }
4597
4598 0 func (ec *executionContext) unmarshalNAccessMode2sourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑdoltᚋgraphᚋmodelᚐAccessMode(ctx context.Context, v any) (model1.AccessMode, error) {
4599 0 var res model1.AccessMode
4600 0 err := res.UnmarshalGQL(v)
4601 0 return res, graphql.ErrorOnPath(ctx, err)
4602 0 }
4603
4604 0 func (ec *executionContext) marshalNAccessMode2sourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑdoltᚋgraphᚋmodelᚐAccessMode(ctx context.Context, sel ast.SelectionSet, v model1.AccessMode) graphql.Marshaler {
4605 0 return v
4606 0 }
4607
4608 0 func (ec *executionContext) unmarshalNBoolean2bool(ctx context.Context, v any) (bool, error) {
4609 0 res, err := graphql.UnmarshalBoolean(v)
4610 0 return res, graphql.ErrorOnPath(ctx, err)
4611 0 }
4612
4613 0 func (ec *executionContext) marshalNBoolean2bool(ctx context.Context, sel ast.SelectionSet, v bool) graphql.Marshaler {
4614 0 _ = sel
4615 0 res := graphql.MarshalBoolean(v)
4616 0 if res == graphql.Null {
4617 0 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
4618 0 graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow")
4619 0 }
4620 }
4621 0 return res
4622 }
4623
4624 0 func (ec *executionContext) marshalNBranch2ᚕᚖsourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑdoltᚋgraphᚋmodelᚐBranchᚄ(ctx context.Context, sel ast.SelectionSet, v []*model1.Branch) graphql.Marshaler {
4625 0 ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler {
4626 0 fc := graphql.GetFieldContext(ctx)
4627 0 fc.Result = &v[i]
4628 0 return ec.marshalNBranch2ᚖsourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑdoltᚋgraphᚋmodelᚐBranch(ctx, sel, v[i])
4629 0 })
4630
4631 0 for _, e := range ret {
4632 0 if e == graphql.Null {
4633 0 return graphql.Null
4634 0 }
4635 }
4636
4637 0 return ret
4638 }
4639
4640 0 func (ec *executionContext) marshalNBranch2ᚖsourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑdoltᚋgraphᚋmodelᚐBranch(ctx context.Context, sel ast.SelectionSet, v *model1.Branch) graphql.Marshaler {
4641 0 if v == nil {
4642 0 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
4643 0 graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow")
4644 0 }
4645 0 return graphql.Null
4646 }
4647 0 return ec._Branch(ctx, sel, v)
4648 }
4649
4650 0 func (ec *executionContext) marshalNColumn2ᚕᚖsourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑdoltᚋgraphᚋmodelᚐColumnᚄ(ctx context.Context, sel ast.SelectionSet, v []*model1.Column) graphql.Marshaler {
4651 0 ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler {
4652 0 fc := graphql.GetFieldContext(ctx)
4653 0 fc.Result = &v[i]
4654 0 return ec.marshalNColumn2ᚖsourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑdoltᚋgraphᚋmodelᚐColumn(ctx, sel, v[i])
4655 0 })
4656
4657 0 for _, e := range ret {
4658 0 if e == graphql.Null {
4659 0 return graphql.Null
4660 0 }
4661 }
4662
4663 0 return ret
4664 }
4665
4666 0 func (ec *executionContext) marshalNColumn2ᚖsourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑdoltᚋgraphᚋmodelᚐColumn(ctx context.Context, sel ast.SelectionSet, v *model1.Column) graphql.Marshaler {
4667 0 if v == nil {
4668 0 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
4669 0 graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow")
4670 0 }
4671 0 return graphql.Null
4672 }
4673 0 return ec._Column(ctx, sel, v)
4674 }
4675
4676 0 func (ec *executionContext) marshalNCommit2ᚕᚖsourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑdoltᚋgraphᚋmodelᚐCommitᚄ(ctx context.Context, sel ast.SelectionSet, v []*model1.Commit) graphql.Marshaler {
4677 0 ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler {
4678 0 fc := graphql.GetFieldContext(ctx)
4679 0 fc.Result = &v[i]
4680 0 return ec.marshalNCommit2ᚖsourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑdoltᚋgraphᚋmodelᚐCommit(ctx, sel, v[i])
4681 0 })
4682
4683 0 for _, e := range ret {
4684 0 if e == graphql.Null {
4685 0 return graphql.Null
4686 0 }
4687 }
4688
4689 0 return ret
4690 }
4691
4692 0 func (ec *executionContext) marshalNCommit2ᚖsourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑdoltᚋgraphᚋmodelᚐCommit(ctx context.Context, sel ast.SelectionSet, v *model1.Commit) graphql.Marshaler {
4693 0 if v == nil {
4694 0 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
4695 0 graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow")
4696 0 }
4697 0 return graphql.Null
4698 }
4699 0 return ec._Commit(ctx, sel, v)
4700 }
4701
4702 0 func (ec *executionContext) marshalNCommitCursor2sourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑdoltᚋgraphᚋmodelᚐCommitCursor(ctx context.Context, sel ast.SelectionSet, v model1.CommitCursor) graphql.Marshaler {
4703 0 return ec._CommitCursor(ctx, sel, &v)
4704 0 }
4705
4706 0 func (ec *executionContext) marshalNCommitCursor2ᚖsourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑdoltᚋgraphᚋmodelᚐCommitCursor(ctx context.Context, sel ast.SelectionSet, v *model1.CommitCursor) graphql.Marshaler {
4707 0 if v == nil {
4708 0 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
4709 0 graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow")
4710 0 }
4711 0 return graphql.Null
4712 }
4713 0 return ec._CommitCursor(ctx, sel, v)
4714 }
4715
4716 0 func (ec *executionContext) marshalNDatabase2ᚕᚖsourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑdoltᚋgraphᚋmodelᚐDatabaseᚄ(ctx context.Context, sel ast.SelectionSet, v []*model1.Database) graphql.Marshaler {
4717 0 ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler {
4718 0 fc := graphql.GetFieldContext(ctx)
4719 0 fc.Result = &v[i]
4720 0 return ec.marshalNDatabase2ᚖsourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑdoltᚋgraphᚋmodelᚐDatabase(ctx, sel, v[i])
4721 0 })
4722
4723 0 for _, e := range ret {
4724 0 if e == graphql.Null {
4725 0 return graphql.Null
4726 0 }
4727 }
4728
4729 0 return ret
4730 }
4731
4732 0 func (ec *executionContext) marshalNDatabase2ᚖsourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑdoltᚋgraphᚋmodelᚐDatabase(ctx context.Context, sel ast.SelectionSet, v *model1.Database) graphql.Marshaler {
4733 0 if v == nil {
4734 0 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
4735 0 graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow")
4736 0 }
4737 0 return graphql.Null
4738 }
4739 0 return ec._Database(ctx, sel, v)
4740 }
4741
4742 0 func (ec *executionContext) marshalNDatabaseCursor2sourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑdoltᚋgraphᚋmodelᚐDatabaseCursor(ctx context.Context, sel ast.SelectionSet, v model1.DatabaseCursor) graphql.Marshaler {
4743 0 return ec._DatabaseCursor(ctx, sel, &v)
4744 0 }
4745
4746 0 func (ec *executionContext) marshalNDatabaseCursor2ᚖsourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑdoltᚋgraphᚋmodelᚐDatabaseCursor(ctx context.Context, sel ast.SelectionSet, v *model1.DatabaseCursor) graphql.Marshaler {
4747 0 if v == nil {
4748 0 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
4749 0 graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow")
4750 0 }
4751 0 return graphql.Null
4752 }
4753 0 return ec._DatabaseCursor(ctx, sel, v)
4754 }
4755
4756 0 func (ec *executionContext) unmarshalNInt2int(ctx context.Context, v any) (int, error) {
4757 0 res, err := graphql.UnmarshalInt(v)
4758 0 return res, graphql.ErrorOnPath(ctx, err)
4759 0 }
4760
4761 0 func (ec *executionContext) marshalNInt2int(ctx context.Context, sel ast.SelectionSet, v int) graphql.Marshaler {
4762 0 _ = sel
4763 0 res := graphql.MarshalInt(v)
4764 0 if res == graphql.Null {
4765 0 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
4766 0 graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow")
4767 0 }
4768 }
4769 0 return res
4770 }
4771
4772 0 func (ec *executionContext) unmarshalNString2string(ctx context.Context, v any) (string, error) {
4773 0 res, err := graphql.UnmarshalString(v)
4774 0 return res, graphql.ErrorOnPath(ctx, err)
4775 0 }
4776
4777 0 func (ec *executionContext) marshalNString2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler {
4778 0 _ = sel
4779 0 res := graphql.MarshalString(v)
4780 0 if res == graphql.Null {
4781 0 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
4782 0 graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow")
4783 0 }
4784 }
4785 0 return res
4786 }
4787
4788 0 func (ec *executionContext) unmarshalNString2ᚕstringᚄ(ctx context.Context, v any) ([]string, error) {
4789 0 vSlice := graphql.CoerceList(v)
4790 0 var err error
4791 0 res := make([]string, len(vSlice))
4792 0 for i := range vSlice {
4793 0 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i))
4794 0 res[i], err = ec.unmarshalNString2string(ctx, vSlice[i])
4795 0 if err != nil {
4796 0 return nil, err
4797 0 }
4798 }
4799 0 return res, nil
4800 }
4801
4802 0 func (ec *executionContext) marshalNString2ᚕstringᚄ(ctx context.Context, sel ast.SelectionSet, v []string) graphql.Marshaler {
4803 0 ret := make(graphql.Array, len(v))
4804 0 for i := range v {
4805 0 ret[i] = ec.marshalNString2string(ctx, sel, v[i])
4806 0 }
4807
4808 0 for _, e := range ret {
4809 0 if e == graphql.Null {
4810 0 return graphql.Null
4811 0 }
4812 }
4813
4814 0 return ret
4815 }
4816
4817 0 func (ec *executionContext) marshalNTable2ᚕᚖsourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑdoltᚋgraphᚋmodelᚐTableᚄ(ctx context.Context, sel ast.SelectionSet, v []*model1.Table) graphql.Marshaler {
4818 0 ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler {
4819 0 fc := graphql.GetFieldContext(ctx)
4820 0 fc.Result = &v[i]
4821 0 return ec.marshalNTable2ᚖsourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑdoltᚋgraphᚋmodelᚐTable(ctx, sel, v[i])
4822 0 })
4823
4824 0 for _, e := range ret {
4825 0 if e == graphql.Null {
4826 0 return graphql.Null
4827 0 }
4828 }
4829
4830 0 return ret
4831 }
4832
4833 0 func (ec *executionContext) marshalNTable2ᚖsourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑdoltᚋgraphᚋmodelᚐTable(ctx context.Context, sel ast.SelectionSet, v *model1.Table) graphql.Marshaler {
4834 0 if v == nil {
4835 0 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
4836 0 graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow")
4837 0 }
4838 0 return graphql.Null
4839 }
4840 0 return ec._Table(ctx, sel, v)
4841 }
4842
4843 0 func (ec *executionContext) unmarshalNTime2timeᚐTime(ctx context.Context, v any) (time.Time, error) {
4844 0 res, err := graphql.UnmarshalTime(v)
4845 0 return res, graphql.ErrorOnPath(ctx, err)
4846 0 }
4847
4848 0 func (ec *executionContext) marshalNTime2timeᚐTime(ctx context.Context, sel ast.SelectionSet, v time.Time) graphql.Marshaler {
4849 0 _ = sel
4850 0 res := graphql.MarshalTime(v)
4851 0 if res == graphql.Null {
4852 0 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
4853 0 graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow")
4854 0 }
4855 }
4856 0 return res
4857 }
4858
4859 0 func (ec *executionContext) marshalNUser2ᚖsourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑdoltᚋgraphᚋmodelᚐUser(ctx context.Context, sel ast.SelectionSet, v *model1.User) graphql.Marshaler {
4860 0 if v == nil {
4861 0 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
4862 0 graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow")
4863 0 }
4864 0 return graphql.Null
4865 }
4866 0 return ec._User(ctx, sel, v)
4867 }
4868
4869 0 func (ec *executionContext) unmarshalNVisibility2sourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑdoltᚋgraphᚋmodelᚐVisibility(ctx context.Context, v any) (model1.Visibility, error) {
4870 0 var res model1.Visibility
4871 0 err := res.UnmarshalGQL(v)
4872 0 return res, graphql.ErrorOnPath(ctx, err)
4873 0 }
4874
4875 0 func (ec *executionContext) marshalNVisibility2sourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑdoltᚋgraphᚋmodelᚐVisibility(ctx context.Context, sel ast.SelectionSet, v model1.Visibility) graphql.Marshaler {
4876 0 return v
4877 0 }
4878
4879 0 func (ec *executionContext) marshalN__Directive2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirective(ctx context.Context, sel ast.SelectionSet, v introspection.Directive) graphql.Marshaler {
4880 0 return ec.___Directive(ctx, sel, &v)
4881 0 }
4882
4883 0 func (ec *executionContext) marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirectiveᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Directive) graphql.Marshaler {
4884 0 ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler {
4885 0 fc := graphql.GetFieldContext(ctx)
4886 0 fc.Result = &v[i]
4887 0 return ec.marshalN__Directive2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirective(ctx, sel, v[i])
4888 0 })
4889
4890 0 for _, e := range ret {
4891 0 if e == graphql.Null {
4892 0 return graphql.Null
4893 0 }
4894 }
4895
4896 0 return ret
4897 }
4898
4899 0 func (ec *executionContext) unmarshalN__DirectiveLocation2string(ctx context.Context, v any) (string, error) {
4900 0 res, err := graphql.UnmarshalString(v)
4901 0 return res, graphql.ErrorOnPath(ctx, err)
4902 0 }
4903
4904 0 func (ec *executionContext) marshalN__DirectiveLocation2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler {
4905 0 _ = sel
4906 0 res := graphql.MarshalString(v)
4907 0 if res == graphql.Null {
4908 0 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
4909 0 graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow")
4910 0 }
4911 }
4912 0 return res
4913 }
4914
4915 0 func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, v any) ([]string, error) {
4916 0 vSlice := graphql.CoerceList(v)
4917 0 var err error
4918 0 res := make([]string, len(vSlice))
4919 0 for i := range vSlice {
4920 0 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i))
4921 0 res[i], err = ec.unmarshalN__DirectiveLocation2string(ctx, vSlice[i])
4922 0 if err != nil {
4923 0 return nil, err
4924 0 }
4925 }
4926 0 return res, nil
4927 }
4928
4929 0 func (ec *executionContext) marshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, sel ast.SelectionSet, v []string) graphql.Marshaler {
4930 0 ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler {
4931 0 fc := graphql.GetFieldContext(ctx)
4932 0 fc.Result = &v[i]
4933 0 return ec.marshalN__DirectiveLocation2string(ctx, sel, v[i])
4934 0 })
4935
4936 0 for _, e := range ret {
4937 0 if e == graphql.Null {
4938 0 return graphql.Null
4939 0 }
4940 }
4941
4942 0 return ret
4943 }
4944
4945 0 func (ec *executionContext) marshalN__EnumValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValue(ctx context.Context, sel ast.SelectionSet, v introspection.EnumValue) graphql.Marshaler {
4946 0 return ec.___EnumValue(ctx, sel, &v)
4947 0 }
4948
4949 0 func (ec *executionContext) marshalN__Field2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐField(ctx context.Context, sel ast.SelectionSet, v introspection.Field) graphql.Marshaler {
4950 0 return ec.___Field(ctx, sel, &v)
4951 0 }
4952
4953 0 func (ec *executionContext) marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx context.Context, sel ast.SelectionSet, v introspection.InputValue) graphql.Marshaler {
4954 0 return ec.___InputValue(ctx, sel, &v)
4955 0 }
4956
4957 0 func (ec *executionContext) marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.InputValue) graphql.Marshaler {
4958 0 ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler {
4959 0 fc := graphql.GetFieldContext(ctx)
4960 0 fc.Result = &v[i]
4961 0 return ec.marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx, sel, v[i])
4962 0 })
4963
4964 0 for _, e := range ret {
4965 0 if e == graphql.Null {
4966 0 return graphql.Null
4967 0 }
4968 }
4969
4970 0 return ret
4971 }
4972
4973 0 func (ec *executionContext) marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx context.Context, sel ast.SelectionSet, v introspection.Type) graphql.Marshaler {
4974 0 return ec.___Type(ctx, sel, &v)
4975 0 }
4976
4977 0 func (ec *executionContext) marshalN__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Type) graphql.Marshaler {
4978 0 ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler {
4979 0 fc := graphql.GetFieldContext(ctx)
4980 0 fc.Result = &v[i]
4981 0 return ec.marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, sel, v[i])
4982 0 })
4983
4984 0 for _, e := range ret {
4985 0 if e == graphql.Null {
4986 0 return graphql.Null
4987 0 }
4988 }
4989
4990 0 return ret
4991 }
4992
4993 0 func (ec *executionContext) marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx context.Context, sel ast.SelectionSet, v *introspection.Type) graphql.Marshaler {
4994 0 if v == nil {
4995 0 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
4996 0 graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow")
4997 0 }
4998 0 return graphql.Null
4999 }
5000 0 return ec.___Type(ctx, sel, v)
5001 }
5002
5003 0 func (ec *executionContext) unmarshalN__TypeKind2string(ctx context.Context, v any) (string, error) {
5004 0 res, err := graphql.UnmarshalString(v)
5005 0 return res, graphql.ErrorOnPath(ctx, err)
5006 0 }
5007
5008 0 func (ec *executionContext) marshalN__TypeKind2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler {
5009 0 _ = sel
5010 0 res := graphql.MarshalString(v)
5011 0 if res == graphql.Null {
5012 0 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
5013 0 graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow")
5014 0 }
5015 }
5016 0 return res
5017 }
5018
5019 0 func (ec *executionContext) unmarshalOBoolean2bool(ctx context.Context, v any) (bool, error) {
5020 0 res, err := graphql.UnmarshalBoolean(v)
5021 0 return res, graphql.ErrorOnPath(ctx, err)
5022 0 }
5023
5024 0 func (ec *executionContext) marshalOBoolean2bool(ctx context.Context, sel ast.SelectionSet, v bool) graphql.Marshaler {
5025 0 _ = sel
5026 0 _ = ctx
5027 0 res := graphql.MarshalBoolean(v)
5028 0 return res
5029 0 }
5030
5031 0 func (ec *executionContext) unmarshalOBoolean2ᚖbool(ctx context.Context, v any) (*bool, error) {
5032 0 if v == nil {
5033 0 return nil, nil
5034 0 }
5035 0 res, err := graphql.UnmarshalBoolean(v)
5036 0 return &res, graphql.ErrorOnPath(ctx, err)
5037 }
5038
5039 0 func (ec *executionContext) marshalOBoolean2ᚖbool(ctx context.Context, sel ast.SelectionSet, v *bool) graphql.Marshaler {
5040 0 if v == nil {
5041 0 return graphql.Null
5042 0 }
5043 0 _ = sel
5044 0 _ = ctx
5045 0 res := graphql.MarshalBoolean(*v)
5046 0 return res
5047 }
5048
5049 0 func (ec *executionContext) unmarshalOCursor2ᚖsourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑcoreᚋmodelᚐCursor(ctx context.Context, v any) (*model.Cursor, error) {
5050 0 if v == nil {
5051 0 return nil, nil
5052 0 }
5053 0 var res = new(model.Cursor)
5054 0 err := res.UnmarshalGQL(v)
5055 0 return res, graphql.ErrorOnPath(ctx, err)
5056 }
5057
5058 0 func (ec *executionContext) marshalOCursor2ᚖsourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑcoreᚋmodelᚐCursor(ctx context.Context, sel ast.SelectionSet, v *model.Cursor) graphql.Marshaler {
5059 0 if v == nil {
5060 0 return graphql.Null
5061 0 }
5062 0 return v
5063 }
5064
5065 0 func (ec *executionContext) marshalODatabase2ᚖsourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑdoltᚋgraphᚋmodelᚐDatabase(ctx context.Context, sel ast.SelectionSet, v *model1.Database) graphql.Marshaler {
5066 0 if v == nil {
5067 0 return graphql.Null
5068 0 }
5069 0 return ec._Database(ctx, sel, v)
5070 }
5071
5072 0 func (ec *executionContext) unmarshalOFilter2ᚖsourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑcoreᚋmodelᚐFilter(ctx context.Context, v any) (*model.Filter, error) {
5073 0 if v == nil {
5074 0 return nil, nil
5075 0 }
5076 0 res, err := ec.unmarshalInputFilter(ctx, v)
5077 0 return &res, graphql.ErrorOnPath(ctx, err)
5078 }
5079
5080 0 func (ec *executionContext) unmarshalOInt2ᚖint(ctx context.Context, v any) (*int, error) {
5081 0 if v == nil {
5082 0 return nil, nil
5083 0 }
5084 0 res, err := graphql.UnmarshalInt(v)
5085 0 return &res, graphql.ErrorOnPath(ctx, err)
5086 }
5087
5088 0 func (ec *executionContext) marshalOInt2ᚖint(ctx context.Context, sel ast.SelectionSet, v *int) graphql.Marshaler {
5089 0 if v == nil {
5090 0 return graphql.Null
5091 0 }
5092 0 _ = sel
5093 0 _ = ctx
5094 0 res := graphql.MarshalInt(*v)
5095 0 return res
5096 }
5097
5098 0 func (ec *executionContext) unmarshalOString2ᚖstring(ctx context.Context, v any) (*string, error) {
5099 0 if v == nil {
5100 0 return nil, nil
5101 0 }
5102 0 res, err := graphql.UnmarshalString(v)
5103 0 return &res, graphql.ErrorOnPath(ctx, err)
5104 }
5105
5106 0 func (ec *executionContext) marshalOString2ᚖstring(ctx context.Context, sel ast.SelectionSet, v *string) graphql.Marshaler {
5107 0 if v == nil {
5108 0 return graphql.Null
5109 0 }
5110 0 _ = sel
5111 0 _ = ctx
5112 0 res := graphql.MarshalString(*v)
5113 0 return res
5114 }
5115
5116 0 func (ec *executionContext) marshalOUser2ᚖsourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑdoltᚋgraphᚋmodelᚐUser(ctx context.Context, sel ast.SelectionSet, v *model1.User) graphql.Marshaler {
5117 0 if v == nil {
5118 0 return graphql.Null
5119 0 }
5120 0 return ec._User(ctx, sel, v)
5121 }
5122
5123 0 func (ec *executionContext) marshalO__EnumValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValueᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.EnumValue) graphql.Marshaler {
5124 0 if v == nil {
5125 0 return graphql.Null
5126 0 }
5127 0 ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler {
5128 0 fc := graphql.GetFieldContext(ctx)
5129 0 fc.Result = &v[i]
5130 0 return ec.marshalN__EnumValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValue(ctx, sel, v[i])
5131 0 })
5132
5133 0 for _, e := range ret {
5134 0 if e == graphql.Null {
5135 0 return graphql.Null
5136 0 }
5137 }
5138
5139 0 return ret
5140 }
5141
5142 0 func (ec *executionContext) marshalO__Field2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐFieldᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Field) graphql.Marshaler {
5143 0 if v == nil {
5144 0 return graphql.Null
5145 0 }
5146 0 ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler {
5147 0 fc := graphql.GetFieldContext(ctx)
5148 0 fc.Result = &v[i]
5149 0 return ec.marshalN__Field2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐField(ctx, sel, v[i])
5150 0 })
5151
5152 0 for _, e := range ret {
5153 0 if e == graphql.Null {
5154 0 return graphql.Null
5155 0 }
5156 }
5157
5158 0 return ret
5159 }
5160
5161 0 func (ec *executionContext) marshalO__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.InputValue) graphql.Marshaler {
5162 0 if v == nil {
5163 0 return graphql.Null
5164 0 }
5165 0 ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler {
5166 0 fc := graphql.GetFieldContext(ctx)
5167 0 fc.Result = &v[i]
5168 0 return ec.marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx, sel, v[i])
5169 0 })
5170
5171 0 for _, e := range ret {
5172 0 if e == graphql.Null {
5173 0 return graphql.Null
5174 0 }
5175 }
5176
5177 0 return ret
5178 }
5179
5180 0 func (ec *executionContext) marshalO__Schema2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐSchema(ctx context.Context, sel ast.SelectionSet, v *introspection.Schema) graphql.Marshaler {
5181 0 if v == nil {
5182 0 return graphql.Null
5183 0 }
5184 0 return ec.___Schema(ctx, sel, v)
5185 }
5186
5187 0 func (ec *executionContext) marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Type) graphql.Marshaler {
5188 0 if v == nil {
5189 0 return graphql.Null
5190 0 }
5191 0 ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler {
5192 0 fc := graphql.GetFieldContext(ctx)
5193 0 fc.Result = &v[i]
5194 0 return ec.marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, sel, v[i])
5195 0 })
5196
5197 0 for _, e := range ret {
5198 0 if e == graphql.Null {
5199 0 return graphql.Null
5200 0 }
5201 }
5202
5203 0 return ret
5204 }
5205
5206 0 func (ec *executionContext) marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx context.Context, sel ast.SelectionSet, v *introspection.Type) graphql.Marshaler {
5207 0 if v == nil {
5208 0 return graphql.Null
5209 0 }
5210 0 return ec.___Type(ctx, sel, v)
5211 }
5212
5213 // endregion ***************************** type.gotpl *****************************