Debian Codegraph @

generated.go

raw
1 // Code generated by github.com/99designs/gqlgen, DO NOT EDIT.
2
3 package archivista
4
5 import (
6 "bytes"
7 "context"
8 "embed"
9 "errors"
10 "fmt"
11 "strconv"
12 "sync"
13 "sync/atomic"
14 "time"
15
16 "entgo.io/contrib/entgql"
17 "github.com/99designs/gqlgen/graphql"
18 "github.com/99designs/gqlgen/graphql/introspection"
19 "github.com/google/uuid"
20 "github.com/in-toto/archivista/ent"
21 "github.com/in-toto/archivista/ent/schema/uuidgql"
22 gqlparser "github.com/vektah/gqlparser/v2"
23 "github.com/vektah/gqlparser/v2/ast"
24 )
25
26 // region ************************** generated!.gotpl **************************
27
28 // NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface.
29 func NewExecutableSchema(cfg Config) graphql.ExecutableSchema {
30 return &executableSchema{
31 schema: cfg.Schema,
32 resolvers: cfg.Resolvers,
33 directives: cfg.Directives,
34 complexity: cfg.Complexity,
35 }
36 }
37
38 type Config struct {
39 Schema *ast.Schema
40 Resolvers ResolverRoot
41 Directives DirectiveRoot
42 Complexity ComplexityRoot
43 }
44
45 type ResolverRoot interface {
46 Query() QueryResolver
47 }
48
49 type DirectiveRoot struct {
50 }
51
52 type ComplexityRoot struct {
53 Attestation struct {
54 AttestationCollection func(childComplexity int) int
55 ID func(childComplexity int) int
56 Type func(childComplexity int) int
57 }
58
59 AttestationCollection struct {
60 Attestations func(childComplexity int) int
61 ID func(childComplexity int) int
62 Name func(childComplexity int) int
63 Statement func(childComplexity int) int
64 }
65
66 AttestationPolicy struct {
67 ID func(childComplexity int) int
68 Name func(childComplexity int) int
69 Statement func(childComplexity int) int
70 }
71
72 AttestationPolicyConnection struct {
73 Edges func(childComplexity int) int
74 PageInfo func(childComplexity int) int
75 TotalCount func(childComplexity int) int
76 }
77
78 AttestationPolicyEdge struct {
79 Cursor func(childComplexity int) int
80 Node func(childComplexity int) int
81 }
82
83 Dsse struct {
84 CreatedAt func(childComplexity int) int
85 GitoidSha256 func(childComplexity int) int
86 ID func(childComplexity int) int
87 PayloadDigests func(childComplexity int) int
88 PayloadType func(childComplexity int) int
89 Signatures func(childComplexity int) int
90 Statement func(childComplexity int) int
91 }
92
93 DsseConnection struct {
94 Edges func(childComplexity int) int
95 PageInfo func(childComplexity int) int
96 TotalCount func(childComplexity int) int
97 }
98
99 DsseEdge struct {
100 Cursor func(childComplexity int) int
101 Node func(childComplexity int) int
102 }
103
104 PageInfo struct {
105 EndCursor func(childComplexity int) int
106 HasNextPage func(childComplexity int) int
107 HasPreviousPage func(childComplexity int) int
108 StartCursor func(childComplexity int) int
109 }
110
111 PayloadDigest struct {
112 Algorithm func(childComplexity int) int
113 Dsse func(childComplexity int) int
114 ID func(childComplexity int) int
115 Value func(childComplexity int) int
116 }
117
118 Query struct {
119 AttestationPolicies func(childComplexity int, after *entgql.Cursor[uuid.UUID], first *int, before *entgql.Cursor[uuid.UUID], last *int, where *ent.AttestationPolicyWhereInput) int
120 Dsses func(childComplexity int, after *entgql.Cursor[uuid.UUID], first *int, before *entgql.Cursor[uuid.UUID], last *int, orderBy *ent.DsseOrder, where *ent.DsseWhereInput) int
121 Node func(childComplexity int, id uuid.UUID) int
122 Nodes func(childComplexity int, ids []uuid.UUID) int
123 Subjects func(childComplexity int, after *entgql.Cursor[uuid.UUID], first *int, before *entgql.Cursor[uuid.UUID], last *int, orderBy *ent.SubjectOrder, where *ent.SubjectWhereInput) int
124 }
125
126 Signature struct {
127 Dsse func(childComplexity int) int
128 ID func(childComplexity int) int
129 KeyID func(childComplexity int) int
130 Signature func(childComplexity int) int
131 Timestamps func(childComplexity int) int
132 }
133
134 Statement struct {
135 AttestationCollections func(childComplexity int) int
136 Dsse func(childComplexity int) int
137 ID func(childComplexity int) int
138 Policy func(childComplexity int) int
139 Predicate func(childComplexity int) int
140 Subjects func(childComplexity int, after *entgql.Cursor[uuid.UUID], first *int, before *entgql.Cursor[uuid.UUID], last *int, orderBy *ent.SubjectOrder, where *ent.SubjectWhereInput) int
141 }
142
143 Subject struct {
144 CreatedAt func(childComplexity int) int
145 ID func(childComplexity int) int
146 Name func(childComplexity int) int
147 Statement func(childComplexity int) int
148 SubjectDigests func(childComplexity int) int
149 }
150
151 SubjectConnection struct {
152 Edges func(childComplexity int) int
153 PageInfo func(childComplexity int) int
154 TotalCount func(childComplexity int) int
155 }
156
157 SubjectDigest struct {
158 Algorithm func(childComplexity int) int
159 ID func(childComplexity int) int
160 Subject func(childComplexity int) int
161 Value func(childComplexity int) int
162 }
163
164 SubjectEdge struct {
165 Cursor func(childComplexity int) int
166 Node func(childComplexity int) int
167 }
168
169 Timestamp struct {
170 ID func(childComplexity int) int
171 Signature func(childComplexity int) int
172 Timestamp func(childComplexity int) int
173 Type func(childComplexity int) int
174 }
175 }
176
177 type QueryResolver interface {
178 Node(ctx context.Context, id uuid.UUID) (ent.Noder, error)
179 Nodes(ctx context.Context, ids []uuid.UUID) ([]ent.Noder, error)
180 AttestationPolicies(ctx context.Context, after *entgql.Cursor[uuid.UUID], first *int, before *entgql.Cursor[uuid.UUID], last *int, where *ent.AttestationPolicyWhereInput) (*ent.AttestationPolicyConnection, error)
181 Dsses(ctx context.Context, after *entgql.Cursor[uuid.UUID], first *int, before *entgql.Cursor[uuid.UUID], last *int, orderBy *ent.DsseOrder, where *ent.DsseWhereInput) (*ent.DsseConnection, error)
182 Subjects(ctx context.Context, after *entgql.Cursor[uuid.UUID], first *int, before *entgql.Cursor[uuid.UUID], last *int, orderBy *ent.SubjectOrder, where *ent.SubjectWhereInput) (*ent.SubjectConnection, error)
183 }
184
185 type executableSchema struct {
186 schema *ast.Schema
187 resolvers ResolverRoot
188 directives DirectiveRoot
189 complexity ComplexityRoot
190 }
191
192 func (e *executableSchema) Schema() *ast.Schema {
193 if e.schema != nil {
194 return e.schema
195 }
196 return parsedSchema
197 }
198
199 func (e *executableSchema) Complexity(ctx context.Context, typeName, field string, childComplexity int, rawArgs map[string]any) (int, bool) {
200 ec := executionContext{nil, e, 0, 0, nil}
201 _ = ec
202 switch typeName + "." + field {
203
204 case "Attestation.attestationCollection":
205 if e.complexity.Attestation.AttestationCollection == nil {
206 break
207 }
208
209 return e.complexity.Attestation.AttestationCollection(childComplexity), true
210
211 case "Attestation.id":
212 if e.complexity.Attestation.ID == nil {
213 break
214 }
215
216 return e.complexity.Attestation.ID(childComplexity), true
217
218 case "Attestation.type":
219 if e.complexity.Attestation.Type == nil {
220 break
221 }
222
223 return e.complexity.Attestation.Type(childComplexity), true
224
225 case "AttestationCollection.attestations":
226 if e.complexity.AttestationCollection.Attestations == nil {
227 break
228 }
229
230 return e.complexity.AttestationCollection.Attestations(childComplexity), true
231
232 case "AttestationCollection.id":
233 if e.complexity.AttestationCollection.ID == nil {
234 break
235 }
236
237 return e.complexity.AttestationCollection.ID(childComplexity), true
238
239 case "AttestationCollection.name":
240 if e.complexity.AttestationCollection.Name == nil {
241 break
242 }
243
244 return e.complexity.AttestationCollection.Name(childComplexity), true
245
246 case "AttestationCollection.statement":
247 if e.complexity.AttestationCollection.Statement == nil {
248 break
249 }
250
251 return e.complexity.AttestationCollection.Statement(childComplexity), true
252
253 case "AttestationPolicy.id":
254 if e.complexity.AttestationPolicy.ID == nil {
255 break
256 }
257
258 return e.complexity.AttestationPolicy.ID(childComplexity), true
259
260 case "AttestationPolicy.name":
261 if e.complexity.AttestationPolicy.Name == nil {
262 break
263 }
264
265 return e.complexity.AttestationPolicy.Name(childComplexity), true
266
267 case "AttestationPolicy.statement":
268 if e.complexity.AttestationPolicy.Statement == nil {
269 break
270 }
271
272 return e.complexity.AttestationPolicy.Statement(childComplexity), true
273
274 case "AttestationPolicyConnection.edges":
275 if e.complexity.AttestationPolicyConnection.Edges == nil {
276 break
277 }
278
279 return e.complexity.AttestationPolicyConnection.Edges(childComplexity), true
280
281 case "AttestationPolicyConnection.pageInfo":
282 if e.complexity.AttestationPolicyConnection.PageInfo == nil {
283 break
284 }
285
286 return e.complexity.AttestationPolicyConnection.PageInfo(childComplexity), true
287
288 case "AttestationPolicyConnection.totalCount":
289 if e.complexity.AttestationPolicyConnection.TotalCount == nil {
290 break
291 }
292
293 return e.complexity.AttestationPolicyConnection.TotalCount(childComplexity), true
294
295 case "AttestationPolicyEdge.cursor":
296 if e.complexity.AttestationPolicyEdge.Cursor == nil {
297 break
298 }
299
300 return e.complexity.AttestationPolicyEdge.Cursor(childComplexity), true
301
302 case "AttestationPolicyEdge.node":
303 if e.complexity.AttestationPolicyEdge.Node == nil {
304 break
305 }
306
307 return e.complexity.AttestationPolicyEdge.Node(childComplexity), true
308
309 case "Dsse.createdAt":
310 if e.complexity.Dsse.CreatedAt == nil {
311 break
312 }
313
314 return e.complexity.Dsse.CreatedAt(childComplexity), true
315
316 case "Dsse.gitoidSha256":
317 if e.complexity.Dsse.GitoidSha256 == nil {
318 break
319 }
320
321 return e.complexity.Dsse.GitoidSha256(childComplexity), true
322
323 case "Dsse.id":
324 if e.complexity.Dsse.ID == nil {
325 break
326 }
327
328 return e.complexity.Dsse.ID(childComplexity), true
329
330 case "Dsse.payloadDigests":
331 if e.complexity.Dsse.PayloadDigests == nil {
332 break
333 }
334
335 return e.complexity.Dsse.PayloadDigests(childComplexity), true
336
337 case "Dsse.payloadType":
338 if e.complexity.Dsse.PayloadType == nil {
339 break
340 }
341
342 return e.complexity.Dsse.PayloadType(childComplexity), true
343
344 case "Dsse.signatures":
345 if e.complexity.Dsse.Signatures == nil {
346 break
347 }
348
349 return e.complexity.Dsse.Signatures(childComplexity), true
350
351 case "Dsse.statement":
352 if e.complexity.Dsse.Statement == nil {
353 break
354 }
355
356 return e.complexity.Dsse.Statement(childComplexity), true
357
358 case "DsseConnection.edges":
359 if e.complexity.DsseConnection.Edges == nil {
360 break
361 }
362
363 return e.complexity.DsseConnection.Edges(childComplexity), true
364
365 case "DsseConnection.pageInfo":
366 if e.complexity.DsseConnection.PageInfo == nil {
367 break
368 }
369
370 return e.complexity.DsseConnection.PageInfo(childComplexity), true
371
372 case "DsseConnection.totalCount":
373 if e.complexity.DsseConnection.TotalCount == nil {
374 break
375 }
376
377 return e.complexity.DsseConnection.TotalCount(childComplexity), true
378
379 case "DsseEdge.cursor":
380 if e.complexity.DsseEdge.Cursor == nil {
381 break
382 }
383
384 return e.complexity.DsseEdge.Cursor(childComplexity), true
385
386 case "DsseEdge.node":
387 if e.complexity.DsseEdge.Node == nil {
388 break
389 }
390
391 return e.complexity.DsseEdge.Node(childComplexity), true
392
393 case "PageInfo.endCursor":
394 if e.complexity.PageInfo.EndCursor == nil {
395 break
396 }
397
398 return e.complexity.PageInfo.EndCursor(childComplexity), true
399
400 case "PageInfo.hasNextPage":
401 if e.complexity.PageInfo.HasNextPage == nil {
402 break
403 }
404
405 return e.complexity.PageInfo.HasNextPage(childComplexity), true
406
407 case "PageInfo.hasPreviousPage":
408 if e.complexity.PageInfo.HasPreviousPage == nil {
409 break
410 }
411
412 return e.complexity.PageInfo.HasPreviousPage(childComplexity), true
413
414 case "PageInfo.startCursor":
415 if e.complexity.PageInfo.StartCursor == nil {
416 break
417 }
418
419 return e.complexity.PageInfo.StartCursor(childComplexity), true
420
421 case "PayloadDigest.algorithm":
422 if e.complexity.PayloadDigest.Algorithm == nil {
423 break
424 }
425
426 return e.complexity.PayloadDigest.Algorithm(childComplexity), true
427
428 case "PayloadDigest.dsse":
429 if e.complexity.PayloadDigest.Dsse == nil {
430 break
431 }
432
433 return e.complexity.PayloadDigest.Dsse(childComplexity), true
434
435 case "PayloadDigest.id":
436 if e.complexity.PayloadDigest.ID == nil {
437 break
438 }
439
440 return e.complexity.PayloadDigest.ID(childComplexity), true
441
442 case "PayloadDigest.value":
443 if e.complexity.PayloadDigest.Value == nil {
444 break
445 }
446
447 return e.complexity.PayloadDigest.Value(childComplexity), true
448
449 case "Query.attestationPolicies":
450 if e.complexity.Query.AttestationPolicies == nil {
451 break
452 }
453
454 args, err := ec.field_Query_attestationPolicies_args(ctx, rawArgs)
455 if err != nil {
456 return 0, false
457 }
458
459 return e.complexity.Query.AttestationPolicies(childComplexity, args["after"].(*entgql.Cursor[uuid.UUID]), args["first"].(*int), args["before"].(*entgql.Cursor[uuid.UUID]), args["last"].(*int), args["where"].(*ent.AttestationPolicyWhereInput)), true
460
461 case "Query.dsses":
462 if e.complexity.Query.Dsses == nil {
463 break
464 }
465
466 args, err := ec.field_Query_dsses_args(ctx, rawArgs)
467 if err != nil {
468 return 0, false
469 }
470
471 return e.complexity.Query.Dsses(childComplexity, args["after"].(*entgql.Cursor[uuid.UUID]), args["first"].(*int), args["before"].(*entgql.Cursor[uuid.UUID]), args["last"].(*int), args["orderBy"].(*ent.DsseOrder), args["where"].(*ent.DsseWhereInput)), true
472
473 case "Query.node":
474 if e.complexity.Query.Node == nil {
475 break
476 }
477
478 args, err := ec.field_Query_node_args(ctx, rawArgs)
479 if err != nil {
480 return 0, false
481 }
482
483 return e.complexity.Query.Node(childComplexity, args["id"].(uuid.UUID)), true
484
485 case "Query.nodes":
486 if e.complexity.Query.Nodes == nil {
487 break
488 }
489
490 args, err := ec.field_Query_nodes_args(ctx, rawArgs)
491 if err != nil {
492 return 0, false
493 }
494
495 return e.complexity.Query.Nodes(childComplexity, args["ids"].([]uuid.UUID)), true
496
497 case "Query.subjects":
498 if e.complexity.Query.Subjects == nil {
499 break
500 }
501
502 args, err := ec.field_Query_subjects_args(ctx, rawArgs)
503 if err != nil {
504 return 0, false
505 }
506
507 return e.complexity.Query.Subjects(childComplexity, args["after"].(*entgql.Cursor[uuid.UUID]), args["first"].(*int), args["before"].(*entgql.Cursor[uuid.UUID]), args["last"].(*int), args["orderBy"].(*ent.SubjectOrder), args["where"].(*ent.SubjectWhereInput)), true
508
509 case "Signature.dsse":
510 if e.complexity.Signature.Dsse == nil {
511 break
512 }
513
514 return e.complexity.Signature.Dsse(childComplexity), true
515
516 case "Signature.id":
517 if e.complexity.Signature.ID == nil {
518 break
519 }
520
521 return e.complexity.Signature.ID(childComplexity), true
522
523 case "Signature.keyID":
524 if e.complexity.Signature.KeyID == nil {
525 break
526 }
527
528 return e.complexity.Signature.KeyID(childComplexity), true
529
530 case "Signature.signature":
531 if e.complexity.Signature.Signature == nil {
532 break
533 }
534
535 return e.complexity.Signature.Signature(childComplexity), true
536
537 case "Signature.timestamps":
538 if e.complexity.Signature.Timestamps == nil {
539 break
540 }
541
542 return e.complexity.Signature.Timestamps(childComplexity), true
543
544 case "Statement.attestationCollections":
545 if e.complexity.Statement.AttestationCollections == nil {
546 break
547 }
548
549 return e.complexity.Statement.AttestationCollections(childComplexity), true
550
551 case "Statement.dsse":
552 if e.complexity.Statement.Dsse == nil {
553 break
554 }
555
556 return e.complexity.Statement.Dsse(childComplexity), true
557
558 case "Statement.id":
559 if e.complexity.Statement.ID == nil {
560 break
561 }
562
563 return e.complexity.Statement.ID(childComplexity), true
564
565 case "Statement.policy":
566 if e.complexity.Statement.Policy == nil {
567 break
568 }
569
570 return e.complexity.Statement.Policy(childComplexity), true
571
572 case "Statement.predicate":
573 if e.complexity.Statement.Predicate == nil {
574 break
575 }
576
577 return e.complexity.Statement.Predicate(childComplexity), true
578
579 case "Statement.subjects":
580 if e.complexity.Statement.Subjects == nil {
581 break
582 }
583
584 args, err := ec.field_Statement_subjects_args(ctx, rawArgs)
585 if err != nil {
586 return 0, false
587 }
588
589 return e.complexity.Statement.Subjects(childComplexity, args["after"].(*entgql.Cursor[uuid.UUID]), args["first"].(*int), args["before"].(*entgql.Cursor[uuid.UUID]), args["last"].(*int), args["orderBy"].(*ent.SubjectOrder), args["where"].(*ent.SubjectWhereInput)), true
590
591 case "Subject.createdAt":
592 if e.complexity.Subject.CreatedAt == nil {
593 break
594 }
595
596 return e.complexity.Subject.CreatedAt(childComplexity), true
597
598 case "Subject.id":
599 if e.complexity.Subject.ID == nil {
600 break
601 }
602
603 return e.complexity.Subject.ID(childComplexity), true
604
605 case "Subject.name":
606 if e.complexity.Subject.Name == nil {
607 break
608 }
609
610 return e.complexity.Subject.Name(childComplexity), true
611
612 case "Subject.statement":
613 if e.complexity.Subject.Statement == nil {
614 break
615 }
616
617 return e.complexity.Subject.Statement(childComplexity), true
618
619 case "Subject.subjectDigests":
620 if e.complexity.Subject.SubjectDigests == nil {
621 break
622 }
623
624 return e.complexity.Subject.SubjectDigests(childComplexity), true
625
626 case "SubjectConnection.edges":
627 if e.complexity.SubjectConnection.Edges == nil {
628 break
629 }
630
631 return e.complexity.SubjectConnection.Edges(childComplexity), true
632
633 case "SubjectConnection.pageInfo":
634 if e.complexity.SubjectConnection.PageInfo == nil {
635 break
636 }
637
638 return e.complexity.SubjectConnection.PageInfo(childComplexity), true
639
640 case "SubjectConnection.totalCount":
641 if e.complexity.SubjectConnection.TotalCount == nil {
642 break
643 }
644
645 return e.complexity.SubjectConnection.TotalCount(childComplexity), true
646
647 case "SubjectDigest.algorithm":
648 if e.complexity.SubjectDigest.Algorithm == nil {
649 break
650 }
651
652 return e.complexity.SubjectDigest.Algorithm(childComplexity), true
653
654 case "SubjectDigest.id":
655 if e.complexity.SubjectDigest.ID == nil {
656 break
657 }
658
659 return e.complexity.SubjectDigest.ID(childComplexity), true
660
661 case "SubjectDigest.subject":
662 if e.complexity.SubjectDigest.Subject == nil {
663 break
664 }
665
666 return e.complexity.SubjectDigest.Subject(childComplexity), true
667
668 case "SubjectDigest.value":
669 if e.complexity.SubjectDigest.Value == nil {
670 break
671 }
672
673 return e.complexity.SubjectDigest.Value(childComplexity), true
674
675 case "SubjectEdge.cursor":
676 if e.complexity.SubjectEdge.Cursor == nil {
677 break
678 }
679
680 return e.complexity.SubjectEdge.Cursor(childComplexity), true
681
682 case "SubjectEdge.node":
683 if e.complexity.SubjectEdge.Node == nil {
684 break
685 }
686
687 return e.complexity.SubjectEdge.Node(childComplexity), true
688
689 case "Timestamp.id":
690 if e.complexity.Timestamp.ID == nil {
691 break
692 }
693
694 return e.complexity.Timestamp.ID(childComplexity), true
695
696 case "Timestamp.signature":
697 if e.complexity.Timestamp.Signature == nil {
698 break
699 }
700
701 return e.complexity.Timestamp.Signature(childComplexity), true
702
703 case "Timestamp.timestamp":
704 if e.complexity.Timestamp.Timestamp == nil {
705 break
706 }
707
708 return e.complexity.Timestamp.Timestamp(childComplexity), true
709
710 case "Timestamp.type":
711 if e.complexity.Timestamp.Type == nil {
712 break
713 }
714
715 return e.complexity.Timestamp.Type(childComplexity), true
716
717 }
718 return 0, false
719 }
720
721 func (e *executableSchema) Exec(ctx context.Context) graphql.ResponseHandler {
722 opCtx := graphql.GetOperationContext(ctx)
723 ec := executionContext{opCtx, e, 0, 0, make(chan graphql.DeferredResult)}
724 inputUnmarshalMap := graphql.BuildUnmarshalerMap(
725 ec.unmarshalInputAttestationCollectionWhereInput,
726 ec.unmarshalInputAttestationPolicyWhereInput,
727 ec.unmarshalInputAttestationWhereInput,
728 ec.unmarshalInputDsseOrder,
729 ec.unmarshalInputDsseWhereInput,
730 ec.unmarshalInputPayloadDigestWhereInput,
731 ec.unmarshalInputSignatureWhereInput,
732 ec.unmarshalInputStatementWhereInput,
733 ec.unmarshalInputSubjectDigestWhereInput,
734 ec.unmarshalInputSubjectOrder,
735 ec.unmarshalInputSubjectWhereInput,
736 ec.unmarshalInputTimestampWhereInput,
737 )
738 first := true
739
740 switch opCtx.Operation.Operation {
741 case ast.Query:
742 return func(ctx context.Context) *graphql.Response {
743 var response graphql.Response
744 var data graphql.Marshaler
745 if first {
746 first = false
747 ctx = graphql.WithUnmarshalerMap(ctx, inputUnmarshalMap)
748 data = ec._Query(ctx, opCtx.Operation.SelectionSet)
749 } else {
750 if atomic.LoadInt32(&ec.pendingDeferred) > 0 {
751 result := <-ec.deferredResults
752 atomic.AddInt32(&ec.pendingDeferred, -1)
753 data = result.Result
754 response.Path = result.Path
755 response.Label = result.Label
756 response.Errors = result.Errors
757 } else {
758 return nil
759 }
760 }
761 var buf bytes.Buffer
762 data.MarshalGQL(&buf)
763 response.Data = buf.Bytes()
764 if atomic.LoadInt32(&ec.deferred) > 0 {
765 hasNext := atomic.LoadInt32(&ec.pendingDeferred) > 0
766 response.HasNext = &hasNext
767 }
768
769 return &response
770 }
771
772 default:
773 return graphql.OneShot(graphql.ErrorResponse(ctx, "unsupported GraphQL operation"))
774 }
775 }
776
777 type executionContext struct {
778 *graphql.OperationContext
779 *executableSchema
780 deferred int32
781 pendingDeferred int32
782 deferredResults chan graphql.DeferredResult
783 }
784
785 func (ec *executionContext) processDeferredGroup(dg graphql.DeferredGroup) {
786 atomic.AddInt32(&ec.pendingDeferred, 1)
787 go func() {
788 ctx := graphql.WithFreshResponseContext(dg.Context)
789 dg.FieldSet.Dispatch(ctx)
790 ds := graphql.DeferredResult{
791 Path: dg.Path,
792 Label: dg.Label,
793 Result: dg.FieldSet,
794 Errors: graphql.GetErrors(ctx),
795 }
796 // null fields should bubble up
797 if dg.FieldSet.Invalids > 0 {
798 ds.Result = graphql.Null
799 }
800 ec.deferredResults <- ds
801 }()
802 }
803
804 func (ec *executionContext) introspectSchema() (*introspection.Schema, error) {
805 if ec.DisableIntrospection {
806 return nil, errors.New("introspection disabled")
807 }
808 return introspection.WrapSchema(ec.Schema()), nil
809 }
810
811 func (ec *executionContext) introspectType(name string) (*introspection.Type, error) {
812 if ec.DisableIntrospection {
813 return nil, errors.New("introspection disabled")
814 }
815 return introspection.WrapTypeFromDef(ec.Schema(), ec.Schema().Types[name]), nil
816 }
817
818 //go:embed "archivista.graphql" "ent.graphql"
819 var sourcesFS embed.FS
820
821 func sourceData(filename string) string {
822 data, err := sourcesFS.ReadFile(filename)
823 if err != nil {
824 panic(fmt.Sprintf("codegen problem: %s not available", filename))
825 }
826 return string(data)
827 }
828
829 var sources = []*ast.Source{
830 {Name: "archivista.graphql", Input: sourceData("archivista.graphql"), BuiltIn: false},
831 {Name: "ent.graphql", Input: sourceData("ent.graphql"), BuiltIn: false},
832 }
833 var parsedSchema = gqlparser.MustLoadSchema(sources...)
834
835 // endregion ************************** generated!.gotpl **************************
836
837 // region ***************************** args.gotpl *****************************
838
839 func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
840 var err error
841 args := map[string]any{}
842 arg0, err := graphql.ProcessArgField(ctx, rawArgs, "name", ec.unmarshalNString2string)
843 if err != nil {
844 return nil, err
845 }
846 args["name"] = arg0
847 return args, nil
848 }
849
850 func (ec *executionContext) field_Query_attestationPolicies_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
851 var err error
852 args := map[string]any{}
853 arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor)
854 if err != nil {
855 return nil, err
856 }
857 args["after"] = arg0
858 arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", ec.unmarshalOInt2ᚖint)
859 if err != nil {
860 return nil, err
861 }
862 args["first"] = arg1
863 arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor)
864 if err != nil {
865 return nil, err
866 }
867 args["before"] = arg2
868 arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", ec.unmarshalOInt2ᚖint)
869 if err != nil {
870 return nil, err
871 }
872 args["last"] = arg3
873 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "where", ec.unmarshalOAttestationPolicyWhereInput2ᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐAttestationPolicyWhereInput)
874 if err != nil {
875 return nil, err
876 }
877 args["where"] = arg4
878 return args, nil
879 }
880
881 func (ec *executionContext) field_Query_dsses_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
882 var err error
883 args := map[string]any{}
884 arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor)
885 if err != nil {
886 return nil, err
887 }
888 args["after"] = arg0
889 arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", ec.unmarshalOInt2ᚖint)
890 if err != nil {
891 return nil, err
892 }
893 args["first"] = arg1
894 arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor)
895 if err != nil {
896 return nil, err
897 }
898 args["before"] = arg2
899 arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", ec.unmarshalOInt2ᚖint)
900 if err != nil {
901 return nil, err
902 }
903 args["last"] = arg3
904 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", ec.unmarshalODsseOrder2ᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐDsseOrder)
905 if err != nil {
906 return nil, err
907 }
908 args["orderBy"] = arg4
909 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", ec.unmarshalODsseWhereInput2ᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐDsseWhereInput)
910 if err != nil {
911 return nil, err
912 }
913 args["where"] = arg5
914 return args, nil
915 }
916
917 func (ec *executionContext) field_Query_node_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
918 var err error
919 args := map[string]any{}
920 arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", ec.unmarshalNID2githubᚗcomᚋgoogleᚋuuidᚐUUID)
921 if err != nil {
922 return nil, err
923 }
924 args["id"] = arg0
925 return args, nil
926 }
927
928 func (ec *executionContext) field_Query_nodes_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
929 var err error
930 args := map[string]any{}
931 arg0, err := graphql.ProcessArgField(ctx, rawArgs, "ids", ec.unmarshalNID2ᚕgithubᚗcomᚋgoogleᚋuuidᚐUUIDᚄ)
932 if err != nil {
933 return nil, err
934 }
935 args["ids"] = arg0
936 return args, nil
937 }
938
939 func (ec *executionContext) field_Query_subjects_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
940 var err error
941 args := map[string]any{}
942 arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor)
943 if err != nil {
944 return nil, err
945 }
946 args["after"] = arg0
947 arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", ec.unmarshalOInt2ᚖint)
948 if err != nil {
949 return nil, err
950 }
951 args["first"] = arg1
952 arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor)
953 if err != nil {
954 return nil, err
955 }
956 args["before"] = arg2
957 arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", ec.unmarshalOInt2ᚖint)
958 if err != nil {
959 return nil, err
960 }
961 args["last"] = arg3
962 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", ec.unmarshalOSubjectOrder2ᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐSubjectOrder)
963 if err != nil {
964 return nil, err
965 }
966 args["orderBy"] = arg4
967 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", ec.unmarshalOSubjectWhereInput2ᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐSubjectWhereInput)
968 if err != nil {
969 return nil, err
970 }
971 args["where"] = arg5
972 return args, nil
973 }
974
975 func (ec *executionContext) field_Statement_subjects_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
976 var err error
977 args := map[string]any{}
978 arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor)
979 if err != nil {
980 return nil, err
981 }
982 args["after"] = arg0
983 arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", ec.unmarshalOInt2ᚖint)
984 if err != nil {
985 return nil, err
986 }
987 args["first"] = arg1
988 arg2, err := graphql.ProcessArgField(ctx, rawArgs, "before", ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor)
989 if err != nil {
990 return nil, err
991 }
992 args["before"] = arg2
993 arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", ec.unmarshalOInt2ᚖint)
994 if err != nil {
995 return nil, err
996 }
997 args["last"] = arg3
998 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", ec.unmarshalOSubjectOrder2ᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐSubjectOrder)
999 if err != nil {
1000 return nil, err
1001 }
1002 args["orderBy"] = arg4
1003 arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", ec.unmarshalOSubjectWhereInput2ᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐSubjectWhereInput)
1004 if err != nil {
1005 return nil, err
1006 }
1007 args["where"] = arg5
1008 return args, nil
1009 }
1010
1011 func (ec *executionContext) field___Directive_args_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
1012 var err error
1013 args := map[string]any{}
1014 arg0, err := graphql.ProcessArgField(ctx, rawArgs, "includeDeprecated", ec.unmarshalOBoolean2ᚖbool)
1015 if err != nil {
1016 return nil, err
1017 }
1018 args["includeDeprecated"] = arg0
1019 return args, nil
1020 }
1021
1022 func (ec *executionContext) field___Field_args_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
1023 var err error
1024 args := map[string]any{}
1025 arg0, err := graphql.ProcessArgField(ctx, rawArgs, "includeDeprecated", ec.unmarshalOBoolean2ᚖbool)
1026 if err != nil {
1027 return nil, err
1028 }
1029 args["includeDeprecated"] = arg0
1030 return args, nil
1031 }
1032
1033 func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
1034 var err error
1035 args := map[string]any{}
1036 arg0, err := graphql.ProcessArgField(ctx, rawArgs, "includeDeprecated", ec.unmarshalOBoolean2bool)
1037 if err != nil {
1038 return nil, err
1039 }
1040 args["includeDeprecated"] = arg0
1041 return args, nil
1042 }
1043
1044 func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
1045 var err error
1046 args := map[string]any{}
1047 arg0, err := graphql.ProcessArgField(ctx, rawArgs, "includeDeprecated", ec.unmarshalOBoolean2bool)
1048 if err != nil {
1049 return nil, err
1050 }
1051 args["includeDeprecated"] = arg0
1052 return args, nil
1053 }
1054
1055 // endregion ***************************** args.gotpl *****************************
1056
1057 // region ************************** directives.gotpl **************************
1058
1059 // endregion ************************** directives.gotpl **************************
1060
1061 // region **************************** field.gotpl *****************************
1062
1063 func (ec *executionContext) _Attestation_id(ctx context.Context, field graphql.CollectedField, obj *ent.Attestation) (ret graphql.Marshaler) {
1064 fc, err := ec.fieldContext_Attestation_id(ctx, field)
1065 if err != nil {
1066 return graphql.Null
1067 }
1068 ctx = graphql.WithFieldContext(ctx, fc)
1069 defer func() {
1070 if r := recover(); r != nil {
1071 ec.Error(ctx, ec.Recover(ctx, r))
1072 ret = graphql.Null
1073 }
1074 }()
1075 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
1076 ctx = rctx // use context from middleware stack in children
1077 return obj.ID, nil
1078 })
1079 if err != nil {
1080 ec.Error(ctx, err)
1081 return graphql.Null
1082 }
1083 if resTmp == nil {
1084 if !graphql.HasFieldError(ctx, fc) {
1085 ec.Errorf(ctx, "must not be null")
1086 }
1087 return graphql.Null
1088 }
1089 res := resTmp.(uuid.UUID)
1090 fc.Result = res
1091 return ec.marshalNID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res)
1092 }
1093
1094 func (ec *executionContext) fieldContext_Attestation_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
1095 fc = &graphql.FieldContext{
1096 Object: "Attestation",
1097 Field: field,
1098 IsMethod: false,
1099 IsResolver: false,
1100 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
1101 return nil, errors.New("field of type ID does not have child fields")
1102 },
1103 }
1104 return fc, nil
1105 }
1106
1107 func (ec *executionContext) _Attestation_type(ctx context.Context, field graphql.CollectedField, obj *ent.Attestation) (ret graphql.Marshaler) {
1108 fc, err := ec.fieldContext_Attestation_type(ctx, field)
1109 if err != nil {
1110 return graphql.Null
1111 }
1112 ctx = graphql.WithFieldContext(ctx, fc)
1113 defer func() {
1114 if r := recover(); r != nil {
1115 ec.Error(ctx, ec.Recover(ctx, r))
1116 ret = graphql.Null
1117 }
1118 }()
1119 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
1120 ctx = rctx // use context from middleware stack in children
1121 return obj.Type, nil
1122 })
1123 if err != nil {
1124 ec.Error(ctx, err)
1125 return graphql.Null
1126 }
1127 if resTmp == nil {
1128 if !graphql.HasFieldError(ctx, fc) {
1129 ec.Errorf(ctx, "must not be null")
1130 }
1131 return graphql.Null
1132 }
1133 res := resTmp.(string)
1134 fc.Result = res
1135 return ec.marshalNString2string(ctx, field.Selections, res)
1136 }
1137
1138 func (ec *executionContext) fieldContext_Attestation_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
1139 fc = &graphql.FieldContext{
1140 Object: "Attestation",
1141 Field: field,
1142 IsMethod: false,
1143 IsResolver: false,
1144 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
1145 return nil, errors.New("field of type String does not have child fields")
1146 },
1147 }
1148 return fc, nil
1149 }
1150
1151 func (ec *executionContext) _Attestation_attestationCollection(ctx context.Context, field graphql.CollectedField, obj *ent.Attestation) (ret graphql.Marshaler) {
1152 fc, err := ec.fieldContext_Attestation_attestationCollection(ctx, field)
1153 if err != nil {
1154 return graphql.Null
1155 }
1156 ctx = graphql.WithFieldContext(ctx, fc)
1157 defer func() {
1158 if r := recover(); r != nil {
1159 ec.Error(ctx, ec.Recover(ctx, r))
1160 ret = graphql.Null
1161 }
1162 }()
1163 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
1164 ctx = rctx // use context from middleware stack in children
1165 return obj.AttestationCollection(ctx)
1166 })
1167 if err != nil {
1168 ec.Error(ctx, err)
1169 return graphql.Null
1170 }
1171 if resTmp == nil {
1172 if !graphql.HasFieldError(ctx, fc) {
1173 ec.Errorf(ctx, "must not be null")
1174 }
1175 return graphql.Null
1176 }
1177 res := resTmp.(*ent.AttestationCollection)
1178 fc.Result = res
1179 return ec.marshalNAttestationCollection2ᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐAttestationCollection(ctx, field.Selections, res)
1180 }
1181
1182 func (ec *executionContext) fieldContext_Attestation_attestationCollection(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
1183 fc = &graphql.FieldContext{
1184 Object: "Attestation",
1185 Field: field,
1186 IsMethod: true,
1187 IsResolver: false,
1188 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
1189 switch field.Name {
1190 case "id":
1191 return ec.fieldContext_AttestationCollection_id(ctx, field)
1192 case "name":
1193 return ec.fieldContext_AttestationCollection_name(ctx, field)
1194 case "attestations":
1195 return ec.fieldContext_AttestationCollection_attestations(ctx, field)
1196 case "statement":
1197 return ec.fieldContext_AttestationCollection_statement(ctx, field)
1198 }
1199 return nil, fmt.Errorf("no field named %q was found under type AttestationCollection", field.Name)
1200 },
1201 }
1202 return fc, nil
1203 }
1204
1205 func (ec *executionContext) _AttestationCollection_id(ctx context.Context, field graphql.CollectedField, obj *ent.AttestationCollection) (ret graphql.Marshaler) {
1206 fc, err := ec.fieldContext_AttestationCollection_id(ctx, field)
1207 if err != nil {
1208 return graphql.Null
1209 }
1210 ctx = graphql.WithFieldContext(ctx, fc)
1211 defer func() {
1212 if r := recover(); r != nil {
1213 ec.Error(ctx, ec.Recover(ctx, r))
1214 ret = graphql.Null
1215 }
1216 }()
1217 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
1218 ctx = rctx // use context from middleware stack in children
1219 return obj.ID, nil
1220 })
1221 if err != nil {
1222 ec.Error(ctx, err)
1223 return graphql.Null
1224 }
1225 if resTmp == nil {
1226 if !graphql.HasFieldError(ctx, fc) {
1227 ec.Errorf(ctx, "must not be null")
1228 }
1229 return graphql.Null
1230 }
1231 res := resTmp.(uuid.UUID)
1232 fc.Result = res
1233 return ec.marshalNID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res)
1234 }
1235
1236 func (ec *executionContext) fieldContext_AttestationCollection_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
1237 fc = &graphql.FieldContext{
1238 Object: "AttestationCollection",
1239 Field: field,
1240 IsMethod: false,
1241 IsResolver: false,
1242 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
1243 return nil, errors.New("field of type ID does not have child fields")
1244 },
1245 }
1246 return fc, nil
1247 }
1248
1249 func (ec *executionContext) _AttestationCollection_name(ctx context.Context, field graphql.CollectedField, obj *ent.AttestationCollection) (ret graphql.Marshaler) {
1250 fc, err := ec.fieldContext_AttestationCollection_name(ctx, field)
1251 if err != nil {
1252 return graphql.Null
1253 }
1254 ctx = graphql.WithFieldContext(ctx, fc)
1255 defer func() {
1256 if r := recover(); r != nil {
1257 ec.Error(ctx, ec.Recover(ctx, r))
1258 ret = graphql.Null
1259 }
1260 }()
1261 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
1262 ctx = rctx // use context from middleware stack in children
1263 return obj.Name, nil
1264 })
1265 if err != nil {
1266 ec.Error(ctx, err)
1267 return graphql.Null
1268 }
1269 if resTmp == nil {
1270 if !graphql.HasFieldError(ctx, fc) {
1271 ec.Errorf(ctx, "must not be null")
1272 }
1273 return graphql.Null
1274 }
1275 res := resTmp.(string)
1276 fc.Result = res
1277 return ec.marshalNString2string(ctx, field.Selections, res)
1278 }
1279
1280 func (ec *executionContext) fieldContext_AttestationCollection_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
1281 fc = &graphql.FieldContext{
1282 Object: "AttestationCollection",
1283 Field: field,
1284 IsMethod: false,
1285 IsResolver: false,
1286 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
1287 return nil, errors.New("field of type String does not have child fields")
1288 },
1289 }
1290 return fc, nil
1291 }
1292
1293 func (ec *executionContext) _AttestationCollection_attestations(ctx context.Context, field graphql.CollectedField, obj *ent.AttestationCollection) (ret graphql.Marshaler) {
1294 fc, err := ec.fieldContext_AttestationCollection_attestations(ctx, field)
1295 if err != nil {
1296 return graphql.Null
1297 }
1298 ctx = graphql.WithFieldContext(ctx, fc)
1299 defer func() {
1300 if r := recover(); r != nil {
1301 ec.Error(ctx, ec.Recover(ctx, r))
1302 ret = graphql.Null
1303 }
1304 }()
1305 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
1306 ctx = rctx // use context from middleware stack in children
1307 return obj.Attestations(ctx)
1308 })
1309 if err != nil {
1310 ec.Error(ctx, err)
1311 return graphql.Null
1312 }
1313 if resTmp == nil {
1314 return graphql.Null
1315 }
1316 res := resTmp.([]*ent.Attestation)
1317 fc.Result = res
1318 return ec.marshalOAttestation2ᚕᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐAttestationᚄ(ctx, field.Selections, res)
1319 }
1320
1321 func (ec *executionContext) fieldContext_AttestationCollection_attestations(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
1322 fc = &graphql.FieldContext{
1323 Object: "AttestationCollection",
1324 Field: field,
1325 IsMethod: true,
1326 IsResolver: false,
1327 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
1328 switch field.Name {
1329 case "id":
1330 return ec.fieldContext_Attestation_id(ctx, field)
1331 case "type":
1332 return ec.fieldContext_Attestation_type(ctx, field)
1333 case "attestationCollection":
1334 return ec.fieldContext_Attestation_attestationCollection(ctx, field)
1335 }
1336 return nil, fmt.Errorf("no field named %q was found under type Attestation", field.Name)
1337 },
1338 }
1339 return fc, nil
1340 }
1341
1342 func (ec *executionContext) _AttestationCollection_statement(ctx context.Context, field graphql.CollectedField, obj *ent.AttestationCollection) (ret graphql.Marshaler) {
1343 fc, err := ec.fieldContext_AttestationCollection_statement(ctx, field)
1344 if err != nil {
1345 return graphql.Null
1346 }
1347 ctx = graphql.WithFieldContext(ctx, fc)
1348 defer func() {
1349 if r := recover(); r != nil {
1350 ec.Error(ctx, ec.Recover(ctx, r))
1351 ret = graphql.Null
1352 }
1353 }()
1354 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
1355 ctx = rctx // use context from middleware stack in children
1356 return obj.Statement(ctx)
1357 })
1358 if err != nil {
1359 ec.Error(ctx, err)
1360 return graphql.Null
1361 }
1362 if resTmp == nil {
1363 if !graphql.HasFieldError(ctx, fc) {
1364 ec.Errorf(ctx, "must not be null")
1365 }
1366 return graphql.Null
1367 }
1368 res := resTmp.(*ent.Statement)
1369 fc.Result = res
1370 return ec.marshalNStatement2ᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐStatement(ctx, field.Selections, res)
1371 }
1372
1373 func (ec *executionContext) fieldContext_AttestationCollection_statement(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
1374 fc = &graphql.FieldContext{
1375 Object: "AttestationCollection",
1376 Field: field,
1377 IsMethod: true,
1378 IsResolver: false,
1379 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
1380 switch field.Name {
1381 case "id":
1382 return ec.fieldContext_Statement_id(ctx, field)
1383 case "predicate":
1384 return ec.fieldContext_Statement_predicate(ctx, field)
1385 case "subjects":
1386 return ec.fieldContext_Statement_subjects(ctx, field)
1387 case "policy":
1388 return ec.fieldContext_Statement_policy(ctx, field)
1389 case "attestationCollections":
1390 return ec.fieldContext_Statement_attestationCollections(ctx, field)
1391 case "dsse":
1392 return ec.fieldContext_Statement_dsse(ctx, field)
1393 }
1394 return nil, fmt.Errorf("no field named %q was found under type Statement", field.Name)
1395 },
1396 }
1397 return fc, nil
1398 }
1399
1400 func (ec *executionContext) _AttestationPolicy_id(ctx context.Context, field graphql.CollectedField, obj *ent.AttestationPolicy) (ret graphql.Marshaler) {
1401 fc, err := ec.fieldContext_AttestationPolicy_id(ctx, field)
1402 if err != nil {
1403 return graphql.Null
1404 }
1405 ctx = graphql.WithFieldContext(ctx, fc)
1406 defer func() {
1407 if r := recover(); r != nil {
1408 ec.Error(ctx, ec.Recover(ctx, r))
1409 ret = graphql.Null
1410 }
1411 }()
1412 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
1413 ctx = rctx // use context from middleware stack in children
1414 return obj.ID, nil
1415 })
1416 if err != nil {
1417 ec.Error(ctx, err)
1418 return graphql.Null
1419 }
1420 if resTmp == nil {
1421 if !graphql.HasFieldError(ctx, fc) {
1422 ec.Errorf(ctx, "must not be null")
1423 }
1424 return graphql.Null
1425 }
1426 res := resTmp.(uuid.UUID)
1427 fc.Result = res
1428 return ec.marshalNID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res)
1429 }
1430
1431 func (ec *executionContext) fieldContext_AttestationPolicy_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
1432 fc = &graphql.FieldContext{
1433 Object: "AttestationPolicy",
1434 Field: field,
1435 IsMethod: false,
1436 IsResolver: false,
1437 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
1438 return nil, errors.New("field of type ID does not have child fields")
1439 },
1440 }
1441 return fc, nil
1442 }
1443
1444 func (ec *executionContext) _AttestationPolicy_name(ctx context.Context, field graphql.CollectedField, obj *ent.AttestationPolicy) (ret graphql.Marshaler) {
1445 fc, err := ec.fieldContext_AttestationPolicy_name(ctx, field)
1446 if err != nil {
1447 return graphql.Null
1448 }
1449 ctx = graphql.WithFieldContext(ctx, fc)
1450 defer func() {
1451 if r := recover(); r != nil {
1452 ec.Error(ctx, ec.Recover(ctx, r))
1453 ret = graphql.Null
1454 }
1455 }()
1456 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
1457 ctx = rctx // use context from middleware stack in children
1458 return obj.Name, nil
1459 })
1460 if err != nil {
1461 ec.Error(ctx, err)
1462 return graphql.Null
1463 }
1464 if resTmp == nil {
1465 if !graphql.HasFieldError(ctx, fc) {
1466 ec.Errorf(ctx, "must not be null")
1467 }
1468 return graphql.Null
1469 }
1470 res := resTmp.(string)
1471 fc.Result = res
1472 return ec.marshalNString2string(ctx, field.Selections, res)
1473 }
1474
1475 func (ec *executionContext) fieldContext_AttestationPolicy_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
1476 fc = &graphql.FieldContext{
1477 Object: "AttestationPolicy",
1478 Field: field,
1479 IsMethod: false,
1480 IsResolver: false,
1481 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
1482 return nil, errors.New("field of type String does not have child fields")
1483 },
1484 }
1485 return fc, nil
1486 }
1487
1488 func (ec *executionContext) _AttestationPolicy_statement(ctx context.Context, field graphql.CollectedField, obj *ent.AttestationPolicy) (ret graphql.Marshaler) {
1489 fc, err := ec.fieldContext_AttestationPolicy_statement(ctx, field)
1490 if err != nil {
1491 return graphql.Null
1492 }
1493 ctx = graphql.WithFieldContext(ctx, fc)
1494 defer func() {
1495 if r := recover(); r != nil {
1496 ec.Error(ctx, ec.Recover(ctx, r))
1497 ret = graphql.Null
1498 }
1499 }()
1500 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
1501 ctx = rctx // use context from middleware stack in children
1502 return obj.Statement(ctx)
1503 })
1504 if err != nil {
1505 ec.Error(ctx, err)
1506 return graphql.Null
1507 }
1508 if resTmp == nil {
1509 return graphql.Null
1510 }
1511 res := resTmp.(*ent.Statement)
1512 fc.Result = res
1513 return ec.marshalOStatement2ᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐStatement(ctx, field.Selections, res)
1514 }
1515
1516 func (ec *executionContext) fieldContext_AttestationPolicy_statement(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
1517 fc = &graphql.FieldContext{
1518 Object: "AttestationPolicy",
1519 Field: field,
1520 IsMethod: true,
1521 IsResolver: false,
1522 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
1523 switch field.Name {
1524 case "id":
1525 return ec.fieldContext_Statement_id(ctx, field)
1526 case "predicate":
1527 return ec.fieldContext_Statement_predicate(ctx, field)
1528 case "subjects":
1529 return ec.fieldContext_Statement_subjects(ctx, field)
1530 case "policy":
1531 return ec.fieldContext_Statement_policy(ctx, field)
1532 case "attestationCollections":
1533 return ec.fieldContext_Statement_attestationCollections(ctx, field)
1534 case "dsse":
1535 return ec.fieldContext_Statement_dsse(ctx, field)
1536 }
1537 return nil, fmt.Errorf("no field named %q was found under type Statement", field.Name)
1538 },
1539 }
1540 return fc, nil
1541 }
1542
1543 func (ec *executionContext) _AttestationPolicyConnection_edges(ctx context.Context, field graphql.CollectedField, obj *ent.AttestationPolicyConnection) (ret graphql.Marshaler) {
1544 fc, err := ec.fieldContext_AttestationPolicyConnection_edges(ctx, field)
1545 if err != nil {
1546 return graphql.Null
1547 }
1548 ctx = graphql.WithFieldContext(ctx, fc)
1549 defer func() {
1550 if r := recover(); r != nil {
1551 ec.Error(ctx, ec.Recover(ctx, r))
1552 ret = graphql.Null
1553 }
1554 }()
1555 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
1556 ctx = rctx // use context from middleware stack in children
1557 return obj.Edges, nil
1558 })
1559 if err != nil {
1560 ec.Error(ctx, err)
1561 return graphql.Null
1562 }
1563 if resTmp == nil {
1564 return graphql.Null
1565 }
1566 res := resTmp.([]*ent.AttestationPolicyEdge)
1567 fc.Result = res
1568 return ec.marshalOAttestationPolicyEdge2ᚕᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐAttestationPolicyEdge(ctx, field.Selections, res)
1569 }
1570
1571 func (ec *executionContext) fieldContext_AttestationPolicyConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
1572 fc = &graphql.FieldContext{
1573 Object: "AttestationPolicyConnection",
1574 Field: field,
1575 IsMethod: false,
1576 IsResolver: false,
1577 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
1578 switch field.Name {
1579 case "node":
1580 return ec.fieldContext_AttestationPolicyEdge_node(ctx, field)
1581 case "cursor":
1582 return ec.fieldContext_AttestationPolicyEdge_cursor(ctx, field)
1583 }
1584 return nil, fmt.Errorf("no field named %q was found under type AttestationPolicyEdge", field.Name)
1585 },
1586 }
1587 return fc, nil
1588 }
1589
1590 func (ec *executionContext) _AttestationPolicyConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *ent.AttestationPolicyConnection) (ret graphql.Marshaler) {
1591 fc, err := ec.fieldContext_AttestationPolicyConnection_pageInfo(ctx, field)
1592 if err != nil {
1593 return graphql.Null
1594 }
1595 ctx = graphql.WithFieldContext(ctx, fc)
1596 defer func() {
1597 if r := recover(); r != nil {
1598 ec.Error(ctx, ec.Recover(ctx, r))
1599 ret = graphql.Null
1600 }
1601 }()
1602 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
1603 ctx = rctx // use context from middleware stack in children
1604 return obj.PageInfo, nil
1605 })
1606 if err != nil {
1607 ec.Error(ctx, err)
1608 return graphql.Null
1609 }
1610 if resTmp == nil {
1611 if !graphql.HasFieldError(ctx, fc) {
1612 ec.Errorf(ctx, "must not be null")
1613 }
1614 return graphql.Null
1615 }
1616 res := resTmp.(entgql.PageInfo[uuid.UUID])
1617 fc.Result = res
1618 return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res)
1619 }
1620
1621 func (ec *executionContext) fieldContext_AttestationPolicyConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
1622 fc = &graphql.FieldContext{
1623 Object: "AttestationPolicyConnection",
1624 Field: field,
1625 IsMethod: false,
1626 IsResolver: false,
1627 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
1628 switch field.Name {
1629 case "hasNextPage":
1630 return ec.fieldContext_PageInfo_hasNextPage(ctx, field)
1631 case "hasPreviousPage":
1632 return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field)
1633 case "startCursor":
1634 return ec.fieldContext_PageInfo_startCursor(ctx, field)
1635 case "endCursor":
1636 return ec.fieldContext_PageInfo_endCursor(ctx, field)
1637 }
1638 return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name)
1639 },
1640 }
1641 return fc, nil
1642 }
1643
1644 func (ec *executionContext) _AttestationPolicyConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *ent.AttestationPolicyConnection) (ret graphql.Marshaler) {
1645 fc, err := ec.fieldContext_AttestationPolicyConnection_totalCount(ctx, field)
1646 if err != nil {
1647 return graphql.Null
1648 }
1649 ctx = graphql.WithFieldContext(ctx, fc)
1650 defer func() {
1651 if r := recover(); r != nil {
1652 ec.Error(ctx, ec.Recover(ctx, r))
1653 ret = graphql.Null
1654 }
1655 }()
1656 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
1657 ctx = rctx // use context from middleware stack in children
1658 return obj.TotalCount, nil
1659 })
1660 if err != nil {
1661 ec.Error(ctx, err)
1662 return graphql.Null
1663 }
1664 if resTmp == nil {
1665 if !graphql.HasFieldError(ctx, fc) {
1666 ec.Errorf(ctx, "must not be null")
1667 }
1668 return graphql.Null
1669 }
1670 res := resTmp.(int)
1671 fc.Result = res
1672 return ec.marshalNInt2int(ctx, field.Selections, res)
1673 }
1674
1675 func (ec *executionContext) fieldContext_AttestationPolicyConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
1676 fc = &graphql.FieldContext{
1677 Object: "AttestationPolicyConnection",
1678 Field: field,
1679 IsMethod: false,
1680 IsResolver: false,
1681 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
1682 return nil, errors.New("field of type Int does not have child fields")
1683 },
1684 }
1685 return fc, nil
1686 }
1687
1688 func (ec *executionContext) _AttestationPolicyEdge_node(ctx context.Context, field graphql.CollectedField, obj *ent.AttestationPolicyEdge) (ret graphql.Marshaler) {
1689 fc, err := ec.fieldContext_AttestationPolicyEdge_node(ctx, field)
1690 if err != nil {
1691 return graphql.Null
1692 }
1693 ctx = graphql.WithFieldContext(ctx, fc)
1694 defer func() {
1695 if r := recover(); r != nil {
1696 ec.Error(ctx, ec.Recover(ctx, r))
1697 ret = graphql.Null
1698 }
1699 }()
1700 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
1701 ctx = rctx // use context from middleware stack in children
1702 return obj.Node, nil
1703 })
1704 if err != nil {
1705 ec.Error(ctx, err)
1706 return graphql.Null
1707 }
1708 if resTmp == nil {
1709 return graphql.Null
1710 }
1711 res := resTmp.(*ent.AttestationPolicy)
1712 fc.Result = res
1713 return ec.marshalOAttestationPolicy2ᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐAttestationPolicy(ctx, field.Selections, res)
1714 }
1715
1716 func (ec *executionContext) fieldContext_AttestationPolicyEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
1717 fc = &graphql.FieldContext{
1718 Object: "AttestationPolicyEdge",
1719 Field: field,
1720 IsMethod: false,
1721 IsResolver: false,
1722 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
1723 switch field.Name {
1724 case "id":
1725 return ec.fieldContext_AttestationPolicy_id(ctx, field)
1726 case "name":
1727 return ec.fieldContext_AttestationPolicy_name(ctx, field)
1728 case "statement":
1729 return ec.fieldContext_AttestationPolicy_statement(ctx, field)
1730 }
1731 return nil, fmt.Errorf("no field named %q was found under type AttestationPolicy", field.Name)
1732 },
1733 }
1734 return fc, nil
1735 }
1736
1737 func (ec *executionContext) _AttestationPolicyEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *ent.AttestationPolicyEdge) (ret graphql.Marshaler) {
1738 fc, err := ec.fieldContext_AttestationPolicyEdge_cursor(ctx, field)
1739 if err != nil {
1740 return graphql.Null
1741 }
1742 ctx = graphql.WithFieldContext(ctx, fc)
1743 defer func() {
1744 if r := recover(); r != nil {
1745 ec.Error(ctx, ec.Recover(ctx, r))
1746 ret = graphql.Null
1747 }
1748 }()
1749 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
1750 ctx = rctx // use context from middleware stack in children
1751 return obj.Cursor, nil
1752 })
1753 if err != nil {
1754 ec.Error(ctx, err)
1755 return graphql.Null
1756 }
1757 if resTmp == nil {
1758 if !graphql.HasFieldError(ctx, fc) {
1759 ec.Errorf(ctx, "must not be null")
1760 }
1761 return graphql.Null
1762 }
1763 res := resTmp.(entgql.Cursor[uuid.UUID])
1764 fc.Result = res
1765 return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res)
1766 }
1767
1768 func (ec *executionContext) fieldContext_AttestationPolicyEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
1769 fc = &graphql.FieldContext{
1770 Object: "AttestationPolicyEdge",
1771 Field: field,
1772 IsMethod: false,
1773 IsResolver: false,
1774 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
1775 return nil, errors.New("field of type Cursor does not have child fields")
1776 },
1777 }
1778 return fc, nil
1779 }
1780
1781 func (ec *executionContext) _Dsse_id(ctx context.Context, field graphql.CollectedField, obj *ent.Dsse) (ret graphql.Marshaler) {
1782 fc, err := ec.fieldContext_Dsse_id(ctx, field)
1783 if err != nil {
1784 return graphql.Null
1785 }
1786 ctx = graphql.WithFieldContext(ctx, fc)
1787 defer func() {
1788 if r := recover(); r != nil {
1789 ec.Error(ctx, ec.Recover(ctx, r))
1790 ret = graphql.Null
1791 }
1792 }()
1793 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
1794 ctx = rctx // use context from middleware stack in children
1795 return obj.ID, nil
1796 })
1797 if err != nil {
1798 ec.Error(ctx, err)
1799 return graphql.Null
1800 }
1801 if resTmp == nil {
1802 if !graphql.HasFieldError(ctx, fc) {
1803 ec.Errorf(ctx, "must not be null")
1804 }
1805 return graphql.Null
1806 }
1807 res := resTmp.(uuid.UUID)
1808 fc.Result = res
1809 return ec.marshalNID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res)
1810 }
1811
1812 func (ec *executionContext) fieldContext_Dsse_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
1813 fc = &graphql.FieldContext{
1814 Object: "Dsse",
1815 Field: field,
1816 IsMethod: false,
1817 IsResolver: false,
1818 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
1819 return nil, errors.New("field of type ID does not have child fields")
1820 },
1821 }
1822 return fc, nil
1823 }
1824
1825 func (ec *executionContext) _Dsse_createdAt(ctx context.Context, field graphql.CollectedField, obj *ent.Dsse) (ret graphql.Marshaler) {
1826 fc, err := ec.fieldContext_Dsse_createdAt(ctx, field)
1827 if err != nil {
1828 return graphql.Null
1829 }
1830 ctx = graphql.WithFieldContext(ctx, fc)
1831 defer func() {
1832 if r := recover(); r != nil {
1833 ec.Error(ctx, ec.Recover(ctx, r))
1834 ret = graphql.Null
1835 }
1836 }()
1837 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
1838 ctx = rctx // use context from middleware stack in children
1839 return obj.CreatedAt, nil
1840 })
1841 if err != nil {
1842 ec.Error(ctx, err)
1843 return graphql.Null
1844 }
1845 if resTmp == nil {
1846 return graphql.Null
1847 }
1848 res := resTmp.(*time.Time)
1849 fc.Result = res
1850 return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res)
1851 }
1852
1853 func (ec *executionContext) fieldContext_Dsse_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
1854 fc = &graphql.FieldContext{
1855 Object: "Dsse",
1856 Field: field,
1857 IsMethod: false,
1858 IsResolver: false,
1859 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
1860 return nil, errors.New("field of type Time does not have child fields")
1861 },
1862 }
1863 return fc, nil
1864 }
1865
1866 func (ec *executionContext) _Dsse_gitoidSha256(ctx context.Context, field graphql.CollectedField, obj *ent.Dsse) (ret graphql.Marshaler) {
1867 fc, err := ec.fieldContext_Dsse_gitoidSha256(ctx, field)
1868 if err != nil {
1869 return graphql.Null
1870 }
1871 ctx = graphql.WithFieldContext(ctx, fc)
1872 defer func() {
1873 if r := recover(); r != nil {
1874 ec.Error(ctx, ec.Recover(ctx, r))
1875 ret = graphql.Null
1876 }
1877 }()
1878 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
1879 ctx = rctx // use context from middleware stack in children
1880 return obj.GitoidSha256, nil
1881 })
1882 if err != nil {
1883 ec.Error(ctx, err)
1884 return graphql.Null
1885 }
1886 if resTmp == nil {
1887 if !graphql.HasFieldError(ctx, fc) {
1888 ec.Errorf(ctx, "must not be null")
1889 }
1890 return graphql.Null
1891 }
1892 res := resTmp.(string)
1893 fc.Result = res
1894 return ec.marshalNString2string(ctx, field.Selections, res)
1895 }
1896
1897 func (ec *executionContext) fieldContext_Dsse_gitoidSha256(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
1898 fc = &graphql.FieldContext{
1899 Object: "Dsse",
1900 Field: field,
1901 IsMethod: false,
1902 IsResolver: false,
1903 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
1904 return nil, errors.New("field of type String does not have child fields")
1905 },
1906 }
1907 return fc, nil
1908 }
1909
1910 func (ec *executionContext) _Dsse_payloadType(ctx context.Context, field graphql.CollectedField, obj *ent.Dsse) (ret graphql.Marshaler) {
1911 fc, err := ec.fieldContext_Dsse_payloadType(ctx, field)
1912 if err != nil {
1913 return graphql.Null
1914 }
1915 ctx = graphql.WithFieldContext(ctx, fc)
1916 defer func() {
1917 if r := recover(); r != nil {
1918 ec.Error(ctx, ec.Recover(ctx, r))
1919 ret = graphql.Null
1920 }
1921 }()
1922 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
1923 ctx = rctx // use context from middleware stack in children
1924 return obj.PayloadType, nil
1925 })
1926 if err != nil {
1927 ec.Error(ctx, err)
1928 return graphql.Null
1929 }
1930 if resTmp == nil {
1931 if !graphql.HasFieldError(ctx, fc) {
1932 ec.Errorf(ctx, "must not be null")
1933 }
1934 return graphql.Null
1935 }
1936 res := resTmp.(string)
1937 fc.Result = res
1938 return ec.marshalNString2string(ctx, field.Selections, res)
1939 }
1940
1941 func (ec *executionContext) fieldContext_Dsse_payloadType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
1942 fc = &graphql.FieldContext{
1943 Object: "Dsse",
1944 Field: field,
1945 IsMethod: false,
1946 IsResolver: false,
1947 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
1948 return nil, errors.New("field of type String does not have child fields")
1949 },
1950 }
1951 return fc, nil
1952 }
1953
1954 func (ec *executionContext) _Dsse_statement(ctx context.Context, field graphql.CollectedField, obj *ent.Dsse) (ret graphql.Marshaler) {
1955 fc, err := ec.fieldContext_Dsse_statement(ctx, field)
1956 if err != nil {
1957 return graphql.Null
1958 }
1959 ctx = graphql.WithFieldContext(ctx, fc)
1960 defer func() {
1961 if r := recover(); r != nil {
1962 ec.Error(ctx, ec.Recover(ctx, r))
1963 ret = graphql.Null
1964 }
1965 }()
1966 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
1967 ctx = rctx // use context from middleware stack in children
1968 return obj.Statement(ctx)
1969 })
1970 if err != nil {
1971 ec.Error(ctx, err)
1972 return graphql.Null
1973 }
1974 if resTmp == nil {
1975 return graphql.Null
1976 }
1977 res := resTmp.(*ent.Statement)
1978 fc.Result = res
1979 return ec.marshalOStatement2ᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐStatement(ctx, field.Selections, res)
1980 }
1981
1982 func (ec *executionContext) fieldContext_Dsse_statement(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
1983 fc = &graphql.FieldContext{
1984 Object: "Dsse",
1985 Field: field,
1986 IsMethod: true,
1987 IsResolver: false,
1988 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
1989 switch field.Name {
1990 case "id":
1991 return ec.fieldContext_Statement_id(ctx, field)
1992 case "predicate":
1993 return ec.fieldContext_Statement_predicate(ctx, field)
1994 case "subjects":
1995 return ec.fieldContext_Statement_subjects(ctx, field)
1996 case "policy":
1997 return ec.fieldContext_Statement_policy(ctx, field)
1998 case "attestationCollections":
1999 return ec.fieldContext_Statement_attestationCollections(ctx, field)
2000 case "dsse":
2001 return ec.fieldContext_Statement_dsse(ctx, field)
2002 }
2003 return nil, fmt.Errorf("no field named %q was found under type Statement", field.Name)
2004 },
2005 }
2006 return fc, nil
2007 }
2008
2009 func (ec *executionContext) _Dsse_signatures(ctx context.Context, field graphql.CollectedField, obj *ent.Dsse) (ret graphql.Marshaler) {
2010 fc, err := ec.fieldContext_Dsse_signatures(ctx, field)
2011 if err != nil {
2012 return graphql.Null
2013 }
2014 ctx = graphql.WithFieldContext(ctx, fc)
2015 defer func() {
2016 if r := recover(); r != nil {
2017 ec.Error(ctx, ec.Recover(ctx, r))
2018 ret = graphql.Null
2019 }
2020 }()
2021 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
2022 ctx = rctx // use context from middleware stack in children
2023 return obj.Signatures(ctx)
2024 })
2025 if err != nil {
2026 ec.Error(ctx, err)
2027 return graphql.Null
2028 }
2029 if resTmp == nil {
2030 return graphql.Null
2031 }
2032 res := resTmp.([]*ent.Signature)
2033 fc.Result = res
2034 return ec.marshalOSignature2ᚕᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐSignatureᚄ(ctx, field.Selections, res)
2035 }
2036
2037 func (ec *executionContext) fieldContext_Dsse_signatures(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
2038 fc = &graphql.FieldContext{
2039 Object: "Dsse",
2040 Field: field,
2041 IsMethod: true,
2042 IsResolver: false,
2043 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
2044 switch field.Name {
2045 case "id":
2046 return ec.fieldContext_Signature_id(ctx, field)
2047 case "keyID":
2048 return ec.fieldContext_Signature_keyID(ctx, field)
2049 case "signature":
2050 return ec.fieldContext_Signature_signature(ctx, field)
2051 case "dsse":
2052 return ec.fieldContext_Signature_dsse(ctx, field)
2053 case "timestamps":
2054 return ec.fieldContext_Signature_timestamps(ctx, field)
2055 }
2056 return nil, fmt.Errorf("no field named %q was found under type Signature", field.Name)
2057 },
2058 }
2059 return fc, nil
2060 }
2061
2062 func (ec *executionContext) _Dsse_payloadDigests(ctx context.Context, field graphql.CollectedField, obj *ent.Dsse) (ret graphql.Marshaler) {
2063 fc, err := ec.fieldContext_Dsse_payloadDigests(ctx, field)
2064 if err != nil {
2065 return graphql.Null
2066 }
2067 ctx = graphql.WithFieldContext(ctx, fc)
2068 defer func() {
2069 if r := recover(); r != nil {
2070 ec.Error(ctx, ec.Recover(ctx, r))
2071 ret = graphql.Null
2072 }
2073 }()
2074 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
2075 ctx = rctx // use context from middleware stack in children
2076 return obj.PayloadDigests(ctx)
2077 })
2078 if err != nil {
2079 ec.Error(ctx, err)
2080 return graphql.Null
2081 }
2082 if resTmp == nil {
2083 return graphql.Null
2084 }
2085 res := resTmp.([]*ent.PayloadDigest)
2086 fc.Result = res
2087 return ec.marshalOPayloadDigest2ᚕᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐPayloadDigestᚄ(ctx, field.Selections, res)
2088 }
2089
2090 func (ec *executionContext) fieldContext_Dsse_payloadDigests(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
2091 fc = &graphql.FieldContext{
2092 Object: "Dsse",
2093 Field: field,
2094 IsMethod: true,
2095 IsResolver: false,
2096 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
2097 switch field.Name {
2098 case "id":
2099 return ec.fieldContext_PayloadDigest_id(ctx, field)
2100 case "algorithm":
2101 return ec.fieldContext_PayloadDigest_algorithm(ctx, field)
2102 case "value":
2103 return ec.fieldContext_PayloadDigest_value(ctx, field)
2104 case "dsse":
2105 return ec.fieldContext_PayloadDigest_dsse(ctx, field)
2106 }
2107 return nil, fmt.Errorf("no field named %q was found under type PayloadDigest", field.Name)
2108 },
2109 }
2110 return fc, nil
2111 }
2112
2113 func (ec *executionContext) _DsseConnection_edges(ctx context.Context, field graphql.CollectedField, obj *ent.DsseConnection) (ret graphql.Marshaler) {
2114 fc, err := ec.fieldContext_DsseConnection_edges(ctx, field)
2115 if err != nil {
2116 return graphql.Null
2117 }
2118 ctx = graphql.WithFieldContext(ctx, fc)
2119 defer func() {
2120 if r := recover(); r != nil {
2121 ec.Error(ctx, ec.Recover(ctx, r))
2122 ret = graphql.Null
2123 }
2124 }()
2125 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
2126 ctx = rctx // use context from middleware stack in children
2127 return obj.Edges, nil
2128 })
2129 if err != nil {
2130 ec.Error(ctx, err)
2131 return graphql.Null
2132 }
2133 if resTmp == nil {
2134 return graphql.Null
2135 }
2136 res := resTmp.([]*ent.DsseEdge)
2137 fc.Result = res
2138 return ec.marshalODsseEdge2ᚕᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐDsseEdge(ctx, field.Selections, res)
2139 }
2140
2141 func (ec *executionContext) fieldContext_DsseConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
2142 fc = &graphql.FieldContext{
2143 Object: "DsseConnection",
2144 Field: field,
2145 IsMethod: false,
2146 IsResolver: false,
2147 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
2148 switch field.Name {
2149 case "node":
2150 return ec.fieldContext_DsseEdge_node(ctx, field)
2151 case "cursor":
2152 return ec.fieldContext_DsseEdge_cursor(ctx, field)
2153 }
2154 return nil, fmt.Errorf("no field named %q was found under type DsseEdge", field.Name)
2155 },
2156 }
2157 return fc, nil
2158 }
2159
2160 func (ec *executionContext) _DsseConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *ent.DsseConnection) (ret graphql.Marshaler) {
2161 fc, err := ec.fieldContext_DsseConnection_pageInfo(ctx, field)
2162 if err != nil {
2163 return graphql.Null
2164 }
2165 ctx = graphql.WithFieldContext(ctx, fc)
2166 defer func() {
2167 if r := recover(); r != nil {
2168 ec.Error(ctx, ec.Recover(ctx, r))
2169 ret = graphql.Null
2170 }
2171 }()
2172 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
2173 ctx = rctx // use context from middleware stack in children
2174 return obj.PageInfo, nil
2175 })
2176 if err != nil {
2177 ec.Error(ctx, err)
2178 return graphql.Null
2179 }
2180 if resTmp == nil {
2181 if !graphql.HasFieldError(ctx, fc) {
2182 ec.Errorf(ctx, "must not be null")
2183 }
2184 return graphql.Null
2185 }
2186 res := resTmp.(entgql.PageInfo[uuid.UUID])
2187 fc.Result = res
2188 return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res)
2189 }
2190
2191 func (ec *executionContext) fieldContext_DsseConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
2192 fc = &graphql.FieldContext{
2193 Object: "DsseConnection",
2194 Field: field,
2195 IsMethod: false,
2196 IsResolver: false,
2197 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
2198 switch field.Name {
2199 case "hasNextPage":
2200 return ec.fieldContext_PageInfo_hasNextPage(ctx, field)
2201 case "hasPreviousPage":
2202 return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field)
2203 case "startCursor":
2204 return ec.fieldContext_PageInfo_startCursor(ctx, field)
2205 case "endCursor":
2206 return ec.fieldContext_PageInfo_endCursor(ctx, field)
2207 }
2208 return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name)
2209 },
2210 }
2211 return fc, nil
2212 }
2213
2214 func (ec *executionContext) _DsseConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *ent.DsseConnection) (ret graphql.Marshaler) {
2215 fc, err := ec.fieldContext_DsseConnection_totalCount(ctx, field)
2216 if err != nil {
2217 return graphql.Null
2218 }
2219 ctx = graphql.WithFieldContext(ctx, fc)
2220 defer func() {
2221 if r := recover(); r != nil {
2222 ec.Error(ctx, ec.Recover(ctx, r))
2223 ret = graphql.Null
2224 }
2225 }()
2226 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
2227 ctx = rctx // use context from middleware stack in children
2228 return obj.TotalCount, nil
2229 })
2230 if err != nil {
2231 ec.Error(ctx, err)
2232 return graphql.Null
2233 }
2234 if resTmp == nil {
2235 if !graphql.HasFieldError(ctx, fc) {
2236 ec.Errorf(ctx, "must not be null")
2237 }
2238 return graphql.Null
2239 }
2240 res := resTmp.(int)
2241 fc.Result = res
2242 return ec.marshalNInt2int(ctx, field.Selections, res)
2243 }
2244
2245 func (ec *executionContext) fieldContext_DsseConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
2246 fc = &graphql.FieldContext{
2247 Object: "DsseConnection",
2248 Field: field,
2249 IsMethod: false,
2250 IsResolver: false,
2251 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
2252 return nil, errors.New("field of type Int does not have child fields")
2253 },
2254 }
2255 return fc, nil
2256 }
2257
2258 func (ec *executionContext) _DsseEdge_node(ctx context.Context, field graphql.CollectedField, obj *ent.DsseEdge) (ret graphql.Marshaler) {
2259 fc, err := ec.fieldContext_DsseEdge_node(ctx, field)
2260 if err != nil {
2261 return graphql.Null
2262 }
2263 ctx = graphql.WithFieldContext(ctx, fc)
2264 defer func() {
2265 if r := recover(); r != nil {
2266 ec.Error(ctx, ec.Recover(ctx, r))
2267 ret = graphql.Null
2268 }
2269 }()
2270 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
2271 ctx = rctx // use context from middleware stack in children
2272 return obj.Node, nil
2273 })
2274 if err != nil {
2275 ec.Error(ctx, err)
2276 return graphql.Null
2277 }
2278 if resTmp == nil {
2279 return graphql.Null
2280 }
2281 res := resTmp.(*ent.Dsse)
2282 fc.Result = res
2283 return ec.marshalODsse2ᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐDsse(ctx, field.Selections, res)
2284 }
2285
2286 func (ec *executionContext) fieldContext_DsseEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
2287 fc = &graphql.FieldContext{
2288 Object: "DsseEdge",
2289 Field: field,
2290 IsMethod: false,
2291 IsResolver: false,
2292 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
2293 switch field.Name {
2294 case "id":
2295 return ec.fieldContext_Dsse_id(ctx, field)
2296 case "createdAt":
2297 return ec.fieldContext_Dsse_createdAt(ctx, field)
2298 case "gitoidSha256":
2299 return ec.fieldContext_Dsse_gitoidSha256(ctx, field)
2300 case "payloadType":
2301 return ec.fieldContext_Dsse_payloadType(ctx, field)
2302 case "statement":
2303 return ec.fieldContext_Dsse_statement(ctx, field)
2304 case "signatures":
2305 return ec.fieldContext_Dsse_signatures(ctx, field)
2306 case "payloadDigests":
2307 return ec.fieldContext_Dsse_payloadDigests(ctx, field)
2308 }
2309 return nil, fmt.Errorf("no field named %q was found under type Dsse", field.Name)
2310 },
2311 }
2312 return fc, nil
2313 }
2314
2315 func (ec *executionContext) _DsseEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *ent.DsseEdge) (ret graphql.Marshaler) {
2316 fc, err := ec.fieldContext_DsseEdge_cursor(ctx, field)
2317 if err != nil {
2318 return graphql.Null
2319 }
2320 ctx = graphql.WithFieldContext(ctx, fc)
2321 defer func() {
2322 if r := recover(); r != nil {
2323 ec.Error(ctx, ec.Recover(ctx, r))
2324 ret = graphql.Null
2325 }
2326 }()
2327 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
2328 ctx = rctx // use context from middleware stack in children
2329 return obj.Cursor, nil
2330 })
2331 if err != nil {
2332 ec.Error(ctx, err)
2333 return graphql.Null
2334 }
2335 if resTmp == nil {
2336 if !graphql.HasFieldError(ctx, fc) {
2337 ec.Errorf(ctx, "must not be null")
2338 }
2339 return graphql.Null
2340 }
2341 res := resTmp.(entgql.Cursor[uuid.UUID])
2342 fc.Result = res
2343 return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res)
2344 }
2345
2346 func (ec *executionContext) fieldContext_DsseEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
2347 fc = &graphql.FieldContext{
2348 Object: "DsseEdge",
2349 Field: field,
2350 IsMethod: false,
2351 IsResolver: false,
2352 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
2353 return nil, errors.New("field of type Cursor does not have child fields")
2354 },
2355 }
2356 return fc, nil
2357 }
2358
2359 func (ec *executionContext) _PageInfo_hasNextPage(ctx context.Context, field graphql.CollectedField, obj *entgql.PageInfo[uuid.UUID]) (ret graphql.Marshaler) {
2360 fc, err := ec.fieldContext_PageInfo_hasNextPage(ctx, field)
2361 if err != nil {
2362 return graphql.Null
2363 }
2364 ctx = graphql.WithFieldContext(ctx, fc)
2365 defer func() {
2366 if r := recover(); r != nil {
2367 ec.Error(ctx, ec.Recover(ctx, r))
2368 ret = graphql.Null
2369 }
2370 }()
2371 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
2372 ctx = rctx // use context from middleware stack in children
2373 return obj.HasNextPage, nil
2374 })
2375 if err != nil {
2376 ec.Error(ctx, err)
2377 return graphql.Null
2378 }
2379 if resTmp == nil {
2380 if !graphql.HasFieldError(ctx, fc) {
2381 ec.Errorf(ctx, "must not be null")
2382 }
2383 return graphql.Null
2384 }
2385 res := resTmp.(bool)
2386 fc.Result = res
2387 return ec.marshalNBoolean2bool(ctx, field.Selections, res)
2388 }
2389
2390 func (ec *executionContext) fieldContext_PageInfo_hasNextPage(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
2391 fc = &graphql.FieldContext{
2392 Object: "PageInfo",
2393 Field: field,
2394 IsMethod: false,
2395 IsResolver: false,
2396 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
2397 return nil, errors.New("field of type Boolean does not have child fields")
2398 },
2399 }
2400 return fc, nil
2401 }
2402
2403 func (ec *executionContext) _PageInfo_hasPreviousPage(ctx context.Context, field graphql.CollectedField, obj *entgql.PageInfo[uuid.UUID]) (ret graphql.Marshaler) {
2404 fc, err := ec.fieldContext_PageInfo_hasPreviousPage(ctx, field)
2405 if err != nil {
2406 return graphql.Null
2407 }
2408 ctx = graphql.WithFieldContext(ctx, fc)
2409 defer func() {
2410 if r := recover(); r != nil {
2411 ec.Error(ctx, ec.Recover(ctx, r))
2412 ret = graphql.Null
2413 }
2414 }()
2415 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
2416 ctx = rctx // use context from middleware stack in children
2417 return obj.HasPreviousPage, nil
2418 })
2419 if err != nil {
2420 ec.Error(ctx, err)
2421 return graphql.Null
2422 }
2423 if resTmp == nil {
2424 if !graphql.HasFieldError(ctx, fc) {
2425 ec.Errorf(ctx, "must not be null")
2426 }
2427 return graphql.Null
2428 }
2429 res := resTmp.(bool)
2430 fc.Result = res
2431 return ec.marshalNBoolean2bool(ctx, field.Selections, res)
2432 }
2433
2434 func (ec *executionContext) fieldContext_PageInfo_hasPreviousPage(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
2435 fc = &graphql.FieldContext{
2436 Object: "PageInfo",
2437 Field: field,
2438 IsMethod: false,
2439 IsResolver: false,
2440 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
2441 return nil, errors.New("field of type Boolean does not have child fields")
2442 },
2443 }
2444 return fc, nil
2445 }
2446
2447 func (ec *executionContext) _PageInfo_startCursor(ctx context.Context, field graphql.CollectedField, obj *entgql.PageInfo[uuid.UUID]) (ret graphql.Marshaler) {
2448 fc, err := ec.fieldContext_PageInfo_startCursor(ctx, field)
2449 if err != nil {
2450 return graphql.Null
2451 }
2452 ctx = graphql.WithFieldContext(ctx, fc)
2453 defer func() {
2454 if r := recover(); r != nil {
2455 ec.Error(ctx, ec.Recover(ctx, r))
2456 ret = graphql.Null
2457 }
2458 }()
2459 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
2460 ctx = rctx // use context from middleware stack in children
2461 return obj.StartCursor, nil
2462 })
2463 if err != nil {
2464 ec.Error(ctx, err)
2465 return graphql.Null
2466 }
2467 if resTmp == nil {
2468 return graphql.Null
2469 }
2470 res := resTmp.(*entgql.Cursor[uuid.UUID])
2471 fc.Result = res
2472 return ec.marshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res)
2473 }
2474
2475 func (ec *executionContext) fieldContext_PageInfo_startCursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
2476 fc = &graphql.FieldContext{
2477 Object: "PageInfo",
2478 Field: field,
2479 IsMethod: false,
2480 IsResolver: false,
2481 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
2482 return nil, errors.New("field of type Cursor does not have child fields")
2483 },
2484 }
2485 return fc, nil
2486 }
2487
2488 func (ec *executionContext) _PageInfo_endCursor(ctx context.Context, field graphql.CollectedField, obj *entgql.PageInfo[uuid.UUID]) (ret graphql.Marshaler) {
2489 fc, err := ec.fieldContext_PageInfo_endCursor(ctx, field)
2490 if err != nil {
2491 return graphql.Null
2492 }
2493 ctx = graphql.WithFieldContext(ctx, fc)
2494 defer func() {
2495 if r := recover(); r != nil {
2496 ec.Error(ctx, ec.Recover(ctx, r))
2497 ret = graphql.Null
2498 }
2499 }()
2500 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
2501 ctx = rctx // use context from middleware stack in children
2502 return obj.EndCursor, nil
2503 })
2504 if err != nil {
2505 ec.Error(ctx, err)
2506 return graphql.Null
2507 }
2508 if resTmp == nil {
2509 return graphql.Null
2510 }
2511 res := resTmp.(*entgql.Cursor[uuid.UUID])
2512 fc.Result = res
2513 return ec.marshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res)
2514 }
2515
2516 func (ec *executionContext) fieldContext_PageInfo_endCursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
2517 fc = &graphql.FieldContext{
2518 Object: "PageInfo",
2519 Field: field,
2520 IsMethod: false,
2521 IsResolver: false,
2522 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
2523 return nil, errors.New("field of type Cursor does not have child fields")
2524 },
2525 }
2526 return fc, nil
2527 }
2528
2529 func (ec *executionContext) _PayloadDigest_id(ctx context.Context, field graphql.CollectedField, obj *ent.PayloadDigest) (ret graphql.Marshaler) {
2530 fc, err := ec.fieldContext_PayloadDigest_id(ctx, field)
2531 if err != nil {
2532 return graphql.Null
2533 }
2534 ctx = graphql.WithFieldContext(ctx, fc)
2535 defer func() {
2536 if r := recover(); r != nil {
2537 ec.Error(ctx, ec.Recover(ctx, r))
2538 ret = graphql.Null
2539 }
2540 }()
2541 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
2542 ctx = rctx // use context from middleware stack in children
2543 return obj.ID, nil
2544 })
2545 if err != nil {
2546 ec.Error(ctx, err)
2547 return graphql.Null
2548 }
2549 if resTmp == nil {
2550 if !graphql.HasFieldError(ctx, fc) {
2551 ec.Errorf(ctx, "must not be null")
2552 }
2553 return graphql.Null
2554 }
2555 res := resTmp.(uuid.UUID)
2556 fc.Result = res
2557 return ec.marshalNID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res)
2558 }
2559
2560 func (ec *executionContext) fieldContext_PayloadDigest_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
2561 fc = &graphql.FieldContext{
2562 Object: "PayloadDigest",
2563 Field: field,
2564 IsMethod: false,
2565 IsResolver: false,
2566 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
2567 return nil, errors.New("field of type ID does not have child fields")
2568 },
2569 }
2570 return fc, nil
2571 }
2572
2573 func (ec *executionContext) _PayloadDigest_algorithm(ctx context.Context, field graphql.CollectedField, obj *ent.PayloadDigest) (ret graphql.Marshaler) {
2574 fc, err := ec.fieldContext_PayloadDigest_algorithm(ctx, field)
2575 if err != nil {
2576 return graphql.Null
2577 }
2578 ctx = graphql.WithFieldContext(ctx, fc)
2579 defer func() {
2580 if r := recover(); r != nil {
2581 ec.Error(ctx, ec.Recover(ctx, r))
2582 ret = graphql.Null
2583 }
2584 }()
2585 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
2586 ctx = rctx // use context from middleware stack in children
2587 return obj.Algorithm, nil
2588 })
2589 if err != nil {
2590 ec.Error(ctx, err)
2591 return graphql.Null
2592 }
2593 if resTmp == nil {
2594 if !graphql.HasFieldError(ctx, fc) {
2595 ec.Errorf(ctx, "must not be null")
2596 }
2597 return graphql.Null
2598 }
2599 res := resTmp.(string)
2600 fc.Result = res
2601 return ec.marshalNString2string(ctx, field.Selections, res)
2602 }
2603
2604 func (ec *executionContext) fieldContext_PayloadDigest_algorithm(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
2605 fc = &graphql.FieldContext{
2606 Object: "PayloadDigest",
2607 Field: field,
2608 IsMethod: false,
2609 IsResolver: false,
2610 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
2611 return nil, errors.New("field of type String does not have child fields")
2612 },
2613 }
2614 return fc, nil
2615 }
2616
2617 func (ec *executionContext) _PayloadDigest_value(ctx context.Context, field graphql.CollectedField, obj *ent.PayloadDigest) (ret graphql.Marshaler) {
2618 fc, err := ec.fieldContext_PayloadDigest_value(ctx, field)
2619 if err != nil {
2620 return graphql.Null
2621 }
2622 ctx = graphql.WithFieldContext(ctx, fc)
2623 defer func() {
2624 if r := recover(); r != nil {
2625 ec.Error(ctx, ec.Recover(ctx, r))
2626 ret = graphql.Null
2627 }
2628 }()
2629 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
2630 ctx = rctx // use context from middleware stack in children
2631 return obj.Value, nil
2632 })
2633 if err != nil {
2634 ec.Error(ctx, err)
2635 return graphql.Null
2636 }
2637 if resTmp == nil {
2638 if !graphql.HasFieldError(ctx, fc) {
2639 ec.Errorf(ctx, "must not be null")
2640 }
2641 return graphql.Null
2642 }
2643 res := resTmp.(string)
2644 fc.Result = res
2645 return ec.marshalNString2string(ctx, field.Selections, res)
2646 }
2647
2648 func (ec *executionContext) fieldContext_PayloadDigest_value(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
2649 fc = &graphql.FieldContext{
2650 Object: "PayloadDigest",
2651 Field: field,
2652 IsMethod: false,
2653 IsResolver: false,
2654 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
2655 return nil, errors.New("field of type String does not have child fields")
2656 },
2657 }
2658 return fc, nil
2659 }
2660
2661 func (ec *executionContext) _PayloadDigest_dsse(ctx context.Context, field graphql.CollectedField, obj *ent.PayloadDigest) (ret graphql.Marshaler) {
2662 fc, err := ec.fieldContext_PayloadDigest_dsse(ctx, field)
2663 if err != nil {
2664 return graphql.Null
2665 }
2666 ctx = graphql.WithFieldContext(ctx, fc)
2667 defer func() {
2668 if r := recover(); r != nil {
2669 ec.Error(ctx, ec.Recover(ctx, r))
2670 ret = graphql.Null
2671 }
2672 }()
2673 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
2674 ctx = rctx // use context from middleware stack in children
2675 return obj.Dsse(ctx)
2676 })
2677 if err != nil {
2678 ec.Error(ctx, err)
2679 return graphql.Null
2680 }
2681 if resTmp == nil {
2682 return graphql.Null
2683 }
2684 res := resTmp.(*ent.Dsse)
2685 fc.Result = res
2686 return ec.marshalODsse2ᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐDsse(ctx, field.Selections, res)
2687 }
2688
2689 func (ec *executionContext) fieldContext_PayloadDigest_dsse(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
2690 fc = &graphql.FieldContext{
2691 Object: "PayloadDigest",
2692 Field: field,
2693 IsMethod: true,
2694 IsResolver: false,
2695 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
2696 switch field.Name {
2697 case "id":
2698 return ec.fieldContext_Dsse_id(ctx, field)
2699 case "createdAt":
2700 return ec.fieldContext_Dsse_createdAt(ctx, field)
2701 case "gitoidSha256":
2702 return ec.fieldContext_Dsse_gitoidSha256(ctx, field)
2703 case "payloadType":
2704 return ec.fieldContext_Dsse_payloadType(ctx, field)
2705 case "statement":
2706 return ec.fieldContext_Dsse_statement(ctx, field)
2707 case "signatures":
2708 return ec.fieldContext_Dsse_signatures(ctx, field)
2709 case "payloadDigests":
2710 return ec.fieldContext_Dsse_payloadDigests(ctx, field)
2711 }
2712 return nil, fmt.Errorf("no field named %q was found under type Dsse", field.Name)
2713 },
2714 }
2715 return fc, nil
2716 }
2717
2718 func (ec *executionContext) _Query_node(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
2719 fc, err := ec.fieldContext_Query_node(ctx, field)
2720 if err != nil {
2721 return graphql.Null
2722 }
2723 ctx = graphql.WithFieldContext(ctx, fc)
2724 defer func() {
2725 if r := recover(); r != nil {
2726 ec.Error(ctx, ec.Recover(ctx, r))
2727 ret = graphql.Null
2728 }
2729 }()
2730 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
2731 ctx = rctx // use context from middleware stack in children
2732 return ec.resolvers.Query().Node(rctx, fc.Args["id"].(uuid.UUID))
2733 })
2734 if err != nil {
2735 ec.Error(ctx, err)
2736 return graphql.Null
2737 }
2738 if resTmp == nil {
2739 return graphql.Null
2740 }
2741 res := resTmp.(ent.Noder)
2742 fc.Result = res
2743 return ec.marshalONode2githubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐNoder(ctx, field.Selections, res)
2744 }
2745
2746 func (ec *executionContext) fieldContext_Query_node(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
2747 fc = &graphql.FieldContext{
2748 Object: "Query",
2749 Field: field,
2750 IsMethod: true,
2751 IsResolver: true,
2752 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
2753 return nil, errors.New("FieldContext.Child cannot be called on type INTERFACE")
2754 },
2755 }
2756 defer func() {
2757 if r := recover(); r != nil {
2758 err = ec.Recover(ctx, r)
2759 ec.Error(ctx, err)
2760 }
2761 }()
2762 ctx = graphql.WithFieldContext(ctx, fc)
2763 if fc.Args, err = ec.field_Query_node_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
2764 ec.Error(ctx, err)
2765 return fc, err
2766 }
2767 return fc, nil
2768 }
2769
2770 func (ec *executionContext) _Query_nodes(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
2771 fc, err := ec.fieldContext_Query_nodes(ctx, field)
2772 if err != nil {
2773 return graphql.Null
2774 }
2775 ctx = graphql.WithFieldContext(ctx, fc)
2776 defer func() {
2777 if r := recover(); r != nil {
2778 ec.Error(ctx, ec.Recover(ctx, r))
2779 ret = graphql.Null
2780 }
2781 }()
2782 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
2783 ctx = rctx // use context from middleware stack in children
2784 return ec.resolvers.Query().Nodes(rctx, fc.Args["ids"].([]uuid.UUID))
2785 })
2786 if err != nil {
2787 ec.Error(ctx, err)
2788 return graphql.Null
2789 }
2790 if resTmp == nil {
2791 if !graphql.HasFieldError(ctx, fc) {
2792 ec.Errorf(ctx, "must not be null")
2793 }
2794 return graphql.Null
2795 }
2796 res := resTmp.([]ent.Noder)
2797 fc.Result = res
2798 return ec.marshalNNode2ᚕgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐNoder(ctx, field.Selections, res)
2799 }
2800
2801 func (ec *executionContext) fieldContext_Query_nodes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
2802 fc = &graphql.FieldContext{
2803 Object: "Query",
2804 Field: field,
2805 IsMethod: true,
2806 IsResolver: true,
2807 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
2808 return nil, errors.New("FieldContext.Child cannot be called on type INTERFACE")
2809 },
2810 }
2811 defer func() {
2812 if r := recover(); r != nil {
2813 err = ec.Recover(ctx, r)
2814 ec.Error(ctx, err)
2815 }
2816 }()
2817 ctx = graphql.WithFieldContext(ctx, fc)
2818 if fc.Args, err = ec.field_Query_nodes_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
2819 ec.Error(ctx, err)
2820 return fc, err
2821 }
2822 return fc, nil
2823 }
2824
2825 func (ec *executionContext) _Query_attestationPolicies(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
2826 fc, err := ec.fieldContext_Query_attestationPolicies(ctx, field)
2827 if err != nil {
2828 return graphql.Null
2829 }
2830 ctx = graphql.WithFieldContext(ctx, fc)
2831 defer func() {
2832 if r := recover(); r != nil {
2833 ec.Error(ctx, ec.Recover(ctx, r))
2834 ret = graphql.Null
2835 }
2836 }()
2837 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
2838 ctx = rctx // use context from middleware stack in children
2839 return ec.resolvers.Query().AttestationPolicies(rctx, fc.Args["after"].(*entgql.Cursor[uuid.UUID]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[uuid.UUID]), fc.Args["last"].(*int), fc.Args["where"].(*ent.AttestationPolicyWhereInput))
2840 })
2841 if err != nil {
2842 ec.Error(ctx, err)
2843 return graphql.Null
2844 }
2845 if resTmp == nil {
2846 if !graphql.HasFieldError(ctx, fc) {
2847 ec.Errorf(ctx, "must not be null")
2848 }
2849 return graphql.Null
2850 }
2851 res := resTmp.(*ent.AttestationPolicyConnection)
2852 fc.Result = res
2853 return ec.marshalNAttestationPolicyConnection2ᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐAttestationPolicyConnection(ctx, field.Selections, res)
2854 }
2855
2856 func (ec *executionContext) fieldContext_Query_attestationPolicies(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
2857 fc = &graphql.FieldContext{
2858 Object: "Query",
2859 Field: field,
2860 IsMethod: true,
2861 IsResolver: true,
2862 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
2863 switch field.Name {
2864 case "edges":
2865 return ec.fieldContext_AttestationPolicyConnection_edges(ctx, field)
2866 case "pageInfo":
2867 return ec.fieldContext_AttestationPolicyConnection_pageInfo(ctx, field)
2868 case "totalCount":
2869 return ec.fieldContext_AttestationPolicyConnection_totalCount(ctx, field)
2870 }
2871 return nil, fmt.Errorf("no field named %q was found under type AttestationPolicyConnection", field.Name)
2872 },
2873 }
2874 defer func() {
2875 if r := recover(); r != nil {
2876 err = ec.Recover(ctx, r)
2877 ec.Error(ctx, err)
2878 }
2879 }()
2880 ctx = graphql.WithFieldContext(ctx, fc)
2881 if fc.Args, err = ec.field_Query_attestationPolicies_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
2882 ec.Error(ctx, err)
2883 return fc, err
2884 }
2885 return fc, nil
2886 }
2887
2888 func (ec *executionContext) _Query_dsses(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
2889 fc, err := ec.fieldContext_Query_dsses(ctx, field)
2890 if err != nil {
2891 return graphql.Null
2892 }
2893 ctx = graphql.WithFieldContext(ctx, fc)
2894 defer func() {
2895 if r := recover(); r != nil {
2896 ec.Error(ctx, ec.Recover(ctx, r))
2897 ret = graphql.Null
2898 }
2899 }()
2900 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
2901 ctx = rctx // use context from middleware stack in children
2902 return ec.resolvers.Query().Dsses(rctx, fc.Args["after"].(*entgql.Cursor[uuid.UUID]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[uuid.UUID]), fc.Args["last"].(*int), fc.Args["orderBy"].(*ent.DsseOrder), fc.Args["where"].(*ent.DsseWhereInput))
2903 })
2904 if err != nil {
2905 ec.Error(ctx, err)
2906 return graphql.Null
2907 }
2908 if resTmp == nil {
2909 if !graphql.HasFieldError(ctx, fc) {
2910 ec.Errorf(ctx, "must not be null")
2911 }
2912 return graphql.Null
2913 }
2914 res := resTmp.(*ent.DsseConnection)
2915 fc.Result = res
2916 return ec.marshalNDsseConnection2ᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐDsseConnection(ctx, field.Selections, res)
2917 }
2918
2919 func (ec *executionContext) fieldContext_Query_dsses(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
2920 fc = &graphql.FieldContext{
2921 Object: "Query",
2922 Field: field,
2923 IsMethod: true,
2924 IsResolver: true,
2925 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
2926 switch field.Name {
2927 case "edges":
2928 return ec.fieldContext_DsseConnection_edges(ctx, field)
2929 case "pageInfo":
2930 return ec.fieldContext_DsseConnection_pageInfo(ctx, field)
2931 case "totalCount":
2932 return ec.fieldContext_DsseConnection_totalCount(ctx, field)
2933 }
2934 return nil, fmt.Errorf("no field named %q was found under type DsseConnection", field.Name)
2935 },
2936 }
2937 defer func() {
2938 if r := recover(); r != nil {
2939 err = ec.Recover(ctx, r)
2940 ec.Error(ctx, err)
2941 }
2942 }()
2943 ctx = graphql.WithFieldContext(ctx, fc)
2944 if fc.Args, err = ec.field_Query_dsses_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
2945 ec.Error(ctx, err)
2946 return fc, err
2947 }
2948 return fc, nil
2949 }
2950
2951 func (ec *executionContext) _Query_subjects(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
2952 fc, err := ec.fieldContext_Query_subjects(ctx, field)
2953 if err != nil {
2954 return graphql.Null
2955 }
2956 ctx = graphql.WithFieldContext(ctx, fc)
2957 defer func() {
2958 if r := recover(); r != nil {
2959 ec.Error(ctx, ec.Recover(ctx, r))
2960 ret = graphql.Null
2961 }
2962 }()
2963 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
2964 ctx = rctx // use context from middleware stack in children
2965 return ec.resolvers.Query().Subjects(rctx, fc.Args["after"].(*entgql.Cursor[uuid.UUID]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[uuid.UUID]), fc.Args["last"].(*int), fc.Args["orderBy"].(*ent.SubjectOrder), fc.Args["where"].(*ent.SubjectWhereInput))
2966 })
2967 if err != nil {
2968 ec.Error(ctx, err)
2969 return graphql.Null
2970 }
2971 if resTmp == nil {
2972 if !graphql.HasFieldError(ctx, fc) {
2973 ec.Errorf(ctx, "must not be null")
2974 }
2975 return graphql.Null
2976 }
2977 res := resTmp.(*ent.SubjectConnection)
2978 fc.Result = res
2979 return ec.marshalNSubjectConnection2ᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐSubjectConnection(ctx, field.Selections, res)
2980 }
2981
2982 func (ec *executionContext) fieldContext_Query_subjects(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
2983 fc = &graphql.FieldContext{
2984 Object: "Query",
2985 Field: field,
2986 IsMethod: true,
2987 IsResolver: true,
2988 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
2989 switch field.Name {
2990 case "edges":
2991 return ec.fieldContext_SubjectConnection_edges(ctx, field)
2992 case "pageInfo":
2993 return ec.fieldContext_SubjectConnection_pageInfo(ctx, field)
2994 case "totalCount":
2995 return ec.fieldContext_SubjectConnection_totalCount(ctx, field)
2996 }
2997 return nil, fmt.Errorf("no field named %q was found under type SubjectConnection", field.Name)
2998 },
2999 }
3000 defer func() {
3001 if r := recover(); r != nil {
3002 err = ec.Recover(ctx, r)
3003 ec.Error(ctx, err)
3004 }
3005 }()
3006 ctx = graphql.WithFieldContext(ctx, fc)
3007 if fc.Args, err = ec.field_Query_subjects_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
3008 ec.Error(ctx, err)
3009 return fc, err
3010 }
3011 return fc, nil
3012 }
3013
3014 func (ec *executionContext) _Query___type(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
3015 fc, err := ec.fieldContext_Query___type(ctx, field)
3016 if err != nil {
3017 return graphql.Null
3018 }
3019 ctx = graphql.WithFieldContext(ctx, fc)
3020 defer func() {
3021 if r := recover(); r != nil {
3022 ec.Error(ctx, ec.Recover(ctx, r))
3023 ret = graphql.Null
3024 }
3025 }()
3026 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
3027 ctx = rctx // use context from middleware stack in children
3028 return ec.introspectType(fc.Args["name"].(string))
3029 })
3030 if err != nil {
3031 ec.Error(ctx, err)
3032 return graphql.Null
3033 }
3034 if resTmp == nil {
3035 return graphql.Null
3036 }
3037 res := resTmp.(*introspection.Type)
3038 fc.Result = res
3039 return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res)
3040 }
3041
3042 func (ec *executionContext) fieldContext_Query___type(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
3043 fc = &graphql.FieldContext{
3044 Object: "Query",
3045 Field: field,
3046 IsMethod: true,
3047 IsResolver: false,
3048 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
3049 switch field.Name {
3050 case "kind":
3051 return ec.fieldContext___Type_kind(ctx, field)
3052 case "name":
3053 return ec.fieldContext___Type_name(ctx, field)
3054 case "description":
3055 return ec.fieldContext___Type_description(ctx, field)
3056 case "specifiedByURL":
3057 return ec.fieldContext___Type_specifiedByURL(ctx, field)
3058 case "fields":
3059 return ec.fieldContext___Type_fields(ctx, field)
3060 case "interfaces":
3061 return ec.fieldContext___Type_interfaces(ctx, field)
3062 case "possibleTypes":
3063 return ec.fieldContext___Type_possibleTypes(ctx, field)
3064 case "enumValues":
3065 return ec.fieldContext___Type_enumValues(ctx, field)
3066 case "inputFields":
3067 return ec.fieldContext___Type_inputFields(ctx, field)
3068 case "ofType":
3069 return ec.fieldContext___Type_ofType(ctx, field)
3070 case "isOneOf":
3071 return ec.fieldContext___Type_isOneOf(ctx, field)
3072 }
3073 return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
3074 },
3075 }
3076 defer func() {
3077 if r := recover(); r != nil {
3078 err = ec.Recover(ctx, r)
3079 ec.Error(ctx, err)
3080 }
3081 }()
3082 ctx = graphql.WithFieldContext(ctx, fc)
3083 if fc.Args, err = ec.field_Query___type_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
3084 ec.Error(ctx, err)
3085 return fc, err
3086 }
3087 return fc, nil
3088 }
3089
3090 func (ec *executionContext) _Query___schema(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
3091 fc, err := ec.fieldContext_Query___schema(ctx, field)
3092 if err != nil {
3093 return graphql.Null
3094 }
3095 ctx = graphql.WithFieldContext(ctx, fc)
3096 defer func() {
3097 if r := recover(); r != nil {
3098 ec.Error(ctx, ec.Recover(ctx, r))
3099 ret = graphql.Null
3100 }
3101 }()
3102 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
3103 ctx = rctx // use context from middleware stack in children
3104 return ec.introspectSchema()
3105 })
3106 if err != nil {
3107 ec.Error(ctx, err)
3108 return graphql.Null
3109 }
3110 if resTmp == nil {
3111 return graphql.Null
3112 }
3113 res := resTmp.(*introspection.Schema)
3114 fc.Result = res
3115 return ec.marshalO__Schema2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐSchema(ctx, field.Selections, res)
3116 }
3117
3118 func (ec *executionContext) fieldContext_Query___schema(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
3119 fc = &graphql.FieldContext{
3120 Object: "Query",
3121 Field: field,
3122 IsMethod: true,
3123 IsResolver: false,
3124 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
3125 switch field.Name {
3126 case "description":
3127 return ec.fieldContext___Schema_description(ctx, field)
3128 case "types":
3129 return ec.fieldContext___Schema_types(ctx, field)
3130 case "queryType":
3131 return ec.fieldContext___Schema_queryType(ctx, field)
3132 case "mutationType":
3133 return ec.fieldContext___Schema_mutationType(ctx, field)
3134 case "subscriptionType":
3135 return ec.fieldContext___Schema_subscriptionType(ctx, field)
3136 case "directives":
3137 return ec.fieldContext___Schema_directives(ctx, field)
3138 }
3139 return nil, fmt.Errorf("no field named %q was found under type __Schema", field.Name)
3140 },
3141 }
3142 return fc, nil
3143 }
3144
3145 func (ec *executionContext) _Signature_id(ctx context.Context, field graphql.CollectedField, obj *ent.Signature) (ret graphql.Marshaler) {
3146 fc, err := ec.fieldContext_Signature_id(ctx, field)
3147 if err != nil {
3148 return graphql.Null
3149 }
3150 ctx = graphql.WithFieldContext(ctx, fc)
3151 defer func() {
3152 if r := recover(); r != nil {
3153 ec.Error(ctx, ec.Recover(ctx, r))
3154 ret = graphql.Null
3155 }
3156 }()
3157 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
3158 ctx = rctx // use context from middleware stack in children
3159 return obj.ID, nil
3160 })
3161 if err != nil {
3162 ec.Error(ctx, err)
3163 return graphql.Null
3164 }
3165 if resTmp == nil {
3166 if !graphql.HasFieldError(ctx, fc) {
3167 ec.Errorf(ctx, "must not be null")
3168 }
3169 return graphql.Null
3170 }
3171 res := resTmp.(uuid.UUID)
3172 fc.Result = res
3173 return ec.marshalNID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res)
3174 }
3175
3176 func (ec *executionContext) fieldContext_Signature_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
3177 fc = &graphql.FieldContext{
3178 Object: "Signature",
3179 Field: field,
3180 IsMethod: false,
3181 IsResolver: false,
3182 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
3183 return nil, errors.New("field of type ID does not have child fields")
3184 },
3185 }
3186 return fc, nil
3187 }
3188
3189 func (ec *executionContext) _Signature_keyID(ctx context.Context, field graphql.CollectedField, obj *ent.Signature) (ret graphql.Marshaler) {
3190 fc, err := ec.fieldContext_Signature_keyID(ctx, field)
3191 if err != nil {
3192 return graphql.Null
3193 }
3194 ctx = graphql.WithFieldContext(ctx, fc)
3195 defer func() {
3196 if r := recover(); r != nil {
3197 ec.Error(ctx, ec.Recover(ctx, r))
3198 ret = graphql.Null
3199 }
3200 }()
3201 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
3202 ctx = rctx // use context from middleware stack in children
3203 return obj.KeyID, nil
3204 })
3205 if err != nil {
3206 ec.Error(ctx, err)
3207 return graphql.Null
3208 }
3209 if resTmp == nil {
3210 if !graphql.HasFieldError(ctx, fc) {
3211 ec.Errorf(ctx, "must not be null")
3212 }
3213 return graphql.Null
3214 }
3215 res := resTmp.(string)
3216 fc.Result = res
3217 return ec.marshalNString2string(ctx, field.Selections, res)
3218 }
3219
3220 func (ec *executionContext) fieldContext_Signature_keyID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
3221 fc = &graphql.FieldContext{
3222 Object: "Signature",
3223 Field: field,
3224 IsMethod: false,
3225 IsResolver: false,
3226 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
3227 return nil, errors.New("field of type String does not have child fields")
3228 },
3229 }
3230 return fc, nil
3231 }
3232
3233 func (ec *executionContext) _Signature_signature(ctx context.Context, field graphql.CollectedField, obj *ent.Signature) (ret graphql.Marshaler) {
3234 fc, err := ec.fieldContext_Signature_signature(ctx, field)
3235 if err != nil {
3236 return graphql.Null
3237 }
3238 ctx = graphql.WithFieldContext(ctx, fc)
3239 defer func() {
3240 if r := recover(); r != nil {
3241 ec.Error(ctx, ec.Recover(ctx, r))
3242 ret = graphql.Null
3243 }
3244 }()
3245 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
3246 ctx = rctx // use context from middleware stack in children
3247 return obj.Signature, nil
3248 })
3249 if err != nil {
3250 ec.Error(ctx, err)
3251 return graphql.Null
3252 }
3253 if resTmp == nil {
3254 if !graphql.HasFieldError(ctx, fc) {
3255 ec.Errorf(ctx, "must not be null")
3256 }
3257 return graphql.Null
3258 }
3259 res := resTmp.(string)
3260 fc.Result = res
3261 return ec.marshalNString2string(ctx, field.Selections, res)
3262 }
3263
3264 func (ec *executionContext) fieldContext_Signature_signature(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
3265 fc = &graphql.FieldContext{
3266 Object: "Signature",
3267 Field: field,
3268 IsMethod: false,
3269 IsResolver: false,
3270 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
3271 return nil, errors.New("field of type String does not have child fields")
3272 },
3273 }
3274 return fc, nil
3275 }
3276
3277 func (ec *executionContext) _Signature_dsse(ctx context.Context, field graphql.CollectedField, obj *ent.Signature) (ret graphql.Marshaler) {
3278 fc, err := ec.fieldContext_Signature_dsse(ctx, field)
3279 if err != nil {
3280 return graphql.Null
3281 }
3282 ctx = graphql.WithFieldContext(ctx, fc)
3283 defer func() {
3284 if r := recover(); r != nil {
3285 ec.Error(ctx, ec.Recover(ctx, r))
3286 ret = graphql.Null
3287 }
3288 }()
3289 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
3290 ctx = rctx // use context from middleware stack in children
3291 return obj.Dsse(ctx)
3292 })
3293 if err != nil {
3294 ec.Error(ctx, err)
3295 return graphql.Null
3296 }
3297 if resTmp == nil {
3298 return graphql.Null
3299 }
3300 res := resTmp.(*ent.Dsse)
3301 fc.Result = res
3302 return ec.marshalODsse2ᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐDsse(ctx, field.Selections, res)
3303 }
3304
3305 func (ec *executionContext) fieldContext_Signature_dsse(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
3306 fc = &graphql.FieldContext{
3307 Object: "Signature",
3308 Field: field,
3309 IsMethod: true,
3310 IsResolver: false,
3311 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
3312 switch field.Name {
3313 case "id":
3314 return ec.fieldContext_Dsse_id(ctx, field)
3315 case "createdAt":
3316 return ec.fieldContext_Dsse_createdAt(ctx, field)
3317 case "gitoidSha256":
3318 return ec.fieldContext_Dsse_gitoidSha256(ctx, field)
3319 case "payloadType":
3320 return ec.fieldContext_Dsse_payloadType(ctx, field)
3321 case "statement":
3322 return ec.fieldContext_Dsse_statement(ctx, field)
3323 case "signatures":
3324 return ec.fieldContext_Dsse_signatures(ctx, field)
3325 case "payloadDigests":
3326 return ec.fieldContext_Dsse_payloadDigests(ctx, field)
3327 }
3328 return nil, fmt.Errorf("no field named %q was found under type Dsse", field.Name)
3329 },
3330 }
3331 return fc, nil
3332 }
3333
3334 func (ec *executionContext) _Signature_timestamps(ctx context.Context, field graphql.CollectedField, obj *ent.Signature) (ret graphql.Marshaler) {
3335 fc, err := ec.fieldContext_Signature_timestamps(ctx, field)
3336 if err != nil {
3337 return graphql.Null
3338 }
3339 ctx = graphql.WithFieldContext(ctx, fc)
3340 defer func() {
3341 if r := recover(); r != nil {
3342 ec.Error(ctx, ec.Recover(ctx, r))
3343 ret = graphql.Null
3344 }
3345 }()
3346 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
3347 ctx = rctx // use context from middleware stack in children
3348 return obj.Timestamps(ctx)
3349 })
3350 if err != nil {
3351 ec.Error(ctx, err)
3352 return graphql.Null
3353 }
3354 if resTmp == nil {
3355 return graphql.Null
3356 }
3357 res := resTmp.([]*ent.Timestamp)
3358 fc.Result = res
3359 return ec.marshalOTimestamp2ᚕᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐTimestampᚄ(ctx, field.Selections, res)
3360 }
3361
3362 func (ec *executionContext) fieldContext_Signature_timestamps(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
3363 fc = &graphql.FieldContext{
3364 Object: "Signature",
3365 Field: field,
3366 IsMethod: true,
3367 IsResolver: false,
3368 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
3369 switch field.Name {
3370 case "id":
3371 return ec.fieldContext_Timestamp_id(ctx, field)
3372 case "type":
3373 return ec.fieldContext_Timestamp_type(ctx, field)
3374 case "timestamp":
3375 return ec.fieldContext_Timestamp_timestamp(ctx, field)
3376 case "signature":
3377 return ec.fieldContext_Timestamp_signature(ctx, field)
3378 }
3379 return nil, fmt.Errorf("no field named %q was found under type Timestamp", field.Name)
3380 },
3381 }
3382 return fc, nil
3383 }
3384
3385 func (ec *executionContext) _Statement_id(ctx context.Context, field graphql.CollectedField, obj *ent.Statement) (ret graphql.Marshaler) {
3386 fc, err := ec.fieldContext_Statement_id(ctx, field)
3387 if err != nil {
3388 return graphql.Null
3389 }
3390 ctx = graphql.WithFieldContext(ctx, fc)
3391 defer func() {
3392 if r := recover(); r != nil {
3393 ec.Error(ctx, ec.Recover(ctx, r))
3394 ret = graphql.Null
3395 }
3396 }()
3397 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
3398 ctx = rctx // use context from middleware stack in children
3399 return obj.ID, nil
3400 })
3401 if err != nil {
3402 ec.Error(ctx, err)
3403 return graphql.Null
3404 }
3405 if resTmp == nil {
3406 if !graphql.HasFieldError(ctx, fc) {
3407 ec.Errorf(ctx, "must not be null")
3408 }
3409 return graphql.Null
3410 }
3411 res := resTmp.(uuid.UUID)
3412 fc.Result = res
3413 return ec.marshalNID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res)
3414 }
3415
3416 func (ec *executionContext) fieldContext_Statement_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
3417 fc = &graphql.FieldContext{
3418 Object: "Statement",
3419 Field: field,
3420 IsMethod: false,
3421 IsResolver: false,
3422 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
3423 return nil, errors.New("field of type ID does not have child fields")
3424 },
3425 }
3426 return fc, nil
3427 }
3428
3429 func (ec *executionContext) _Statement_predicate(ctx context.Context, field graphql.CollectedField, obj *ent.Statement) (ret graphql.Marshaler) {
3430 fc, err := ec.fieldContext_Statement_predicate(ctx, field)
3431 if err != nil {
3432 return graphql.Null
3433 }
3434 ctx = graphql.WithFieldContext(ctx, fc)
3435 defer func() {
3436 if r := recover(); r != nil {
3437 ec.Error(ctx, ec.Recover(ctx, r))
3438 ret = graphql.Null
3439 }
3440 }()
3441 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
3442 ctx = rctx // use context from middleware stack in children
3443 return obj.Predicate, nil
3444 })
3445 if err != nil {
3446 ec.Error(ctx, err)
3447 return graphql.Null
3448 }
3449 if resTmp == nil {
3450 if !graphql.HasFieldError(ctx, fc) {
3451 ec.Errorf(ctx, "must not be null")
3452 }
3453 return graphql.Null
3454 }
3455 res := resTmp.(string)
3456 fc.Result = res
3457 return ec.marshalNString2string(ctx, field.Selections, res)
3458 }
3459
3460 func (ec *executionContext) fieldContext_Statement_predicate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
3461 fc = &graphql.FieldContext{
3462 Object: "Statement",
3463 Field: field,
3464 IsMethod: false,
3465 IsResolver: false,
3466 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
3467 return nil, errors.New("field of type String does not have child fields")
3468 },
3469 }
3470 return fc, nil
3471 }
3472
3473 func (ec *executionContext) _Statement_subjects(ctx context.Context, field graphql.CollectedField, obj *ent.Statement) (ret graphql.Marshaler) {
3474 fc, err := ec.fieldContext_Statement_subjects(ctx, field)
3475 if err != nil {
3476 return graphql.Null
3477 }
3478 ctx = graphql.WithFieldContext(ctx, fc)
3479 defer func() {
3480 if r := recover(); r != nil {
3481 ec.Error(ctx, ec.Recover(ctx, r))
3482 ret = graphql.Null
3483 }
3484 }()
3485 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
3486 ctx = rctx // use context from middleware stack in children
3487 return obj.Subjects(ctx, fc.Args["after"].(*entgql.Cursor[uuid.UUID]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[uuid.UUID]), fc.Args["last"].(*int), fc.Args["orderBy"].(*ent.SubjectOrder), fc.Args["where"].(*ent.SubjectWhereInput))
3488 })
3489 if err != nil {
3490 ec.Error(ctx, err)
3491 return graphql.Null
3492 }
3493 if resTmp == nil {
3494 if !graphql.HasFieldError(ctx, fc) {
3495 ec.Errorf(ctx, "must not be null")
3496 }
3497 return graphql.Null
3498 }
3499 res := resTmp.(*ent.SubjectConnection)
3500 fc.Result = res
3501 return ec.marshalNSubjectConnection2ᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐSubjectConnection(ctx, field.Selections, res)
3502 }
3503
3504 func (ec *executionContext) fieldContext_Statement_subjects(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
3505 fc = &graphql.FieldContext{
3506 Object: "Statement",
3507 Field: field,
3508 IsMethod: true,
3509 IsResolver: false,
3510 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
3511 switch field.Name {
3512 case "edges":
3513 return ec.fieldContext_SubjectConnection_edges(ctx, field)
3514 case "pageInfo":
3515 return ec.fieldContext_SubjectConnection_pageInfo(ctx, field)
3516 case "totalCount":
3517 return ec.fieldContext_SubjectConnection_totalCount(ctx, field)
3518 }
3519 return nil, fmt.Errorf("no field named %q was found under type SubjectConnection", field.Name)
3520 },
3521 }
3522 defer func() {
3523 if r := recover(); r != nil {
3524 err = ec.Recover(ctx, r)
3525 ec.Error(ctx, err)
3526 }
3527 }()
3528 ctx = graphql.WithFieldContext(ctx, fc)
3529 if fc.Args, err = ec.field_Statement_subjects_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
3530 ec.Error(ctx, err)
3531 return fc, err
3532 }
3533 return fc, nil
3534 }
3535
3536 func (ec *executionContext) _Statement_policy(ctx context.Context, field graphql.CollectedField, obj *ent.Statement) (ret graphql.Marshaler) {
3537 fc, err := ec.fieldContext_Statement_policy(ctx, field)
3538 if err != nil {
3539 return graphql.Null
3540 }
3541 ctx = graphql.WithFieldContext(ctx, fc)
3542 defer func() {
3543 if r := recover(); r != nil {
3544 ec.Error(ctx, ec.Recover(ctx, r))
3545 ret = graphql.Null
3546 }
3547 }()
3548 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
3549 ctx = rctx // use context from middleware stack in children
3550 return obj.Policy(ctx)
3551 })
3552 if err != nil {
3553 ec.Error(ctx, err)
3554 return graphql.Null
3555 }
3556 if resTmp == nil {
3557 return graphql.Null
3558 }
3559 res := resTmp.(*ent.AttestationPolicy)
3560 fc.Result = res
3561 return ec.marshalOAttestationPolicy2ᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐAttestationPolicy(ctx, field.Selections, res)
3562 }
3563
3564 func (ec *executionContext) fieldContext_Statement_policy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
3565 fc = &graphql.FieldContext{
3566 Object: "Statement",
3567 Field: field,
3568 IsMethod: true,
3569 IsResolver: false,
3570 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
3571 switch field.Name {
3572 case "id":
3573 return ec.fieldContext_AttestationPolicy_id(ctx, field)
3574 case "name":
3575 return ec.fieldContext_AttestationPolicy_name(ctx, field)
3576 case "statement":
3577 return ec.fieldContext_AttestationPolicy_statement(ctx, field)
3578 }
3579 return nil, fmt.Errorf("no field named %q was found under type AttestationPolicy", field.Name)
3580 },
3581 }
3582 return fc, nil
3583 }
3584
3585 func (ec *executionContext) _Statement_attestationCollections(ctx context.Context, field graphql.CollectedField, obj *ent.Statement) (ret graphql.Marshaler) {
3586 fc, err := ec.fieldContext_Statement_attestationCollections(ctx, field)
3587 if err != nil {
3588 return graphql.Null
3589 }
3590 ctx = graphql.WithFieldContext(ctx, fc)
3591 defer func() {
3592 if r := recover(); r != nil {
3593 ec.Error(ctx, ec.Recover(ctx, r))
3594 ret = graphql.Null
3595 }
3596 }()
3597 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
3598 ctx = rctx // use context from middleware stack in children
3599 return obj.AttestationCollections(ctx)
3600 })
3601 if err != nil {
3602 ec.Error(ctx, err)
3603 return graphql.Null
3604 }
3605 if resTmp == nil {
3606 return graphql.Null
3607 }
3608 res := resTmp.(*ent.AttestationCollection)
3609 fc.Result = res
3610 return ec.marshalOAttestationCollection2ᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐAttestationCollection(ctx, field.Selections, res)
3611 }
3612
3613 func (ec *executionContext) fieldContext_Statement_attestationCollections(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
3614 fc = &graphql.FieldContext{
3615 Object: "Statement",
3616 Field: field,
3617 IsMethod: true,
3618 IsResolver: false,
3619 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
3620 switch field.Name {
3621 case "id":
3622 return ec.fieldContext_AttestationCollection_id(ctx, field)
3623 case "name":
3624 return ec.fieldContext_AttestationCollection_name(ctx, field)
3625 case "attestations":
3626 return ec.fieldContext_AttestationCollection_attestations(ctx, field)
3627 case "statement":
3628 return ec.fieldContext_AttestationCollection_statement(ctx, field)
3629 }
3630 return nil, fmt.Errorf("no field named %q was found under type AttestationCollection", field.Name)
3631 },
3632 }
3633 return fc, nil
3634 }
3635
3636 func (ec *executionContext) _Statement_dsse(ctx context.Context, field graphql.CollectedField, obj *ent.Statement) (ret graphql.Marshaler) {
3637 fc, err := ec.fieldContext_Statement_dsse(ctx, field)
3638 if err != nil {
3639 return graphql.Null
3640 }
3641 ctx = graphql.WithFieldContext(ctx, fc)
3642 defer func() {
3643 if r := recover(); r != nil {
3644 ec.Error(ctx, ec.Recover(ctx, r))
3645 ret = graphql.Null
3646 }
3647 }()
3648 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
3649 ctx = rctx // use context from middleware stack in children
3650 return obj.Dsse(ctx)
3651 })
3652 if err != nil {
3653 ec.Error(ctx, err)
3654 return graphql.Null
3655 }
3656 if resTmp == nil {
3657 return graphql.Null
3658 }
3659 res := resTmp.([]*ent.Dsse)
3660 fc.Result = res
3661 return ec.marshalODsse2ᚕᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐDsseᚄ(ctx, field.Selections, res)
3662 }
3663
3664 func (ec *executionContext) fieldContext_Statement_dsse(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
3665 fc = &graphql.FieldContext{
3666 Object: "Statement",
3667 Field: field,
3668 IsMethod: true,
3669 IsResolver: false,
3670 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
3671 switch field.Name {
3672 case "id":
3673 return ec.fieldContext_Dsse_id(ctx, field)
3674 case "createdAt":
3675 return ec.fieldContext_Dsse_createdAt(ctx, field)
3676 case "gitoidSha256":
3677 return ec.fieldContext_Dsse_gitoidSha256(ctx, field)
3678 case "payloadType":
3679 return ec.fieldContext_Dsse_payloadType(ctx, field)
3680 case "statement":
3681 return ec.fieldContext_Dsse_statement(ctx, field)
3682 case "signatures":
3683 return ec.fieldContext_Dsse_signatures(ctx, field)
3684 case "payloadDigests":
3685 return ec.fieldContext_Dsse_payloadDigests(ctx, field)
3686 }
3687 return nil, fmt.Errorf("no field named %q was found under type Dsse", field.Name)
3688 },
3689 }
3690 return fc, nil
3691 }
3692
3693 func (ec *executionContext) _Subject_id(ctx context.Context, field graphql.CollectedField, obj *ent.Subject) (ret graphql.Marshaler) {
3694 fc, err := ec.fieldContext_Subject_id(ctx, field)
3695 if err != nil {
3696 return graphql.Null
3697 }
3698 ctx = graphql.WithFieldContext(ctx, fc)
3699 defer func() {
3700 if r := recover(); r != nil {
3701 ec.Error(ctx, ec.Recover(ctx, r))
3702 ret = graphql.Null
3703 }
3704 }()
3705 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
3706 ctx = rctx // use context from middleware stack in children
3707 return obj.ID, nil
3708 })
3709 if err != nil {
3710 ec.Error(ctx, err)
3711 return graphql.Null
3712 }
3713 if resTmp == nil {
3714 if !graphql.HasFieldError(ctx, fc) {
3715 ec.Errorf(ctx, "must not be null")
3716 }
3717 return graphql.Null
3718 }
3719 res := resTmp.(uuid.UUID)
3720 fc.Result = res
3721 return ec.marshalNID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res)
3722 }
3723
3724 func (ec *executionContext) fieldContext_Subject_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
3725 fc = &graphql.FieldContext{
3726 Object: "Subject",
3727 Field: field,
3728 IsMethod: false,
3729 IsResolver: false,
3730 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
3731 return nil, errors.New("field of type ID does not have child fields")
3732 },
3733 }
3734 return fc, nil
3735 }
3736
3737 func (ec *executionContext) _Subject_createdAt(ctx context.Context, field graphql.CollectedField, obj *ent.Subject) (ret graphql.Marshaler) {
3738 fc, err := ec.fieldContext_Subject_createdAt(ctx, field)
3739 if err != nil {
3740 return graphql.Null
3741 }
3742 ctx = graphql.WithFieldContext(ctx, fc)
3743 defer func() {
3744 if r := recover(); r != nil {
3745 ec.Error(ctx, ec.Recover(ctx, r))
3746 ret = graphql.Null
3747 }
3748 }()
3749 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
3750 ctx = rctx // use context from middleware stack in children
3751 return obj.CreatedAt, nil
3752 })
3753 if err != nil {
3754 ec.Error(ctx, err)
3755 return graphql.Null
3756 }
3757 if resTmp == nil {
3758 return graphql.Null
3759 }
3760 res := resTmp.(*time.Time)
3761 fc.Result = res
3762 return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res)
3763 }
3764
3765 func (ec *executionContext) fieldContext_Subject_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
3766 fc = &graphql.FieldContext{
3767 Object: "Subject",
3768 Field: field,
3769 IsMethod: false,
3770 IsResolver: false,
3771 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
3772 return nil, errors.New("field of type Time does not have child fields")
3773 },
3774 }
3775 return fc, nil
3776 }
3777
3778 func (ec *executionContext) _Subject_name(ctx context.Context, field graphql.CollectedField, obj *ent.Subject) (ret graphql.Marshaler) {
3779 fc, err := ec.fieldContext_Subject_name(ctx, field)
3780 if err != nil {
3781 return graphql.Null
3782 }
3783 ctx = graphql.WithFieldContext(ctx, fc)
3784 defer func() {
3785 if r := recover(); r != nil {
3786 ec.Error(ctx, ec.Recover(ctx, r))
3787 ret = graphql.Null
3788 }
3789 }()
3790 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
3791 ctx = rctx // use context from middleware stack in children
3792 return obj.Name, nil
3793 })
3794 if err != nil {
3795 ec.Error(ctx, err)
3796 return graphql.Null
3797 }
3798 if resTmp == nil {
3799 if !graphql.HasFieldError(ctx, fc) {
3800 ec.Errorf(ctx, "must not be null")
3801 }
3802 return graphql.Null
3803 }
3804 res := resTmp.(string)
3805 fc.Result = res
3806 return ec.marshalNString2string(ctx, field.Selections, res)
3807 }
3808
3809 func (ec *executionContext) fieldContext_Subject_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
3810 fc = &graphql.FieldContext{
3811 Object: "Subject",
3812 Field: field,
3813 IsMethod: false,
3814 IsResolver: false,
3815 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
3816 return nil, errors.New("field of type String does not have child fields")
3817 },
3818 }
3819 return fc, nil
3820 }
3821
3822 func (ec *executionContext) _Subject_subjectDigests(ctx context.Context, field graphql.CollectedField, obj *ent.Subject) (ret graphql.Marshaler) {
3823 fc, err := ec.fieldContext_Subject_subjectDigests(ctx, field)
3824 if err != nil {
3825 return graphql.Null
3826 }
3827 ctx = graphql.WithFieldContext(ctx, fc)
3828 defer func() {
3829 if r := recover(); r != nil {
3830 ec.Error(ctx, ec.Recover(ctx, r))
3831 ret = graphql.Null
3832 }
3833 }()
3834 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
3835 ctx = rctx // use context from middleware stack in children
3836 return obj.SubjectDigests(ctx)
3837 })
3838 if err != nil {
3839 ec.Error(ctx, err)
3840 return graphql.Null
3841 }
3842 if resTmp == nil {
3843 return graphql.Null
3844 }
3845 res := resTmp.([]*ent.SubjectDigest)
3846 fc.Result = res
3847 return ec.marshalOSubjectDigest2ᚕᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐSubjectDigestᚄ(ctx, field.Selections, res)
3848 }
3849
3850 func (ec *executionContext) fieldContext_Subject_subjectDigests(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
3851 fc = &graphql.FieldContext{
3852 Object: "Subject",
3853 Field: field,
3854 IsMethod: true,
3855 IsResolver: false,
3856 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
3857 switch field.Name {
3858 case "id":
3859 return ec.fieldContext_SubjectDigest_id(ctx, field)
3860 case "algorithm":
3861 return ec.fieldContext_SubjectDigest_algorithm(ctx, field)
3862 case "value":
3863 return ec.fieldContext_SubjectDigest_value(ctx, field)
3864 case "subject":
3865 return ec.fieldContext_SubjectDigest_subject(ctx, field)
3866 }
3867 return nil, fmt.Errorf("no field named %q was found under type SubjectDigest", field.Name)
3868 },
3869 }
3870 return fc, nil
3871 }
3872
3873 func (ec *executionContext) _Subject_statement(ctx context.Context, field graphql.CollectedField, obj *ent.Subject) (ret graphql.Marshaler) {
3874 fc, err := ec.fieldContext_Subject_statement(ctx, field)
3875 if err != nil {
3876 return graphql.Null
3877 }
3878 ctx = graphql.WithFieldContext(ctx, fc)
3879 defer func() {
3880 if r := recover(); r != nil {
3881 ec.Error(ctx, ec.Recover(ctx, r))
3882 ret = graphql.Null
3883 }
3884 }()
3885 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
3886 ctx = rctx // use context from middleware stack in children
3887 return obj.Statement(ctx)
3888 })
3889 if err != nil {
3890 ec.Error(ctx, err)
3891 return graphql.Null
3892 }
3893 if resTmp == nil {
3894 return graphql.Null
3895 }
3896 res := resTmp.(*ent.Statement)
3897 fc.Result = res
3898 return ec.marshalOStatement2ᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐStatement(ctx, field.Selections, res)
3899 }
3900
3901 func (ec *executionContext) fieldContext_Subject_statement(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
3902 fc = &graphql.FieldContext{
3903 Object: "Subject",
3904 Field: field,
3905 IsMethod: true,
3906 IsResolver: false,
3907 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
3908 switch field.Name {
3909 case "id":
3910 return ec.fieldContext_Statement_id(ctx, field)
3911 case "predicate":
3912 return ec.fieldContext_Statement_predicate(ctx, field)
3913 case "subjects":
3914 return ec.fieldContext_Statement_subjects(ctx, field)
3915 case "policy":
3916 return ec.fieldContext_Statement_policy(ctx, field)
3917 case "attestationCollections":
3918 return ec.fieldContext_Statement_attestationCollections(ctx, field)
3919 case "dsse":
3920 return ec.fieldContext_Statement_dsse(ctx, field)
3921 }
3922 return nil, fmt.Errorf("no field named %q was found under type Statement", field.Name)
3923 },
3924 }
3925 return fc, nil
3926 }
3927
3928 func (ec *executionContext) _SubjectConnection_edges(ctx context.Context, field graphql.CollectedField, obj *ent.SubjectConnection) (ret graphql.Marshaler) {
3929 fc, err := ec.fieldContext_SubjectConnection_edges(ctx, field)
3930 if err != nil {
3931 return graphql.Null
3932 }
3933 ctx = graphql.WithFieldContext(ctx, fc)
3934 defer func() {
3935 if r := recover(); r != nil {
3936 ec.Error(ctx, ec.Recover(ctx, r))
3937 ret = graphql.Null
3938 }
3939 }()
3940 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
3941 ctx = rctx // use context from middleware stack in children
3942 return obj.Edges, nil
3943 })
3944 if err != nil {
3945 ec.Error(ctx, err)
3946 return graphql.Null
3947 }
3948 if resTmp == nil {
3949 return graphql.Null
3950 }
3951 res := resTmp.([]*ent.SubjectEdge)
3952 fc.Result = res
3953 return ec.marshalOSubjectEdge2ᚕᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐSubjectEdge(ctx, field.Selections, res)
3954 }
3955
3956 func (ec *executionContext) fieldContext_SubjectConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
3957 fc = &graphql.FieldContext{
3958 Object: "SubjectConnection",
3959 Field: field,
3960 IsMethod: false,
3961 IsResolver: false,
3962 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
3963 switch field.Name {
3964 case "node":
3965 return ec.fieldContext_SubjectEdge_node(ctx, field)
3966 case "cursor":
3967 return ec.fieldContext_SubjectEdge_cursor(ctx, field)
3968 }
3969 return nil, fmt.Errorf("no field named %q was found under type SubjectEdge", field.Name)
3970 },
3971 }
3972 return fc, nil
3973 }
3974
3975 func (ec *executionContext) _SubjectConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *ent.SubjectConnection) (ret graphql.Marshaler) {
3976 fc, err := ec.fieldContext_SubjectConnection_pageInfo(ctx, field)
3977 if err != nil {
3978 return graphql.Null
3979 }
3980 ctx = graphql.WithFieldContext(ctx, fc)
3981 defer func() {
3982 if r := recover(); r != nil {
3983 ec.Error(ctx, ec.Recover(ctx, r))
3984 ret = graphql.Null
3985 }
3986 }()
3987 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
3988 ctx = rctx // use context from middleware stack in children
3989 return obj.PageInfo, nil
3990 })
3991 if err != nil {
3992 ec.Error(ctx, err)
3993 return graphql.Null
3994 }
3995 if resTmp == nil {
3996 if !graphql.HasFieldError(ctx, fc) {
3997 ec.Errorf(ctx, "must not be null")
3998 }
3999 return graphql.Null
4000 }
4001 res := resTmp.(entgql.PageInfo[uuid.UUID])
4002 fc.Result = res
4003 return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res)
4004 }
4005
4006 func (ec *executionContext) fieldContext_SubjectConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
4007 fc = &graphql.FieldContext{
4008 Object: "SubjectConnection",
4009 Field: field,
4010 IsMethod: false,
4011 IsResolver: false,
4012 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
4013 switch field.Name {
4014 case "hasNextPage":
4015 return ec.fieldContext_PageInfo_hasNextPage(ctx, field)
4016 case "hasPreviousPage":
4017 return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field)
4018 case "startCursor":
4019 return ec.fieldContext_PageInfo_startCursor(ctx, field)
4020 case "endCursor":
4021 return ec.fieldContext_PageInfo_endCursor(ctx, field)
4022 }
4023 return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name)
4024 },
4025 }
4026 return fc, nil
4027 }
4028
4029 func (ec *executionContext) _SubjectConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *ent.SubjectConnection) (ret graphql.Marshaler) {
4030 fc, err := ec.fieldContext_SubjectConnection_totalCount(ctx, field)
4031 if err != nil {
4032 return graphql.Null
4033 }
4034 ctx = graphql.WithFieldContext(ctx, fc)
4035 defer func() {
4036 if r := recover(); r != nil {
4037 ec.Error(ctx, ec.Recover(ctx, r))
4038 ret = graphql.Null
4039 }
4040 }()
4041 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
4042 ctx = rctx // use context from middleware stack in children
4043 return obj.TotalCount, nil
4044 })
4045 if err != nil {
4046 ec.Error(ctx, err)
4047 return graphql.Null
4048 }
4049 if resTmp == nil {
4050 if !graphql.HasFieldError(ctx, fc) {
4051 ec.Errorf(ctx, "must not be null")
4052 }
4053 return graphql.Null
4054 }
4055 res := resTmp.(int)
4056 fc.Result = res
4057 return ec.marshalNInt2int(ctx, field.Selections, res)
4058 }
4059
4060 func (ec *executionContext) fieldContext_SubjectConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
4061 fc = &graphql.FieldContext{
4062 Object: "SubjectConnection",
4063 Field: field,
4064 IsMethod: false,
4065 IsResolver: false,
4066 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
4067 return nil, errors.New("field of type Int does not have child fields")
4068 },
4069 }
4070 return fc, nil
4071 }
4072
4073 func (ec *executionContext) _SubjectDigest_id(ctx context.Context, field graphql.CollectedField, obj *ent.SubjectDigest) (ret graphql.Marshaler) {
4074 fc, err := ec.fieldContext_SubjectDigest_id(ctx, field)
4075 if err != nil {
4076 return graphql.Null
4077 }
4078 ctx = graphql.WithFieldContext(ctx, fc)
4079 defer func() {
4080 if r := recover(); r != nil {
4081 ec.Error(ctx, ec.Recover(ctx, r))
4082 ret = graphql.Null
4083 }
4084 }()
4085 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
4086 ctx = rctx // use context from middleware stack in children
4087 return obj.ID, nil
4088 })
4089 if err != nil {
4090 ec.Error(ctx, err)
4091 return graphql.Null
4092 }
4093 if resTmp == nil {
4094 if !graphql.HasFieldError(ctx, fc) {
4095 ec.Errorf(ctx, "must not be null")
4096 }
4097 return graphql.Null
4098 }
4099 res := resTmp.(uuid.UUID)
4100 fc.Result = res
4101 return ec.marshalNID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res)
4102 }
4103
4104 func (ec *executionContext) fieldContext_SubjectDigest_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
4105 fc = &graphql.FieldContext{
4106 Object: "SubjectDigest",
4107 Field: field,
4108 IsMethod: false,
4109 IsResolver: false,
4110 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
4111 return nil, errors.New("field of type ID does not have child fields")
4112 },
4113 }
4114 return fc, nil
4115 }
4116
4117 func (ec *executionContext) _SubjectDigest_algorithm(ctx context.Context, field graphql.CollectedField, obj *ent.SubjectDigest) (ret graphql.Marshaler) {
4118 fc, err := ec.fieldContext_SubjectDigest_algorithm(ctx, field)
4119 if err != nil {
4120 return graphql.Null
4121 }
4122 ctx = graphql.WithFieldContext(ctx, fc)
4123 defer func() {
4124 if r := recover(); r != nil {
4125 ec.Error(ctx, ec.Recover(ctx, r))
4126 ret = graphql.Null
4127 }
4128 }()
4129 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
4130 ctx = rctx // use context from middleware stack in children
4131 return obj.Algorithm, nil
4132 })
4133 if err != nil {
4134 ec.Error(ctx, err)
4135 return graphql.Null
4136 }
4137 if resTmp == nil {
4138 if !graphql.HasFieldError(ctx, fc) {
4139 ec.Errorf(ctx, "must not be null")
4140 }
4141 return graphql.Null
4142 }
4143 res := resTmp.(string)
4144 fc.Result = res
4145 return ec.marshalNString2string(ctx, field.Selections, res)
4146 }
4147
4148 func (ec *executionContext) fieldContext_SubjectDigest_algorithm(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
4149 fc = &graphql.FieldContext{
4150 Object: "SubjectDigest",
4151 Field: field,
4152 IsMethod: false,
4153 IsResolver: false,
4154 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
4155 return nil, errors.New("field of type String does not have child fields")
4156 },
4157 }
4158 return fc, nil
4159 }
4160
4161 func (ec *executionContext) _SubjectDigest_value(ctx context.Context, field graphql.CollectedField, obj *ent.SubjectDigest) (ret graphql.Marshaler) {
4162 fc, err := ec.fieldContext_SubjectDigest_value(ctx, field)
4163 if err != nil {
4164 return graphql.Null
4165 }
4166 ctx = graphql.WithFieldContext(ctx, fc)
4167 defer func() {
4168 if r := recover(); r != nil {
4169 ec.Error(ctx, ec.Recover(ctx, r))
4170 ret = graphql.Null
4171 }
4172 }()
4173 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
4174 ctx = rctx // use context from middleware stack in children
4175 return obj.Value, nil
4176 })
4177 if err != nil {
4178 ec.Error(ctx, err)
4179 return graphql.Null
4180 }
4181 if resTmp == nil {
4182 if !graphql.HasFieldError(ctx, fc) {
4183 ec.Errorf(ctx, "must not be null")
4184 }
4185 return graphql.Null
4186 }
4187 res := resTmp.(string)
4188 fc.Result = res
4189 return ec.marshalNString2string(ctx, field.Selections, res)
4190 }
4191
4192 func (ec *executionContext) fieldContext_SubjectDigest_value(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
4193 fc = &graphql.FieldContext{
4194 Object: "SubjectDigest",
4195 Field: field,
4196 IsMethod: false,
4197 IsResolver: false,
4198 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
4199 return nil, errors.New("field of type String does not have child fields")
4200 },
4201 }
4202 return fc, nil
4203 }
4204
4205 func (ec *executionContext) _SubjectDigest_subject(ctx context.Context, field graphql.CollectedField, obj *ent.SubjectDigest) (ret graphql.Marshaler) {
4206 fc, err := ec.fieldContext_SubjectDigest_subject(ctx, field)
4207 if err != nil {
4208 return graphql.Null
4209 }
4210 ctx = graphql.WithFieldContext(ctx, fc)
4211 defer func() {
4212 if r := recover(); r != nil {
4213 ec.Error(ctx, ec.Recover(ctx, r))
4214 ret = graphql.Null
4215 }
4216 }()
4217 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
4218 ctx = rctx // use context from middleware stack in children
4219 return obj.Subject(ctx)
4220 })
4221 if err != nil {
4222 ec.Error(ctx, err)
4223 return graphql.Null
4224 }
4225 if resTmp == nil {
4226 return graphql.Null
4227 }
4228 res := resTmp.(*ent.Subject)
4229 fc.Result = res
4230 return ec.marshalOSubject2ᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐSubject(ctx, field.Selections, res)
4231 }
4232
4233 func (ec *executionContext) fieldContext_SubjectDigest_subject(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
4234 fc = &graphql.FieldContext{
4235 Object: "SubjectDigest",
4236 Field: field,
4237 IsMethod: true,
4238 IsResolver: false,
4239 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
4240 switch field.Name {
4241 case "id":
4242 return ec.fieldContext_Subject_id(ctx, field)
4243 case "createdAt":
4244 return ec.fieldContext_Subject_createdAt(ctx, field)
4245 case "name":
4246 return ec.fieldContext_Subject_name(ctx, field)
4247 case "subjectDigests":
4248 return ec.fieldContext_Subject_subjectDigests(ctx, field)
4249 case "statement":
4250 return ec.fieldContext_Subject_statement(ctx, field)
4251 }
4252 return nil, fmt.Errorf("no field named %q was found under type Subject", field.Name)
4253 },
4254 }
4255 return fc, nil
4256 }
4257
4258 func (ec *executionContext) _SubjectEdge_node(ctx context.Context, field graphql.CollectedField, obj *ent.SubjectEdge) (ret graphql.Marshaler) {
4259 fc, err := ec.fieldContext_SubjectEdge_node(ctx, field)
4260 if err != nil {
4261 return graphql.Null
4262 }
4263 ctx = graphql.WithFieldContext(ctx, fc)
4264 defer func() {
4265 if r := recover(); r != nil {
4266 ec.Error(ctx, ec.Recover(ctx, r))
4267 ret = graphql.Null
4268 }
4269 }()
4270 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
4271 ctx = rctx // use context from middleware stack in children
4272 return obj.Node, nil
4273 })
4274 if err != nil {
4275 ec.Error(ctx, err)
4276 return graphql.Null
4277 }
4278 if resTmp == nil {
4279 return graphql.Null
4280 }
4281 res := resTmp.(*ent.Subject)
4282 fc.Result = res
4283 return ec.marshalOSubject2ᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐSubject(ctx, field.Selections, res)
4284 }
4285
4286 func (ec *executionContext) fieldContext_SubjectEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
4287 fc = &graphql.FieldContext{
4288 Object: "SubjectEdge",
4289 Field: field,
4290 IsMethod: false,
4291 IsResolver: false,
4292 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
4293 switch field.Name {
4294 case "id":
4295 return ec.fieldContext_Subject_id(ctx, field)
4296 case "createdAt":
4297 return ec.fieldContext_Subject_createdAt(ctx, field)
4298 case "name":
4299 return ec.fieldContext_Subject_name(ctx, field)
4300 case "subjectDigests":
4301 return ec.fieldContext_Subject_subjectDigests(ctx, field)
4302 case "statement":
4303 return ec.fieldContext_Subject_statement(ctx, field)
4304 }
4305 return nil, fmt.Errorf("no field named %q was found under type Subject", field.Name)
4306 },
4307 }
4308 return fc, nil
4309 }
4310
4311 func (ec *executionContext) _SubjectEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *ent.SubjectEdge) (ret graphql.Marshaler) {
4312 fc, err := ec.fieldContext_SubjectEdge_cursor(ctx, field)
4313 if err != nil {
4314 return graphql.Null
4315 }
4316 ctx = graphql.WithFieldContext(ctx, fc)
4317 defer func() {
4318 if r := recover(); r != nil {
4319 ec.Error(ctx, ec.Recover(ctx, r))
4320 ret = graphql.Null
4321 }
4322 }()
4323 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
4324 ctx = rctx // use context from middleware stack in children
4325 return obj.Cursor, nil
4326 })
4327 if err != nil {
4328 ec.Error(ctx, err)
4329 return graphql.Null
4330 }
4331 if resTmp == nil {
4332 if !graphql.HasFieldError(ctx, fc) {
4333 ec.Errorf(ctx, "must not be null")
4334 }
4335 return graphql.Null
4336 }
4337 res := resTmp.(entgql.Cursor[uuid.UUID])
4338 fc.Result = res
4339 return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res)
4340 }
4341
4342 func (ec *executionContext) fieldContext_SubjectEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
4343 fc = &graphql.FieldContext{
4344 Object: "SubjectEdge",
4345 Field: field,
4346 IsMethod: false,
4347 IsResolver: false,
4348 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
4349 return nil, errors.New("field of type Cursor does not have child fields")
4350 },
4351 }
4352 return fc, nil
4353 }
4354
4355 func (ec *executionContext) _Timestamp_id(ctx context.Context, field graphql.CollectedField, obj *ent.Timestamp) (ret graphql.Marshaler) {
4356 fc, err := ec.fieldContext_Timestamp_id(ctx, field)
4357 if err != nil {
4358 return graphql.Null
4359 }
4360 ctx = graphql.WithFieldContext(ctx, fc)
4361 defer func() {
4362 if r := recover(); r != nil {
4363 ec.Error(ctx, ec.Recover(ctx, r))
4364 ret = graphql.Null
4365 }
4366 }()
4367 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
4368 ctx = rctx // use context from middleware stack in children
4369 return obj.ID, nil
4370 })
4371 if err != nil {
4372 ec.Error(ctx, err)
4373 return graphql.Null
4374 }
4375 if resTmp == nil {
4376 if !graphql.HasFieldError(ctx, fc) {
4377 ec.Errorf(ctx, "must not be null")
4378 }
4379 return graphql.Null
4380 }
4381 res := resTmp.(uuid.UUID)
4382 fc.Result = res
4383 return ec.marshalNID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res)
4384 }
4385
4386 func (ec *executionContext) fieldContext_Timestamp_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
4387 fc = &graphql.FieldContext{
4388 Object: "Timestamp",
4389 Field: field,
4390 IsMethod: false,
4391 IsResolver: false,
4392 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
4393 return nil, errors.New("field of type ID does not have child fields")
4394 },
4395 }
4396 return fc, nil
4397 }
4398
4399 func (ec *executionContext) _Timestamp_type(ctx context.Context, field graphql.CollectedField, obj *ent.Timestamp) (ret graphql.Marshaler) {
4400 fc, err := ec.fieldContext_Timestamp_type(ctx, field)
4401 if err != nil {
4402 return graphql.Null
4403 }
4404 ctx = graphql.WithFieldContext(ctx, fc)
4405 defer func() {
4406 if r := recover(); r != nil {
4407 ec.Error(ctx, ec.Recover(ctx, r))
4408 ret = graphql.Null
4409 }
4410 }()
4411 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
4412 ctx = rctx // use context from middleware stack in children
4413 return obj.Type, nil
4414 })
4415 if err != nil {
4416 ec.Error(ctx, err)
4417 return graphql.Null
4418 }
4419 if resTmp == nil {
4420 if !graphql.HasFieldError(ctx, fc) {
4421 ec.Errorf(ctx, "must not be null")
4422 }
4423 return graphql.Null
4424 }
4425 res := resTmp.(string)
4426 fc.Result = res
4427 return ec.marshalNString2string(ctx, field.Selections, res)
4428 }
4429
4430 func (ec *executionContext) fieldContext_Timestamp_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
4431 fc = &graphql.FieldContext{
4432 Object: "Timestamp",
4433 Field: field,
4434 IsMethod: false,
4435 IsResolver: false,
4436 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
4437 return nil, errors.New("field of type String does not have child fields")
4438 },
4439 }
4440 return fc, nil
4441 }
4442
4443 func (ec *executionContext) _Timestamp_timestamp(ctx context.Context, field graphql.CollectedField, obj *ent.Timestamp) (ret graphql.Marshaler) {
4444 fc, err := ec.fieldContext_Timestamp_timestamp(ctx, field)
4445 if err != nil {
4446 return graphql.Null
4447 }
4448 ctx = graphql.WithFieldContext(ctx, fc)
4449 defer func() {
4450 if r := recover(); r != nil {
4451 ec.Error(ctx, ec.Recover(ctx, r))
4452 ret = graphql.Null
4453 }
4454 }()
4455 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
4456 ctx = rctx // use context from middleware stack in children
4457 return obj.Timestamp, nil
4458 })
4459 if err != nil {
4460 ec.Error(ctx, err)
4461 return graphql.Null
4462 }
4463 if resTmp == nil {
4464 if !graphql.HasFieldError(ctx, fc) {
4465 ec.Errorf(ctx, "must not be null")
4466 }
4467 return graphql.Null
4468 }
4469 res := resTmp.(time.Time)
4470 fc.Result = res
4471 return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res)
4472 }
4473
4474 func (ec *executionContext) fieldContext_Timestamp_timestamp(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
4475 fc = &graphql.FieldContext{
4476 Object: "Timestamp",
4477 Field: field,
4478 IsMethod: false,
4479 IsResolver: false,
4480 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
4481 return nil, errors.New("field of type Time does not have child fields")
4482 },
4483 }
4484 return fc, nil
4485 }
4486
4487 func (ec *executionContext) _Timestamp_signature(ctx context.Context, field graphql.CollectedField, obj *ent.Timestamp) (ret graphql.Marshaler) {
4488 fc, err := ec.fieldContext_Timestamp_signature(ctx, field)
4489 if err != nil {
4490 return graphql.Null
4491 }
4492 ctx = graphql.WithFieldContext(ctx, fc)
4493 defer func() {
4494 if r := recover(); r != nil {
4495 ec.Error(ctx, ec.Recover(ctx, r))
4496 ret = graphql.Null
4497 }
4498 }()
4499 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
4500 ctx = rctx // use context from middleware stack in children
4501 return obj.Signature(ctx)
4502 })
4503 if err != nil {
4504 ec.Error(ctx, err)
4505 return graphql.Null
4506 }
4507 if resTmp == nil {
4508 return graphql.Null
4509 }
4510 res := resTmp.(*ent.Signature)
4511 fc.Result = res
4512 return ec.marshalOSignature2ᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐSignature(ctx, field.Selections, res)
4513 }
4514
4515 func (ec *executionContext) fieldContext_Timestamp_signature(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
4516 fc = &graphql.FieldContext{
4517 Object: "Timestamp",
4518 Field: field,
4519 IsMethod: true,
4520 IsResolver: false,
4521 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
4522 switch field.Name {
4523 case "id":
4524 return ec.fieldContext_Signature_id(ctx, field)
4525 case "keyID":
4526 return ec.fieldContext_Signature_keyID(ctx, field)
4527 case "signature":
4528 return ec.fieldContext_Signature_signature(ctx, field)
4529 case "dsse":
4530 return ec.fieldContext_Signature_dsse(ctx, field)
4531 case "timestamps":
4532 return ec.fieldContext_Signature_timestamps(ctx, field)
4533 }
4534 return nil, fmt.Errorf("no field named %q was found under type Signature", field.Name)
4535 },
4536 }
4537 return fc, nil
4538 }
4539
4540 func (ec *executionContext) ___Directive_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) {
4541 fc, err := ec.fieldContext___Directive_name(ctx, field)
4542 if err != nil {
4543 return graphql.Null
4544 }
4545 ctx = graphql.WithFieldContext(ctx, fc)
4546 defer func() {
4547 if r := recover(); r != nil {
4548 ec.Error(ctx, ec.Recover(ctx, r))
4549 ret = graphql.Null
4550 }
4551 }()
4552 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
4553 ctx = rctx // use context from middleware stack in children
4554 return obj.Name, nil
4555 })
4556 if err != nil {
4557 ec.Error(ctx, err)
4558 return graphql.Null
4559 }
4560 if resTmp == nil {
4561 if !graphql.HasFieldError(ctx, fc) {
4562 ec.Errorf(ctx, "must not be null")
4563 }
4564 return graphql.Null
4565 }
4566 res := resTmp.(string)
4567 fc.Result = res
4568 return ec.marshalNString2string(ctx, field.Selections, res)
4569 }
4570
4571 func (ec *executionContext) fieldContext___Directive_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
4572 fc = &graphql.FieldContext{
4573 Object: "__Directive",
4574 Field: field,
4575 IsMethod: false,
4576 IsResolver: false,
4577 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
4578 return nil, errors.New("field of type String does not have child fields")
4579 },
4580 }
4581 return fc, nil
4582 }
4583
4584 func (ec *executionContext) ___Directive_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) {
4585 fc, err := ec.fieldContext___Directive_description(ctx, field)
4586 if err != nil {
4587 return graphql.Null
4588 }
4589 ctx = graphql.WithFieldContext(ctx, fc)
4590 defer func() {
4591 if r := recover(); r != nil {
4592 ec.Error(ctx, ec.Recover(ctx, r))
4593 ret = graphql.Null
4594 }
4595 }()
4596 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
4597 ctx = rctx // use context from middleware stack in children
4598 return obj.Description(), nil
4599 })
4600 if err != nil {
4601 ec.Error(ctx, err)
4602 return graphql.Null
4603 }
4604 if resTmp == nil {
4605 return graphql.Null
4606 }
4607 res := resTmp.(*string)
4608 fc.Result = res
4609 return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
4610 }
4611
4612 func (ec *executionContext) fieldContext___Directive_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
4613 fc = &graphql.FieldContext{
4614 Object: "__Directive",
4615 Field: field,
4616 IsMethod: true,
4617 IsResolver: false,
4618 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
4619 return nil, errors.New("field of type String does not have child fields")
4620 },
4621 }
4622 return fc, nil
4623 }
4624
4625 func (ec *executionContext) ___Directive_isRepeatable(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) {
4626 fc, err := ec.fieldContext___Directive_isRepeatable(ctx, field)
4627 if err != nil {
4628 return graphql.Null
4629 }
4630 ctx = graphql.WithFieldContext(ctx, fc)
4631 defer func() {
4632 if r := recover(); r != nil {
4633 ec.Error(ctx, ec.Recover(ctx, r))
4634 ret = graphql.Null
4635 }
4636 }()
4637 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
4638 ctx = rctx // use context from middleware stack in children
4639 return obj.IsRepeatable, nil
4640 })
4641 if err != nil {
4642 ec.Error(ctx, err)
4643 return graphql.Null
4644 }
4645 if resTmp == nil {
4646 if !graphql.HasFieldError(ctx, fc) {
4647 ec.Errorf(ctx, "must not be null")
4648 }
4649 return graphql.Null
4650 }
4651 res := resTmp.(bool)
4652 fc.Result = res
4653 return ec.marshalNBoolean2bool(ctx, field.Selections, res)
4654 }
4655
4656 func (ec *executionContext) fieldContext___Directive_isRepeatable(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
4657 fc = &graphql.FieldContext{
4658 Object: "__Directive",
4659 Field: field,
4660 IsMethod: false,
4661 IsResolver: false,
4662 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
4663 return nil, errors.New("field of type Boolean does not have child fields")
4664 },
4665 }
4666 return fc, nil
4667 }
4668
4669 func (ec *executionContext) ___Directive_locations(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) {
4670 fc, err := ec.fieldContext___Directive_locations(ctx, field)
4671 if err != nil {
4672 return graphql.Null
4673 }
4674 ctx = graphql.WithFieldContext(ctx, fc)
4675 defer func() {
4676 if r := recover(); r != nil {
4677 ec.Error(ctx, ec.Recover(ctx, r))
4678 ret = graphql.Null
4679 }
4680 }()
4681 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
4682 ctx = rctx // use context from middleware stack in children
4683 return obj.Locations, nil
4684 })
4685 if err != nil {
4686 ec.Error(ctx, err)
4687 return graphql.Null
4688 }
4689 if resTmp == nil {
4690 if !graphql.HasFieldError(ctx, fc) {
4691 ec.Errorf(ctx, "must not be null")
4692 }
4693 return graphql.Null
4694 }
4695 res := resTmp.([]string)
4696 fc.Result = res
4697 return ec.marshalN__DirectiveLocation2ᚕstringᚄ(ctx, field.Selections, res)
4698 }
4699
4700 func (ec *executionContext) fieldContext___Directive_locations(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
4701 fc = &graphql.FieldContext{
4702 Object: "__Directive",
4703 Field: field,
4704 IsMethod: false,
4705 IsResolver: false,
4706 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
4707 return nil, errors.New("field of type __DirectiveLocation does not have child fields")
4708 },
4709 }
4710 return fc, nil
4711 }
4712
4713 func (ec *executionContext) ___Directive_args(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) {
4714 fc, err := ec.fieldContext___Directive_args(ctx, field)
4715 if err != nil {
4716 return graphql.Null
4717 }
4718 ctx = graphql.WithFieldContext(ctx, fc)
4719 defer func() {
4720 if r := recover(); r != nil {
4721 ec.Error(ctx, ec.Recover(ctx, r))
4722 ret = graphql.Null
4723 }
4724 }()
4725 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
4726 ctx = rctx // use context from middleware stack in children
4727 return obj.Args, nil
4728 })
4729 if err != nil {
4730 ec.Error(ctx, err)
4731 return graphql.Null
4732 }
4733 if resTmp == nil {
4734 if !graphql.HasFieldError(ctx, fc) {
4735 ec.Errorf(ctx, "must not be null")
4736 }
4737 return graphql.Null
4738 }
4739 res := resTmp.([]introspection.InputValue)
4740 fc.Result = res
4741 return ec.marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx, field.Selections, res)
4742 }
4743
4744 func (ec *executionContext) fieldContext___Directive_args(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
4745 fc = &graphql.FieldContext{
4746 Object: "__Directive",
4747 Field: field,
4748 IsMethod: false,
4749 IsResolver: false,
4750 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
4751 switch field.Name {
4752 case "name":
4753 return ec.fieldContext___InputValue_name(ctx, field)
4754 case "description":
4755 return ec.fieldContext___InputValue_description(ctx, field)
4756 case "type":
4757 return ec.fieldContext___InputValue_type(ctx, field)
4758 case "defaultValue":
4759 return ec.fieldContext___InputValue_defaultValue(ctx, field)
4760 case "isDeprecated":
4761 return ec.fieldContext___InputValue_isDeprecated(ctx, field)
4762 case "deprecationReason":
4763 return ec.fieldContext___InputValue_deprecationReason(ctx, field)
4764 }
4765 return nil, fmt.Errorf("no field named %q was found under type __InputValue", field.Name)
4766 },
4767 }
4768 defer func() {
4769 if r := recover(); r != nil {
4770 err = ec.Recover(ctx, r)
4771 ec.Error(ctx, err)
4772 }
4773 }()
4774 ctx = graphql.WithFieldContext(ctx, fc)
4775 if fc.Args, err = ec.field___Directive_args_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
4776 ec.Error(ctx, err)
4777 return fc, err
4778 }
4779 return fc, nil
4780 }
4781
4782 func (ec *executionContext) ___EnumValue_name(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) {
4783 fc, err := ec.fieldContext___EnumValue_name(ctx, field)
4784 if err != nil {
4785 return graphql.Null
4786 }
4787 ctx = graphql.WithFieldContext(ctx, fc)
4788 defer func() {
4789 if r := recover(); r != nil {
4790 ec.Error(ctx, ec.Recover(ctx, r))
4791 ret = graphql.Null
4792 }
4793 }()
4794 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
4795 ctx = rctx // use context from middleware stack in children
4796 return obj.Name, nil
4797 })
4798 if err != nil {
4799 ec.Error(ctx, err)
4800 return graphql.Null
4801 }
4802 if resTmp == nil {
4803 if !graphql.HasFieldError(ctx, fc) {
4804 ec.Errorf(ctx, "must not be null")
4805 }
4806 return graphql.Null
4807 }
4808 res := resTmp.(string)
4809 fc.Result = res
4810 return ec.marshalNString2string(ctx, field.Selections, res)
4811 }
4812
4813 func (ec *executionContext) fieldContext___EnumValue_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
4814 fc = &graphql.FieldContext{
4815 Object: "__EnumValue",
4816 Field: field,
4817 IsMethod: false,
4818 IsResolver: false,
4819 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
4820 return nil, errors.New("field of type String does not have child fields")
4821 },
4822 }
4823 return fc, nil
4824 }
4825
4826 func (ec *executionContext) ___EnumValue_description(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) {
4827 fc, err := ec.fieldContext___EnumValue_description(ctx, field)
4828 if err != nil {
4829 return graphql.Null
4830 }
4831 ctx = graphql.WithFieldContext(ctx, fc)
4832 defer func() {
4833 if r := recover(); r != nil {
4834 ec.Error(ctx, ec.Recover(ctx, r))
4835 ret = graphql.Null
4836 }
4837 }()
4838 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
4839 ctx = rctx // use context from middleware stack in children
4840 return obj.Description(), nil
4841 })
4842 if err != nil {
4843 ec.Error(ctx, err)
4844 return graphql.Null
4845 }
4846 if resTmp == nil {
4847 return graphql.Null
4848 }
4849 res := resTmp.(*string)
4850 fc.Result = res
4851 return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
4852 }
4853
4854 func (ec *executionContext) fieldContext___EnumValue_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
4855 fc = &graphql.FieldContext{
4856 Object: "__EnumValue",
4857 Field: field,
4858 IsMethod: true,
4859 IsResolver: false,
4860 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
4861 return nil, errors.New("field of type String does not have child fields")
4862 },
4863 }
4864 return fc, nil
4865 }
4866
4867 func (ec *executionContext) ___EnumValue_isDeprecated(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) {
4868 fc, err := ec.fieldContext___EnumValue_isDeprecated(ctx, field)
4869 if err != nil {
4870 return graphql.Null
4871 }
4872 ctx = graphql.WithFieldContext(ctx, fc)
4873 defer func() {
4874 if r := recover(); r != nil {
4875 ec.Error(ctx, ec.Recover(ctx, r))
4876 ret = graphql.Null
4877 }
4878 }()
4879 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
4880 ctx = rctx // use context from middleware stack in children
4881 return obj.IsDeprecated(), nil
4882 })
4883 if err != nil {
4884 ec.Error(ctx, err)
4885 return graphql.Null
4886 }
4887 if resTmp == nil {
4888 if !graphql.HasFieldError(ctx, fc) {
4889 ec.Errorf(ctx, "must not be null")
4890 }
4891 return graphql.Null
4892 }
4893 res := resTmp.(bool)
4894 fc.Result = res
4895 return ec.marshalNBoolean2bool(ctx, field.Selections, res)
4896 }
4897
4898 func (ec *executionContext) fieldContext___EnumValue_isDeprecated(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
4899 fc = &graphql.FieldContext{
4900 Object: "__EnumValue",
4901 Field: field,
4902 IsMethod: true,
4903 IsResolver: false,
4904 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
4905 return nil, errors.New("field of type Boolean does not have child fields")
4906 },
4907 }
4908 return fc, nil
4909 }
4910
4911 func (ec *executionContext) ___EnumValue_deprecationReason(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) {
4912 fc, err := ec.fieldContext___EnumValue_deprecationReason(ctx, field)
4913 if err != nil {
4914 return graphql.Null
4915 }
4916 ctx = graphql.WithFieldContext(ctx, fc)
4917 defer func() {
4918 if r := recover(); r != nil {
4919 ec.Error(ctx, ec.Recover(ctx, r))
4920 ret = graphql.Null
4921 }
4922 }()
4923 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
4924 ctx = rctx // use context from middleware stack in children
4925 return obj.DeprecationReason(), nil
4926 })
4927 if err != nil {
4928 ec.Error(ctx, err)
4929 return graphql.Null
4930 }
4931 if resTmp == nil {
4932 return graphql.Null
4933 }
4934 res := resTmp.(*string)
4935 fc.Result = res
4936 return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
4937 }
4938
4939 func (ec *executionContext) fieldContext___EnumValue_deprecationReason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
4940 fc = &graphql.FieldContext{
4941 Object: "__EnumValue",
4942 Field: field,
4943 IsMethod: true,
4944 IsResolver: false,
4945 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
4946 return nil, errors.New("field of type String does not have child fields")
4947 },
4948 }
4949 return fc, nil
4950 }
4951
4952 func (ec *executionContext) ___Field_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) {
4953 fc, err := ec.fieldContext___Field_name(ctx, field)
4954 if err != nil {
4955 return graphql.Null
4956 }
4957 ctx = graphql.WithFieldContext(ctx, fc)
4958 defer func() {
4959 if r := recover(); r != nil {
4960 ec.Error(ctx, ec.Recover(ctx, r))
4961 ret = graphql.Null
4962 }
4963 }()
4964 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
4965 ctx = rctx // use context from middleware stack in children
4966 return obj.Name, nil
4967 })
4968 if err != nil {
4969 ec.Error(ctx, err)
4970 return graphql.Null
4971 }
4972 if resTmp == nil {
4973 if !graphql.HasFieldError(ctx, fc) {
4974 ec.Errorf(ctx, "must not be null")
4975 }
4976 return graphql.Null
4977 }
4978 res := resTmp.(string)
4979 fc.Result = res
4980 return ec.marshalNString2string(ctx, field.Selections, res)
4981 }
4982
4983 func (ec *executionContext) fieldContext___Field_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
4984 fc = &graphql.FieldContext{
4985 Object: "__Field",
4986 Field: field,
4987 IsMethod: false,
4988 IsResolver: false,
4989 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
4990 return nil, errors.New("field of type String does not have child fields")
4991 },
4992 }
4993 return fc, nil
4994 }
4995
4996 func (ec *executionContext) ___Field_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) {
4997 fc, err := ec.fieldContext___Field_description(ctx, field)
4998 if err != nil {
4999 return graphql.Null
5000 }
5001 ctx = graphql.WithFieldContext(ctx, fc)
5002 defer func() {
5003 if r := recover(); r != nil {
5004 ec.Error(ctx, ec.Recover(ctx, r))
5005 ret = graphql.Null
5006 }
5007 }()
5008 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
5009 ctx = rctx // use context from middleware stack in children
5010 return obj.Description(), nil
5011 })
5012 if err != nil {
5013 ec.Error(ctx, err)
5014 return graphql.Null
5015 }
5016 if resTmp == nil {
5017 return graphql.Null
5018 }
5019 res := resTmp.(*string)
5020 fc.Result = res
5021 return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
5022 }
5023
5024 func (ec *executionContext) fieldContext___Field_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
5025 fc = &graphql.FieldContext{
5026 Object: "__Field",
5027 Field: field,
5028 IsMethod: true,
5029 IsResolver: false,
5030 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
5031 return nil, errors.New("field of type String does not have child fields")
5032 },
5033 }
5034 return fc, nil
5035 }
5036
5037 func (ec *executionContext) ___Field_args(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) {
5038 fc, err := ec.fieldContext___Field_args(ctx, field)
5039 if err != nil {
5040 return graphql.Null
5041 }
5042 ctx = graphql.WithFieldContext(ctx, fc)
5043 defer func() {
5044 if r := recover(); r != nil {
5045 ec.Error(ctx, ec.Recover(ctx, r))
5046 ret = graphql.Null
5047 }
5048 }()
5049 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
5050 ctx = rctx // use context from middleware stack in children
5051 return obj.Args, nil
5052 })
5053 if err != nil {
5054 ec.Error(ctx, err)
5055 return graphql.Null
5056 }
5057 if resTmp == nil {
5058 if !graphql.HasFieldError(ctx, fc) {
5059 ec.Errorf(ctx, "must not be null")
5060 }
5061 return graphql.Null
5062 }
5063 res := resTmp.([]introspection.InputValue)
5064 fc.Result = res
5065 return ec.marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx, field.Selections, res)
5066 }
5067
5068 func (ec *executionContext) fieldContext___Field_args(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
5069 fc = &graphql.FieldContext{
5070 Object: "__Field",
5071 Field: field,
5072 IsMethod: false,
5073 IsResolver: false,
5074 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
5075 switch field.Name {
5076 case "name":
5077 return ec.fieldContext___InputValue_name(ctx, field)
5078 case "description":
5079 return ec.fieldContext___InputValue_description(ctx, field)
5080 case "type":
5081 return ec.fieldContext___InputValue_type(ctx, field)
5082 case "defaultValue":
5083 return ec.fieldContext___InputValue_defaultValue(ctx, field)
5084 case "isDeprecated":
5085 return ec.fieldContext___InputValue_isDeprecated(ctx, field)
5086 case "deprecationReason":
5087 return ec.fieldContext___InputValue_deprecationReason(ctx, field)
5088 }
5089 return nil, fmt.Errorf("no field named %q was found under type __InputValue", field.Name)
5090 },
5091 }
5092 defer func() {
5093 if r := recover(); r != nil {
5094 err = ec.Recover(ctx, r)
5095 ec.Error(ctx, err)
5096 }
5097 }()
5098 ctx = graphql.WithFieldContext(ctx, fc)
5099 if fc.Args, err = ec.field___Field_args_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
5100 ec.Error(ctx, err)
5101 return fc, err
5102 }
5103 return fc, nil
5104 }
5105
5106 func (ec *executionContext) ___Field_type(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) {
5107 fc, err := ec.fieldContext___Field_type(ctx, field)
5108 if err != nil {
5109 return graphql.Null
5110 }
5111 ctx = graphql.WithFieldContext(ctx, fc)
5112 defer func() {
5113 if r := recover(); r != nil {
5114 ec.Error(ctx, ec.Recover(ctx, r))
5115 ret = graphql.Null
5116 }
5117 }()
5118 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
5119 ctx = rctx // use context from middleware stack in children
5120 return obj.Type, nil
5121 })
5122 if err != nil {
5123 ec.Error(ctx, err)
5124 return graphql.Null
5125 }
5126 if resTmp == nil {
5127 if !graphql.HasFieldError(ctx, fc) {
5128 ec.Errorf(ctx, "must not be null")
5129 }
5130 return graphql.Null
5131 }
5132 res := resTmp.(*introspection.Type)
5133 fc.Result = res
5134 return ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res)
5135 }
5136
5137 func (ec *executionContext) fieldContext___Field_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
5138 fc = &graphql.FieldContext{
5139 Object: "__Field",
5140 Field: field,
5141 IsMethod: false,
5142 IsResolver: false,
5143 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
5144 switch field.Name {
5145 case "kind":
5146 return ec.fieldContext___Type_kind(ctx, field)
5147 case "name":
5148 return ec.fieldContext___Type_name(ctx, field)
5149 case "description":
5150 return ec.fieldContext___Type_description(ctx, field)
5151 case "specifiedByURL":
5152 return ec.fieldContext___Type_specifiedByURL(ctx, field)
5153 case "fields":
5154 return ec.fieldContext___Type_fields(ctx, field)
5155 case "interfaces":
5156 return ec.fieldContext___Type_interfaces(ctx, field)
5157 case "possibleTypes":
5158 return ec.fieldContext___Type_possibleTypes(ctx, field)
5159 case "enumValues":
5160 return ec.fieldContext___Type_enumValues(ctx, field)
5161 case "inputFields":
5162 return ec.fieldContext___Type_inputFields(ctx, field)
5163 case "ofType":
5164 return ec.fieldContext___Type_ofType(ctx, field)
5165 case "isOneOf":
5166 return ec.fieldContext___Type_isOneOf(ctx, field)
5167 }
5168 return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
5169 },
5170 }
5171 return fc, nil
5172 }
5173
5174 func (ec *executionContext) ___Field_isDeprecated(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) {
5175 fc, err := ec.fieldContext___Field_isDeprecated(ctx, field)
5176 if err != nil {
5177 return graphql.Null
5178 }
5179 ctx = graphql.WithFieldContext(ctx, fc)
5180 defer func() {
5181 if r := recover(); r != nil {
5182 ec.Error(ctx, ec.Recover(ctx, r))
5183 ret = graphql.Null
5184 }
5185 }()
5186 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
5187 ctx = rctx // use context from middleware stack in children
5188 return obj.IsDeprecated(), nil
5189 })
5190 if err != nil {
5191 ec.Error(ctx, err)
5192 return graphql.Null
5193 }
5194 if resTmp == nil {
5195 if !graphql.HasFieldError(ctx, fc) {
5196 ec.Errorf(ctx, "must not be null")
5197 }
5198 return graphql.Null
5199 }
5200 res := resTmp.(bool)
5201 fc.Result = res
5202 return ec.marshalNBoolean2bool(ctx, field.Selections, res)
5203 }
5204
5205 func (ec *executionContext) fieldContext___Field_isDeprecated(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
5206 fc = &graphql.FieldContext{
5207 Object: "__Field",
5208 Field: field,
5209 IsMethod: true,
5210 IsResolver: false,
5211 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
5212 return nil, errors.New("field of type Boolean does not have child fields")
5213 },
5214 }
5215 return fc, nil
5216 }
5217
5218 func (ec *executionContext) ___Field_deprecationReason(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) {
5219 fc, err := ec.fieldContext___Field_deprecationReason(ctx, field)
5220 if err != nil {
5221 return graphql.Null
5222 }
5223 ctx = graphql.WithFieldContext(ctx, fc)
5224 defer func() {
5225 if r := recover(); r != nil {
5226 ec.Error(ctx, ec.Recover(ctx, r))
5227 ret = graphql.Null
5228 }
5229 }()
5230 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
5231 ctx = rctx // use context from middleware stack in children
5232 return obj.DeprecationReason(), nil
5233 })
5234 if err != nil {
5235 ec.Error(ctx, err)
5236 return graphql.Null
5237 }
5238 if resTmp == nil {
5239 return graphql.Null
5240 }
5241 res := resTmp.(*string)
5242 fc.Result = res
5243 return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
5244 }
5245
5246 func (ec *executionContext) fieldContext___Field_deprecationReason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
5247 fc = &graphql.FieldContext{
5248 Object: "__Field",
5249 Field: field,
5250 IsMethod: true,
5251 IsResolver: false,
5252 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
5253 return nil, errors.New("field of type String does not have child fields")
5254 },
5255 }
5256 return fc, nil
5257 }
5258
5259 func (ec *executionContext) ___InputValue_name(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) {
5260 fc, err := ec.fieldContext___InputValue_name(ctx, field)
5261 if err != nil {
5262 return graphql.Null
5263 }
5264 ctx = graphql.WithFieldContext(ctx, fc)
5265 defer func() {
5266 if r := recover(); r != nil {
5267 ec.Error(ctx, ec.Recover(ctx, r))
5268 ret = graphql.Null
5269 }
5270 }()
5271 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
5272 ctx = rctx // use context from middleware stack in children
5273 return obj.Name, nil
5274 })
5275 if err != nil {
5276 ec.Error(ctx, err)
5277 return graphql.Null
5278 }
5279 if resTmp == nil {
5280 if !graphql.HasFieldError(ctx, fc) {
5281 ec.Errorf(ctx, "must not be null")
5282 }
5283 return graphql.Null
5284 }
5285 res := resTmp.(string)
5286 fc.Result = res
5287 return ec.marshalNString2string(ctx, field.Selections, res)
5288 }
5289
5290 func (ec *executionContext) fieldContext___InputValue_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
5291 fc = &graphql.FieldContext{
5292 Object: "__InputValue",
5293 Field: field,
5294 IsMethod: false,
5295 IsResolver: false,
5296 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
5297 return nil, errors.New("field of type String does not have child fields")
5298 },
5299 }
5300 return fc, nil
5301 }
5302
5303 func (ec *executionContext) ___InputValue_description(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) {
5304 fc, err := ec.fieldContext___InputValue_description(ctx, field)
5305 if err != nil {
5306 return graphql.Null
5307 }
5308 ctx = graphql.WithFieldContext(ctx, fc)
5309 defer func() {
5310 if r := recover(); r != nil {
5311 ec.Error(ctx, ec.Recover(ctx, r))
5312 ret = graphql.Null
5313 }
5314 }()
5315 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
5316 ctx = rctx // use context from middleware stack in children
5317 return obj.Description(), nil
5318 })
5319 if err != nil {
5320 ec.Error(ctx, err)
5321 return graphql.Null
5322 }
5323 if resTmp == nil {
5324 return graphql.Null
5325 }
5326 res := resTmp.(*string)
5327 fc.Result = res
5328 return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
5329 }
5330
5331 func (ec *executionContext) fieldContext___InputValue_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
5332 fc = &graphql.FieldContext{
5333 Object: "__InputValue",
5334 Field: field,
5335 IsMethod: true,
5336 IsResolver: false,
5337 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
5338 return nil, errors.New("field of type String does not have child fields")
5339 },
5340 }
5341 return fc, nil
5342 }
5343
5344 func (ec *executionContext) ___InputValue_type(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) {
5345 fc, err := ec.fieldContext___InputValue_type(ctx, field)
5346 if err != nil {
5347 return graphql.Null
5348 }
5349 ctx = graphql.WithFieldContext(ctx, fc)
5350 defer func() {
5351 if r := recover(); r != nil {
5352 ec.Error(ctx, ec.Recover(ctx, r))
5353 ret = graphql.Null
5354 }
5355 }()
5356 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
5357 ctx = rctx // use context from middleware stack in children
5358 return obj.Type, nil
5359 })
5360 if err != nil {
5361 ec.Error(ctx, err)
5362 return graphql.Null
5363 }
5364 if resTmp == nil {
5365 if !graphql.HasFieldError(ctx, fc) {
5366 ec.Errorf(ctx, "must not be null")
5367 }
5368 return graphql.Null
5369 }
5370 res := resTmp.(*introspection.Type)
5371 fc.Result = res
5372 return ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res)
5373 }
5374
5375 func (ec *executionContext) fieldContext___InputValue_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
5376 fc = &graphql.FieldContext{
5377 Object: "__InputValue",
5378 Field: field,
5379 IsMethod: false,
5380 IsResolver: false,
5381 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
5382 switch field.Name {
5383 case "kind":
5384 return ec.fieldContext___Type_kind(ctx, field)
5385 case "name":
5386 return ec.fieldContext___Type_name(ctx, field)
5387 case "description":
5388 return ec.fieldContext___Type_description(ctx, field)
5389 case "specifiedByURL":
5390 return ec.fieldContext___Type_specifiedByURL(ctx, field)
5391 case "fields":
5392 return ec.fieldContext___Type_fields(ctx, field)
5393 case "interfaces":
5394 return ec.fieldContext___Type_interfaces(ctx, field)
5395 case "possibleTypes":
5396 return ec.fieldContext___Type_possibleTypes(ctx, field)
5397 case "enumValues":
5398 return ec.fieldContext___Type_enumValues(ctx, field)
5399 case "inputFields":
5400 return ec.fieldContext___Type_inputFields(ctx, field)
5401 case "ofType":
5402 return ec.fieldContext___Type_ofType(ctx, field)
5403 case "isOneOf":
5404 return ec.fieldContext___Type_isOneOf(ctx, field)
5405 }
5406 return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
5407 },
5408 }
5409 return fc, nil
5410 }
5411
5412 func (ec *executionContext) ___InputValue_defaultValue(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) {
5413 fc, err := ec.fieldContext___InputValue_defaultValue(ctx, field)
5414 if err != nil {
5415 return graphql.Null
5416 }
5417 ctx = graphql.WithFieldContext(ctx, fc)
5418 defer func() {
5419 if r := recover(); r != nil {
5420 ec.Error(ctx, ec.Recover(ctx, r))
5421 ret = graphql.Null
5422 }
5423 }()
5424 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
5425 ctx = rctx // use context from middleware stack in children
5426 return obj.DefaultValue, nil
5427 })
5428 if err != nil {
5429 ec.Error(ctx, err)
5430 return graphql.Null
5431 }
5432 if resTmp == nil {
5433 return graphql.Null
5434 }
5435 res := resTmp.(*string)
5436 fc.Result = res
5437 return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
5438 }
5439
5440 func (ec *executionContext) fieldContext___InputValue_defaultValue(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
5441 fc = &graphql.FieldContext{
5442 Object: "__InputValue",
5443 Field: field,
5444 IsMethod: false,
5445 IsResolver: false,
5446 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
5447 return nil, errors.New("field of type String does not have child fields")
5448 },
5449 }
5450 return fc, nil
5451 }
5452
5453 func (ec *executionContext) ___InputValue_isDeprecated(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) {
5454 fc, err := ec.fieldContext___InputValue_isDeprecated(ctx, field)
5455 if err != nil {
5456 return graphql.Null
5457 }
5458 ctx = graphql.WithFieldContext(ctx, fc)
5459 defer func() {
5460 if r := recover(); r != nil {
5461 ec.Error(ctx, ec.Recover(ctx, r))
5462 ret = graphql.Null
5463 }
5464 }()
5465 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
5466 ctx = rctx // use context from middleware stack in children
5467 return obj.IsDeprecated(), nil
5468 })
5469 if err != nil {
5470 ec.Error(ctx, err)
5471 return graphql.Null
5472 }
5473 if resTmp == nil {
5474 if !graphql.HasFieldError(ctx, fc) {
5475 ec.Errorf(ctx, "must not be null")
5476 }
5477 return graphql.Null
5478 }
5479 res := resTmp.(bool)
5480 fc.Result = res
5481 return ec.marshalNBoolean2bool(ctx, field.Selections, res)
5482 }
5483
5484 func (ec *executionContext) fieldContext___InputValue_isDeprecated(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
5485 fc = &graphql.FieldContext{
5486 Object: "__InputValue",
5487 Field: field,
5488 IsMethod: true,
5489 IsResolver: false,
5490 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
5491 return nil, errors.New("field of type Boolean does not have child fields")
5492 },
5493 }
5494 return fc, nil
5495 }
5496
5497 func (ec *executionContext) ___InputValue_deprecationReason(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) {
5498 fc, err := ec.fieldContext___InputValue_deprecationReason(ctx, field)
5499 if err != nil {
5500 return graphql.Null
5501 }
5502 ctx = graphql.WithFieldContext(ctx, fc)
5503 defer func() {
5504 if r := recover(); r != nil {
5505 ec.Error(ctx, ec.Recover(ctx, r))
5506 ret = graphql.Null
5507 }
5508 }()
5509 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
5510 ctx = rctx // use context from middleware stack in children
5511 return obj.DeprecationReason(), nil
5512 })
5513 if err != nil {
5514 ec.Error(ctx, err)
5515 return graphql.Null
5516 }
5517 if resTmp == nil {
5518 return graphql.Null
5519 }
5520 res := resTmp.(*string)
5521 fc.Result = res
5522 return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
5523 }
5524
5525 func (ec *executionContext) fieldContext___InputValue_deprecationReason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
5526 fc = &graphql.FieldContext{
5527 Object: "__InputValue",
5528 Field: field,
5529 IsMethod: true,
5530 IsResolver: false,
5531 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
5532 return nil, errors.New("field of type String does not have child fields")
5533 },
5534 }
5535 return fc, nil
5536 }
5537
5538 func (ec *executionContext) ___Schema_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) {
5539 fc, err := ec.fieldContext___Schema_description(ctx, field)
5540 if err != nil {
5541 return graphql.Null
5542 }
5543 ctx = graphql.WithFieldContext(ctx, fc)
5544 defer func() {
5545 if r := recover(); r != nil {
5546 ec.Error(ctx, ec.Recover(ctx, r))
5547 ret = graphql.Null
5548 }
5549 }()
5550 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
5551 ctx = rctx // use context from middleware stack in children
5552 return obj.Description(), nil
5553 })
5554 if err != nil {
5555 ec.Error(ctx, err)
5556 return graphql.Null
5557 }
5558 if resTmp == nil {
5559 return graphql.Null
5560 }
5561 res := resTmp.(*string)
5562 fc.Result = res
5563 return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
5564 }
5565
5566 func (ec *executionContext) fieldContext___Schema_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
5567 fc = &graphql.FieldContext{
5568 Object: "__Schema",
5569 Field: field,
5570 IsMethod: true,
5571 IsResolver: false,
5572 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
5573 return nil, errors.New("field of type String does not have child fields")
5574 },
5575 }
5576 return fc, nil
5577 }
5578
5579 func (ec *executionContext) ___Schema_types(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) {
5580 fc, err := ec.fieldContext___Schema_types(ctx, field)
5581 if err != nil {
5582 return graphql.Null
5583 }
5584 ctx = graphql.WithFieldContext(ctx, fc)
5585 defer func() {
5586 if r := recover(); r != nil {
5587 ec.Error(ctx, ec.Recover(ctx, r))
5588 ret = graphql.Null
5589 }
5590 }()
5591 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
5592 ctx = rctx // use context from middleware stack in children
5593 return obj.Types(), nil
5594 })
5595 if err != nil {
5596 ec.Error(ctx, err)
5597 return graphql.Null
5598 }
5599 if resTmp == nil {
5600 if !graphql.HasFieldError(ctx, fc) {
5601 ec.Errorf(ctx, "must not be null")
5602 }
5603 return graphql.Null
5604 }
5605 res := resTmp.([]introspection.Type)
5606 fc.Result = res
5607 return ec.marshalN__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx, field.Selections, res)
5608 }
5609
5610 func (ec *executionContext) fieldContext___Schema_types(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
5611 fc = &graphql.FieldContext{
5612 Object: "__Schema",
5613 Field: field,
5614 IsMethod: true,
5615 IsResolver: false,
5616 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
5617 switch field.Name {
5618 case "kind":
5619 return ec.fieldContext___Type_kind(ctx, field)
5620 case "name":
5621 return ec.fieldContext___Type_name(ctx, field)
5622 case "description":
5623 return ec.fieldContext___Type_description(ctx, field)
5624 case "specifiedByURL":
5625 return ec.fieldContext___Type_specifiedByURL(ctx, field)
5626 case "fields":
5627 return ec.fieldContext___Type_fields(ctx, field)
5628 case "interfaces":
5629 return ec.fieldContext___Type_interfaces(ctx, field)
5630 case "possibleTypes":
5631 return ec.fieldContext___Type_possibleTypes(ctx, field)
5632 case "enumValues":
5633 return ec.fieldContext___Type_enumValues(ctx, field)
5634 case "inputFields":
5635 return ec.fieldContext___Type_inputFields(ctx, field)
5636 case "ofType":
5637 return ec.fieldContext___Type_ofType(ctx, field)
5638 case "isOneOf":
5639 return ec.fieldContext___Type_isOneOf(ctx, field)
5640 }
5641 return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
5642 },
5643 }
5644 return fc, nil
5645 }
5646
5647 func (ec *executionContext) ___Schema_queryType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) {
5648 fc, err := ec.fieldContext___Schema_queryType(ctx, field)
5649 if err != nil {
5650 return graphql.Null
5651 }
5652 ctx = graphql.WithFieldContext(ctx, fc)
5653 defer func() {
5654 if r := recover(); r != nil {
5655 ec.Error(ctx, ec.Recover(ctx, r))
5656 ret = graphql.Null
5657 }
5658 }()
5659 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
5660 ctx = rctx // use context from middleware stack in children
5661 return obj.QueryType(), nil
5662 })
5663 if err != nil {
5664 ec.Error(ctx, err)
5665 return graphql.Null
5666 }
5667 if resTmp == nil {
5668 if !graphql.HasFieldError(ctx, fc) {
5669 ec.Errorf(ctx, "must not be null")
5670 }
5671 return graphql.Null
5672 }
5673 res := resTmp.(*introspection.Type)
5674 fc.Result = res
5675 return ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res)
5676 }
5677
5678 func (ec *executionContext) fieldContext___Schema_queryType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
5679 fc = &graphql.FieldContext{
5680 Object: "__Schema",
5681 Field: field,
5682 IsMethod: true,
5683 IsResolver: false,
5684 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
5685 switch field.Name {
5686 case "kind":
5687 return ec.fieldContext___Type_kind(ctx, field)
5688 case "name":
5689 return ec.fieldContext___Type_name(ctx, field)
5690 case "description":
5691 return ec.fieldContext___Type_description(ctx, field)
5692 case "specifiedByURL":
5693 return ec.fieldContext___Type_specifiedByURL(ctx, field)
5694 case "fields":
5695 return ec.fieldContext___Type_fields(ctx, field)
5696 case "interfaces":
5697 return ec.fieldContext___Type_interfaces(ctx, field)
5698 case "possibleTypes":
5699 return ec.fieldContext___Type_possibleTypes(ctx, field)
5700 case "enumValues":
5701 return ec.fieldContext___Type_enumValues(ctx, field)
5702 case "inputFields":
5703 return ec.fieldContext___Type_inputFields(ctx, field)
5704 case "ofType":
5705 return ec.fieldContext___Type_ofType(ctx, field)
5706 case "isOneOf":
5707 return ec.fieldContext___Type_isOneOf(ctx, field)
5708 }
5709 return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
5710 },
5711 }
5712 return fc, nil
5713 }
5714
5715 func (ec *executionContext) ___Schema_mutationType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) {
5716 fc, err := ec.fieldContext___Schema_mutationType(ctx, field)
5717 if err != nil {
5718 return graphql.Null
5719 }
5720 ctx = graphql.WithFieldContext(ctx, fc)
5721 defer func() {
5722 if r := recover(); r != nil {
5723 ec.Error(ctx, ec.Recover(ctx, r))
5724 ret = graphql.Null
5725 }
5726 }()
5727 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
5728 ctx = rctx // use context from middleware stack in children
5729 return obj.MutationType(), nil
5730 })
5731 if err != nil {
5732 ec.Error(ctx, err)
5733 return graphql.Null
5734 }
5735 if resTmp == nil {
5736 return graphql.Null
5737 }
5738 res := resTmp.(*introspection.Type)
5739 fc.Result = res
5740 return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res)
5741 }
5742
5743 func (ec *executionContext) fieldContext___Schema_mutationType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
5744 fc = &graphql.FieldContext{
5745 Object: "__Schema",
5746 Field: field,
5747 IsMethod: true,
5748 IsResolver: false,
5749 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
5750 switch field.Name {
5751 case "kind":
5752 return ec.fieldContext___Type_kind(ctx, field)
5753 case "name":
5754 return ec.fieldContext___Type_name(ctx, field)
5755 case "description":
5756 return ec.fieldContext___Type_description(ctx, field)
5757 case "specifiedByURL":
5758 return ec.fieldContext___Type_specifiedByURL(ctx, field)
5759 case "fields":
5760 return ec.fieldContext___Type_fields(ctx, field)
5761 case "interfaces":
5762 return ec.fieldContext___Type_interfaces(ctx, field)
5763 case "possibleTypes":
5764 return ec.fieldContext___Type_possibleTypes(ctx, field)
5765 case "enumValues":
5766 return ec.fieldContext___Type_enumValues(ctx, field)
5767 case "inputFields":
5768 return ec.fieldContext___Type_inputFields(ctx, field)
5769 case "ofType":
5770 return ec.fieldContext___Type_ofType(ctx, field)
5771 case "isOneOf":
5772 return ec.fieldContext___Type_isOneOf(ctx, field)
5773 }
5774 return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
5775 },
5776 }
5777 return fc, nil
5778 }
5779
5780 func (ec *executionContext) ___Schema_subscriptionType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) {
5781 fc, err := ec.fieldContext___Schema_subscriptionType(ctx, field)
5782 if err != nil {
5783 return graphql.Null
5784 }
5785 ctx = graphql.WithFieldContext(ctx, fc)
5786 defer func() {
5787 if r := recover(); r != nil {
5788 ec.Error(ctx, ec.Recover(ctx, r))
5789 ret = graphql.Null
5790 }
5791 }()
5792 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
5793 ctx = rctx // use context from middleware stack in children
5794 return obj.SubscriptionType(), nil
5795 })
5796 if err != nil {
5797 ec.Error(ctx, err)
5798 return graphql.Null
5799 }
5800 if resTmp == nil {
5801 return graphql.Null
5802 }
5803 res := resTmp.(*introspection.Type)
5804 fc.Result = res
5805 return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res)
5806 }
5807
5808 func (ec *executionContext) fieldContext___Schema_subscriptionType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
5809 fc = &graphql.FieldContext{
5810 Object: "__Schema",
5811 Field: field,
5812 IsMethod: true,
5813 IsResolver: false,
5814 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
5815 switch field.Name {
5816 case "kind":
5817 return ec.fieldContext___Type_kind(ctx, field)
5818 case "name":
5819 return ec.fieldContext___Type_name(ctx, field)
5820 case "description":
5821 return ec.fieldContext___Type_description(ctx, field)
5822 case "specifiedByURL":
5823 return ec.fieldContext___Type_specifiedByURL(ctx, field)
5824 case "fields":
5825 return ec.fieldContext___Type_fields(ctx, field)
5826 case "interfaces":
5827 return ec.fieldContext___Type_interfaces(ctx, field)
5828 case "possibleTypes":
5829 return ec.fieldContext___Type_possibleTypes(ctx, field)
5830 case "enumValues":
5831 return ec.fieldContext___Type_enumValues(ctx, field)
5832 case "inputFields":
5833 return ec.fieldContext___Type_inputFields(ctx, field)
5834 case "ofType":
5835 return ec.fieldContext___Type_ofType(ctx, field)
5836 case "isOneOf":
5837 return ec.fieldContext___Type_isOneOf(ctx, field)
5838 }
5839 return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
5840 },
5841 }
5842 return fc, nil
5843 }
5844
5845 func (ec *executionContext) ___Schema_directives(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) {
5846 fc, err := ec.fieldContext___Schema_directives(ctx, field)
5847 if err != nil {
5848 return graphql.Null
5849 }
5850 ctx = graphql.WithFieldContext(ctx, fc)
5851 defer func() {
5852 if r := recover(); r != nil {
5853 ec.Error(ctx, ec.Recover(ctx, r))
5854 ret = graphql.Null
5855 }
5856 }()
5857 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
5858 ctx = rctx // use context from middleware stack in children
5859 return obj.Directives(), nil
5860 })
5861 if err != nil {
5862 ec.Error(ctx, err)
5863 return graphql.Null
5864 }
5865 if resTmp == nil {
5866 if !graphql.HasFieldError(ctx, fc) {
5867 ec.Errorf(ctx, "must not be null")
5868 }
5869 return graphql.Null
5870 }
5871 res := resTmp.([]introspection.Directive)
5872 fc.Result = res
5873 return ec.marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirectiveᚄ(ctx, field.Selections, res)
5874 }
5875
5876 func (ec *executionContext) fieldContext___Schema_directives(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
5877 fc = &graphql.FieldContext{
5878 Object: "__Schema",
5879 Field: field,
5880 IsMethod: true,
5881 IsResolver: false,
5882 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
5883 switch field.Name {
5884 case "name":
5885 return ec.fieldContext___Directive_name(ctx, field)
5886 case "description":
5887 return ec.fieldContext___Directive_description(ctx, field)
5888 case "isRepeatable":
5889 return ec.fieldContext___Directive_isRepeatable(ctx, field)
5890 case "locations":
5891 return ec.fieldContext___Directive_locations(ctx, field)
5892 case "args":
5893 return ec.fieldContext___Directive_args(ctx, field)
5894 }
5895 return nil, fmt.Errorf("no field named %q was found under type __Directive", field.Name)
5896 },
5897 }
5898 return fc, nil
5899 }
5900
5901 func (ec *executionContext) ___Type_kind(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
5902 fc, err := ec.fieldContext___Type_kind(ctx, field)
5903 if err != nil {
5904 return graphql.Null
5905 }
5906 ctx = graphql.WithFieldContext(ctx, fc)
5907 defer func() {
5908 if r := recover(); r != nil {
5909 ec.Error(ctx, ec.Recover(ctx, r))
5910 ret = graphql.Null
5911 }
5912 }()
5913 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
5914 ctx = rctx // use context from middleware stack in children
5915 return obj.Kind(), nil
5916 })
5917 if err != nil {
5918 ec.Error(ctx, err)
5919 return graphql.Null
5920 }
5921 if resTmp == nil {
5922 if !graphql.HasFieldError(ctx, fc) {
5923 ec.Errorf(ctx, "must not be null")
5924 }
5925 return graphql.Null
5926 }
5927 res := resTmp.(string)
5928 fc.Result = res
5929 return ec.marshalN__TypeKind2string(ctx, field.Selections, res)
5930 }
5931
5932 func (ec *executionContext) fieldContext___Type_kind(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
5933 fc = &graphql.FieldContext{
5934 Object: "__Type",
5935 Field: field,
5936 IsMethod: true,
5937 IsResolver: false,
5938 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
5939 return nil, errors.New("field of type __TypeKind does not have child fields")
5940 },
5941 }
5942 return fc, nil
5943 }
5944
5945 func (ec *executionContext) ___Type_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
5946 fc, err := ec.fieldContext___Type_name(ctx, field)
5947 if err != nil {
5948 return graphql.Null
5949 }
5950 ctx = graphql.WithFieldContext(ctx, fc)
5951 defer func() {
5952 if r := recover(); r != nil {
5953 ec.Error(ctx, ec.Recover(ctx, r))
5954 ret = graphql.Null
5955 }
5956 }()
5957 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
5958 ctx = rctx // use context from middleware stack in children
5959 return obj.Name(), nil
5960 })
5961 if err != nil {
5962 ec.Error(ctx, err)
5963 return graphql.Null
5964 }
5965 if resTmp == nil {
5966 return graphql.Null
5967 }
5968 res := resTmp.(*string)
5969 fc.Result = res
5970 return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
5971 }
5972
5973 func (ec *executionContext) fieldContext___Type_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
5974 fc = &graphql.FieldContext{
5975 Object: "__Type",
5976 Field: field,
5977 IsMethod: true,
5978 IsResolver: false,
5979 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
5980 return nil, errors.New("field of type String does not have child fields")
5981 },
5982 }
5983 return fc, nil
5984 }
5985
5986 func (ec *executionContext) ___Type_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
5987 fc, err := ec.fieldContext___Type_description(ctx, field)
5988 if err != nil {
5989 return graphql.Null
5990 }
5991 ctx = graphql.WithFieldContext(ctx, fc)
5992 defer func() {
5993 if r := recover(); r != nil {
5994 ec.Error(ctx, ec.Recover(ctx, r))
5995 ret = graphql.Null
5996 }
5997 }()
5998 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
5999 ctx = rctx // use context from middleware stack in children
6000 return obj.Description(), nil
6001 })
6002 if err != nil {
6003 ec.Error(ctx, err)
6004 return graphql.Null
6005 }
6006 if resTmp == nil {
6007 return graphql.Null
6008 }
6009 res := resTmp.(*string)
6010 fc.Result = res
6011 return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
6012 }
6013
6014 func (ec *executionContext) fieldContext___Type_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
6015 fc = &graphql.FieldContext{
6016 Object: "__Type",
6017 Field: field,
6018 IsMethod: true,
6019 IsResolver: false,
6020 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
6021 return nil, errors.New("field of type String does not have child fields")
6022 },
6023 }
6024 return fc, nil
6025 }
6026
6027 func (ec *executionContext) ___Type_specifiedByURL(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
6028 fc, err := ec.fieldContext___Type_specifiedByURL(ctx, field)
6029 if err != nil {
6030 return graphql.Null
6031 }
6032 ctx = graphql.WithFieldContext(ctx, fc)
6033 defer func() {
6034 if r := recover(); r != nil {
6035 ec.Error(ctx, ec.Recover(ctx, r))
6036 ret = graphql.Null
6037 }
6038 }()
6039 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
6040 ctx = rctx // use context from middleware stack in children
6041 return obj.SpecifiedByURL(), nil
6042 })
6043 if err != nil {
6044 ec.Error(ctx, err)
6045 return graphql.Null
6046 }
6047 if resTmp == nil {
6048 return graphql.Null
6049 }
6050 res := resTmp.(*string)
6051 fc.Result = res
6052 return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
6053 }
6054
6055 func (ec *executionContext) fieldContext___Type_specifiedByURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
6056 fc = &graphql.FieldContext{
6057 Object: "__Type",
6058 Field: field,
6059 IsMethod: true,
6060 IsResolver: false,
6061 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
6062 return nil, errors.New("field of type String does not have child fields")
6063 },
6064 }
6065 return fc, nil
6066 }
6067
6068 func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
6069 fc, err := ec.fieldContext___Type_fields(ctx, field)
6070 if err != nil {
6071 return graphql.Null
6072 }
6073 ctx = graphql.WithFieldContext(ctx, fc)
6074 defer func() {
6075 if r := recover(); r != nil {
6076 ec.Error(ctx, ec.Recover(ctx, r))
6077 ret = graphql.Null
6078 }
6079 }()
6080 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
6081 ctx = rctx // use context from middleware stack in children
6082 return obj.Fields(fc.Args["includeDeprecated"].(bool)), nil
6083 })
6084 if err != nil {
6085 ec.Error(ctx, err)
6086 return graphql.Null
6087 }
6088 if resTmp == nil {
6089 return graphql.Null
6090 }
6091 res := resTmp.([]introspection.Field)
6092 fc.Result = res
6093 return ec.marshalO__Field2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐFieldᚄ(ctx, field.Selections, res)
6094 }
6095
6096 func (ec *executionContext) fieldContext___Type_fields(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
6097 fc = &graphql.FieldContext{
6098 Object: "__Type",
6099 Field: field,
6100 IsMethod: true,
6101 IsResolver: false,
6102 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
6103 switch field.Name {
6104 case "name":
6105 return ec.fieldContext___Field_name(ctx, field)
6106 case "description":
6107 return ec.fieldContext___Field_description(ctx, field)
6108 case "args":
6109 return ec.fieldContext___Field_args(ctx, field)
6110 case "type":
6111 return ec.fieldContext___Field_type(ctx, field)
6112 case "isDeprecated":
6113 return ec.fieldContext___Field_isDeprecated(ctx, field)
6114 case "deprecationReason":
6115 return ec.fieldContext___Field_deprecationReason(ctx, field)
6116 }
6117 return nil, fmt.Errorf("no field named %q was found under type __Field", field.Name)
6118 },
6119 }
6120 defer func() {
6121 if r := recover(); r != nil {
6122 err = ec.Recover(ctx, r)
6123 ec.Error(ctx, err)
6124 }
6125 }()
6126 ctx = graphql.WithFieldContext(ctx, fc)
6127 if fc.Args, err = ec.field___Type_fields_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
6128 ec.Error(ctx, err)
6129 return fc, err
6130 }
6131 return fc, nil
6132 }
6133
6134 func (ec *executionContext) ___Type_interfaces(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
6135 fc, err := ec.fieldContext___Type_interfaces(ctx, field)
6136 if err != nil {
6137 return graphql.Null
6138 }
6139 ctx = graphql.WithFieldContext(ctx, fc)
6140 defer func() {
6141 if r := recover(); r != nil {
6142 ec.Error(ctx, ec.Recover(ctx, r))
6143 ret = graphql.Null
6144 }
6145 }()
6146 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
6147 ctx = rctx // use context from middleware stack in children
6148 return obj.Interfaces(), nil
6149 })
6150 if err != nil {
6151 ec.Error(ctx, err)
6152 return graphql.Null
6153 }
6154 if resTmp == nil {
6155 return graphql.Null
6156 }
6157 res := resTmp.([]introspection.Type)
6158 fc.Result = res
6159 return ec.marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx, field.Selections, res)
6160 }
6161
6162 func (ec *executionContext) fieldContext___Type_interfaces(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
6163 fc = &graphql.FieldContext{
6164 Object: "__Type",
6165 Field: field,
6166 IsMethod: true,
6167 IsResolver: false,
6168 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
6169 switch field.Name {
6170 case "kind":
6171 return ec.fieldContext___Type_kind(ctx, field)
6172 case "name":
6173 return ec.fieldContext___Type_name(ctx, field)
6174 case "description":
6175 return ec.fieldContext___Type_description(ctx, field)
6176 case "specifiedByURL":
6177 return ec.fieldContext___Type_specifiedByURL(ctx, field)
6178 case "fields":
6179 return ec.fieldContext___Type_fields(ctx, field)
6180 case "interfaces":
6181 return ec.fieldContext___Type_interfaces(ctx, field)
6182 case "possibleTypes":
6183 return ec.fieldContext___Type_possibleTypes(ctx, field)
6184 case "enumValues":
6185 return ec.fieldContext___Type_enumValues(ctx, field)
6186 case "inputFields":
6187 return ec.fieldContext___Type_inputFields(ctx, field)
6188 case "ofType":
6189 return ec.fieldContext___Type_ofType(ctx, field)
6190 case "isOneOf":
6191 return ec.fieldContext___Type_isOneOf(ctx, field)
6192 }
6193 return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
6194 },
6195 }
6196 return fc, nil
6197 }
6198
6199 func (ec *executionContext) ___Type_possibleTypes(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
6200 fc, err := ec.fieldContext___Type_possibleTypes(ctx, field)
6201 if err != nil {
6202 return graphql.Null
6203 }
6204 ctx = graphql.WithFieldContext(ctx, fc)
6205 defer func() {
6206 if r := recover(); r != nil {
6207 ec.Error(ctx, ec.Recover(ctx, r))
6208 ret = graphql.Null
6209 }
6210 }()
6211 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
6212 ctx = rctx // use context from middleware stack in children
6213 return obj.PossibleTypes(), nil
6214 })
6215 if err != nil {
6216 ec.Error(ctx, err)
6217 return graphql.Null
6218 }
6219 if resTmp == nil {
6220 return graphql.Null
6221 }
6222 res := resTmp.([]introspection.Type)
6223 fc.Result = res
6224 return ec.marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx, field.Selections, res)
6225 }
6226
6227 func (ec *executionContext) fieldContext___Type_possibleTypes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
6228 fc = &graphql.FieldContext{
6229 Object: "__Type",
6230 Field: field,
6231 IsMethod: true,
6232 IsResolver: false,
6233 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
6234 switch field.Name {
6235 case "kind":
6236 return ec.fieldContext___Type_kind(ctx, field)
6237 case "name":
6238 return ec.fieldContext___Type_name(ctx, field)
6239 case "description":
6240 return ec.fieldContext___Type_description(ctx, field)
6241 case "specifiedByURL":
6242 return ec.fieldContext___Type_specifiedByURL(ctx, field)
6243 case "fields":
6244 return ec.fieldContext___Type_fields(ctx, field)
6245 case "interfaces":
6246 return ec.fieldContext___Type_interfaces(ctx, field)
6247 case "possibleTypes":
6248 return ec.fieldContext___Type_possibleTypes(ctx, field)
6249 case "enumValues":
6250 return ec.fieldContext___Type_enumValues(ctx, field)
6251 case "inputFields":
6252 return ec.fieldContext___Type_inputFields(ctx, field)
6253 case "ofType":
6254 return ec.fieldContext___Type_ofType(ctx, field)
6255 case "isOneOf":
6256 return ec.fieldContext___Type_isOneOf(ctx, field)
6257 }
6258 return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
6259 },
6260 }
6261 return fc, nil
6262 }
6263
6264 func (ec *executionContext) ___Type_enumValues(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
6265 fc, err := ec.fieldContext___Type_enumValues(ctx, field)
6266 if err != nil {
6267 return graphql.Null
6268 }
6269 ctx = graphql.WithFieldContext(ctx, fc)
6270 defer func() {
6271 if r := recover(); r != nil {
6272 ec.Error(ctx, ec.Recover(ctx, r))
6273 ret = graphql.Null
6274 }
6275 }()
6276 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
6277 ctx = rctx // use context from middleware stack in children
6278 return obj.EnumValues(fc.Args["includeDeprecated"].(bool)), nil
6279 })
6280 if err != nil {
6281 ec.Error(ctx, err)
6282 return graphql.Null
6283 }
6284 if resTmp == nil {
6285 return graphql.Null
6286 }
6287 res := resTmp.([]introspection.EnumValue)
6288 fc.Result = res
6289 return ec.marshalO__EnumValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValueᚄ(ctx, field.Selections, res)
6290 }
6291
6292 func (ec *executionContext) fieldContext___Type_enumValues(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
6293 fc = &graphql.FieldContext{
6294 Object: "__Type",
6295 Field: field,
6296 IsMethod: true,
6297 IsResolver: false,
6298 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
6299 switch field.Name {
6300 case "name":
6301 return ec.fieldContext___EnumValue_name(ctx, field)
6302 case "description":
6303 return ec.fieldContext___EnumValue_description(ctx, field)
6304 case "isDeprecated":
6305 return ec.fieldContext___EnumValue_isDeprecated(ctx, field)
6306 case "deprecationReason":
6307 return ec.fieldContext___EnumValue_deprecationReason(ctx, field)
6308 }
6309 return nil, fmt.Errorf("no field named %q was found under type __EnumValue", field.Name)
6310 },
6311 }
6312 defer func() {
6313 if r := recover(); r != nil {
6314 err = ec.Recover(ctx, r)
6315 ec.Error(ctx, err)
6316 }
6317 }()
6318 ctx = graphql.WithFieldContext(ctx, fc)
6319 if fc.Args, err = ec.field___Type_enumValues_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
6320 ec.Error(ctx, err)
6321 return fc, err
6322 }
6323 return fc, nil
6324 }
6325
6326 func (ec *executionContext) ___Type_inputFields(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
6327 fc, err := ec.fieldContext___Type_inputFields(ctx, field)
6328 if err != nil {
6329 return graphql.Null
6330 }
6331 ctx = graphql.WithFieldContext(ctx, fc)
6332 defer func() {
6333 if r := recover(); r != nil {
6334 ec.Error(ctx, ec.Recover(ctx, r))
6335 ret = graphql.Null
6336 }
6337 }()
6338 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
6339 ctx = rctx // use context from middleware stack in children
6340 return obj.InputFields(), nil
6341 })
6342 if err != nil {
6343 ec.Error(ctx, err)
6344 return graphql.Null
6345 }
6346 if resTmp == nil {
6347 return graphql.Null
6348 }
6349 res := resTmp.([]introspection.InputValue)
6350 fc.Result = res
6351 return ec.marshalO__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx, field.Selections, res)
6352 }
6353
6354 func (ec *executionContext) fieldContext___Type_inputFields(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
6355 fc = &graphql.FieldContext{
6356 Object: "__Type",
6357 Field: field,
6358 IsMethod: true,
6359 IsResolver: false,
6360 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
6361 switch field.Name {
6362 case "name":
6363 return ec.fieldContext___InputValue_name(ctx, field)
6364 case "description":
6365 return ec.fieldContext___InputValue_description(ctx, field)
6366 case "type":
6367 return ec.fieldContext___InputValue_type(ctx, field)
6368 case "defaultValue":
6369 return ec.fieldContext___InputValue_defaultValue(ctx, field)
6370 case "isDeprecated":
6371 return ec.fieldContext___InputValue_isDeprecated(ctx, field)
6372 case "deprecationReason":
6373 return ec.fieldContext___InputValue_deprecationReason(ctx, field)
6374 }
6375 return nil, fmt.Errorf("no field named %q was found under type __InputValue", field.Name)
6376 },
6377 }
6378 return fc, nil
6379 }
6380
6381 func (ec *executionContext) ___Type_ofType(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
6382 fc, err := ec.fieldContext___Type_ofType(ctx, field)
6383 if err != nil {
6384 return graphql.Null
6385 }
6386 ctx = graphql.WithFieldContext(ctx, fc)
6387 defer func() {
6388 if r := recover(); r != nil {
6389 ec.Error(ctx, ec.Recover(ctx, r))
6390 ret = graphql.Null
6391 }
6392 }()
6393 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
6394 ctx = rctx // use context from middleware stack in children
6395 return obj.OfType(), nil
6396 })
6397 if err != nil {
6398 ec.Error(ctx, err)
6399 return graphql.Null
6400 }
6401 if resTmp == nil {
6402 return graphql.Null
6403 }
6404 res := resTmp.(*introspection.Type)
6405 fc.Result = res
6406 return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res)
6407 }
6408
6409 func (ec *executionContext) fieldContext___Type_ofType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
6410 fc = &graphql.FieldContext{
6411 Object: "__Type",
6412 Field: field,
6413 IsMethod: true,
6414 IsResolver: false,
6415 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
6416 switch field.Name {
6417 case "kind":
6418 return ec.fieldContext___Type_kind(ctx, field)
6419 case "name":
6420 return ec.fieldContext___Type_name(ctx, field)
6421 case "description":
6422 return ec.fieldContext___Type_description(ctx, field)
6423 case "specifiedByURL":
6424 return ec.fieldContext___Type_specifiedByURL(ctx, field)
6425 case "fields":
6426 return ec.fieldContext___Type_fields(ctx, field)
6427 case "interfaces":
6428 return ec.fieldContext___Type_interfaces(ctx, field)
6429 case "possibleTypes":
6430 return ec.fieldContext___Type_possibleTypes(ctx, field)
6431 case "enumValues":
6432 return ec.fieldContext___Type_enumValues(ctx, field)
6433 case "inputFields":
6434 return ec.fieldContext___Type_inputFields(ctx, field)
6435 case "ofType":
6436 return ec.fieldContext___Type_ofType(ctx, field)
6437 case "isOneOf":
6438 return ec.fieldContext___Type_isOneOf(ctx, field)
6439 }
6440 return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
6441 },
6442 }
6443 return fc, nil
6444 }
6445
6446 func (ec *executionContext) ___Type_isOneOf(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
6447 fc, err := ec.fieldContext___Type_isOneOf(ctx, field)
6448 if err != nil {
6449 return graphql.Null
6450 }
6451 ctx = graphql.WithFieldContext(ctx, fc)
6452 defer func() {
6453 if r := recover(); r != nil {
6454 ec.Error(ctx, ec.Recover(ctx, r))
6455 ret = graphql.Null
6456 }
6457 }()
6458 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
6459 ctx = rctx // use context from middleware stack in children
6460 return obj.IsOneOf(), nil
6461 })
6462 if err != nil {
6463 ec.Error(ctx, err)
6464 return graphql.Null
6465 }
6466 if resTmp == nil {
6467 return graphql.Null
6468 }
6469 res := resTmp.(bool)
6470 fc.Result = res
6471 return ec.marshalOBoolean2bool(ctx, field.Selections, res)
6472 }
6473
6474 func (ec *executionContext) fieldContext___Type_isOneOf(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
6475 fc = &graphql.FieldContext{
6476 Object: "__Type",
6477 Field: field,
6478 IsMethod: true,
6479 IsResolver: false,
6480 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
6481 return nil, errors.New("field of type Boolean does not have child fields")
6482 },
6483 }
6484 return fc, nil
6485 }
6486
6487 // endregion **************************** field.gotpl *****************************
6488
6489 // region **************************** input.gotpl *****************************
6490
6491 func (ec *executionContext) unmarshalInputAttestationCollectionWhereInput(ctx context.Context, obj any) (ent.AttestationCollectionWhereInput, error) {
6492 var it ent.AttestationCollectionWhereInput
6493 asMap := map[string]any{}
6494 for k, v := range obj.(map[string]any) {
6495 asMap[k] = v
6496 }
6497
6498 fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "name", "nameNEQ", "nameIn", "nameNotIn", "nameGT", "nameGTE", "nameLT", "nameLTE", "nameContains", "nameHasPrefix", "nameHasSuffix", "nameEqualFold", "nameContainsFold", "hasAttestations", "hasAttestationsWith", "hasStatement", "hasStatementWith"}
6499 for _, k := range fieldsInOrder {
6500 v, ok := asMap[k]
6501 if !ok {
6502 continue
6503 }
6504 switch k {
6505 case "not":
6506 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("not"))
6507 data, err := ec.unmarshalOAttestationCollectionWhereInput2ᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐAttestationCollectionWhereInput(ctx, v)
6508 if err != nil {
6509 return it, err
6510 }
6511 it.Not = data
6512 case "and":
6513 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and"))
6514 data, err := ec.unmarshalOAttestationCollectionWhereInput2ᚕᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐAttestationCollectionWhereInputᚄ(ctx, v)
6515 if err != nil {
6516 return it, err
6517 }
6518 it.And = data
6519 case "or":
6520 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or"))
6521 data, err := ec.unmarshalOAttestationCollectionWhereInput2ᚕᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐAttestationCollectionWhereInputᚄ(ctx, v)
6522 if err != nil {
6523 return it, err
6524 }
6525 it.Or = data
6526 case "id":
6527 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id"))
6528 data, err := ec.unmarshalOID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, v)
6529 if err != nil {
6530 return it, err
6531 }
6532 it.ID = data
6533 case "idNEQ":
6534 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idNEQ"))
6535 data, err := ec.unmarshalOID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, v)
6536 if err != nil {
6537 return it, err
6538 }
6539 it.IDNEQ = data
6540 case "idIn":
6541 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idIn"))
6542 data, err := ec.unmarshalOID2ᚕgithubᚗcomᚋgoogleᚋuuidᚐUUIDᚄ(ctx, v)
6543 if err != nil {
6544 return it, err
6545 }
6546 it.IDIn = data
6547 case "idNotIn":
6548 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idNotIn"))
6549 data, err := ec.unmarshalOID2ᚕgithubᚗcomᚋgoogleᚋuuidᚐUUIDᚄ(ctx, v)
6550 if err != nil {
6551 return it, err
6552 }
6553 it.IDNotIn = data
6554 case "idGT":
6555 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGT"))
6556 data, err := ec.unmarshalOID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, v)
6557 if err != nil {
6558 return it, err
6559 }
6560 it.IDGT = data
6561 case "idGTE":
6562 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGTE"))
6563 data, err := ec.unmarshalOID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, v)
6564 if err != nil {
6565 return it, err
6566 }
6567 it.IDGTE = data
6568 case "idLT":
6569 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLT"))
6570 data, err := ec.unmarshalOID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, v)
6571 if err != nil {
6572 return it, err
6573 }
6574 it.IDLT = data
6575 case "idLTE":
6576 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLTE"))
6577 data, err := ec.unmarshalOID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, v)
6578 if err != nil {
6579 return it, err
6580 }
6581 it.IDLTE = data
6582 case "name":
6583 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name"))
6584 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
6585 if err != nil {
6586 return it, err
6587 }
6588 it.Name = data
6589 case "nameNEQ":
6590 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameNEQ"))
6591 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
6592 if err != nil {
6593 return it, err
6594 }
6595 it.NameNEQ = data
6596 case "nameIn":
6597 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameIn"))
6598 data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v)
6599 if err != nil {
6600 return it, err
6601 }
6602 it.NameIn = data
6603 case "nameNotIn":
6604 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameNotIn"))
6605 data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v)
6606 if err != nil {
6607 return it, err
6608 }
6609 it.NameNotIn = data
6610 case "nameGT":
6611 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameGT"))
6612 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
6613 if err != nil {
6614 return it, err
6615 }
6616 it.NameGT = data
6617 case "nameGTE":
6618 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameGTE"))
6619 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
6620 if err != nil {
6621 return it, err
6622 }
6623 it.NameGTE = data
6624 case "nameLT":
6625 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameLT"))
6626 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
6627 if err != nil {
6628 return it, err
6629 }
6630 it.NameLT = data
6631 case "nameLTE":
6632 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameLTE"))
6633 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
6634 if err != nil {
6635 return it, err
6636 }
6637 it.NameLTE = data
6638 case "nameContains":
6639 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameContains"))
6640 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
6641 if err != nil {
6642 return it, err
6643 }
6644 it.NameContains = data
6645 case "nameHasPrefix":
6646 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameHasPrefix"))
6647 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
6648 if err != nil {
6649 return it, err
6650 }
6651 it.NameHasPrefix = data
6652 case "nameHasSuffix":
6653 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameHasSuffix"))
6654 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
6655 if err != nil {
6656 return it, err
6657 }
6658 it.NameHasSuffix = data
6659 case "nameEqualFold":
6660 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameEqualFold"))
6661 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
6662 if err != nil {
6663 return it, err
6664 }
6665 it.NameEqualFold = data
6666 case "nameContainsFold":
6667 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameContainsFold"))
6668 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
6669 if err != nil {
6670 return it, err
6671 }
6672 it.NameContainsFold = data
6673 case "hasAttestations":
6674 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasAttestations"))
6675 data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v)
6676 if err != nil {
6677 return it, err
6678 }
6679 it.HasAttestations = data
6680 case "hasAttestationsWith":
6681 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasAttestationsWith"))
6682 data, err := ec.unmarshalOAttestationWhereInput2ᚕᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐAttestationWhereInputᚄ(ctx, v)
6683 if err != nil {
6684 return it, err
6685 }
6686 it.HasAttestationsWith = data
6687 case "hasStatement":
6688 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasStatement"))
6689 data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v)
6690 if err != nil {
6691 return it, err
6692 }
6693 it.HasStatement = data
6694 case "hasStatementWith":
6695 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasStatementWith"))
6696 data, err := ec.unmarshalOStatementWhereInput2ᚕᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐStatementWhereInputᚄ(ctx, v)
6697 if err != nil {
6698 return it, err
6699 }
6700 it.HasStatementWith = data
6701 }
6702 }
6703
6704 return it, nil
6705 }
6706
6707 func (ec *executionContext) unmarshalInputAttestationPolicyWhereInput(ctx context.Context, obj any) (ent.AttestationPolicyWhereInput, error) {
6708 var it ent.AttestationPolicyWhereInput
6709 asMap := map[string]any{}
6710 for k, v := range obj.(map[string]any) {
6711 asMap[k] = v
6712 }
6713
6714 fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "name", "nameNEQ", "nameIn", "nameNotIn", "nameGT", "nameGTE", "nameLT", "nameLTE", "nameContains", "nameHasPrefix", "nameHasSuffix", "nameEqualFold", "nameContainsFold", "hasStatement", "hasStatementWith"}
6715 for _, k := range fieldsInOrder {
6716 v, ok := asMap[k]
6717 if !ok {
6718 continue
6719 }
6720 switch k {
6721 case "not":
6722 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("not"))
6723 data, err := ec.unmarshalOAttestationPolicyWhereInput2ᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐAttestationPolicyWhereInput(ctx, v)
6724 if err != nil {
6725 return it, err
6726 }
6727 it.Not = data
6728 case "and":
6729 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and"))
6730 data, err := ec.unmarshalOAttestationPolicyWhereInput2ᚕᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐAttestationPolicyWhereInputᚄ(ctx, v)
6731 if err != nil {
6732 return it, err
6733 }
6734 it.And = data
6735 case "or":
6736 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or"))
6737 data, err := ec.unmarshalOAttestationPolicyWhereInput2ᚕᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐAttestationPolicyWhereInputᚄ(ctx, v)
6738 if err != nil {
6739 return it, err
6740 }
6741 it.Or = data
6742 case "id":
6743 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id"))
6744 data, err := ec.unmarshalOID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, v)
6745 if err != nil {
6746 return it, err
6747 }
6748 it.ID = data
6749 case "idNEQ":
6750 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idNEQ"))
6751 data, err := ec.unmarshalOID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, v)
6752 if err != nil {
6753 return it, err
6754 }
6755 it.IDNEQ = data
6756 case "idIn":
6757 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idIn"))
6758 data, err := ec.unmarshalOID2ᚕgithubᚗcomᚋgoogleᚋuuidᚐUUIDᚄ(ctx, v)
6759 if err != nil {
6760 return it, err
6761 }
6762 it.IDIn = data
6763 case "idNotIn":
6764 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idNotIn"))
6765 data, err := ec.unmarshalOID2ᚕgithubᚗcomᚋgoogleᚋuuidᚐUUIDᚄ(ctx, v)
6766 if err != nil {
6767 return it, err
6768 }
6769 it.IDNotIn = data
6770 case "idGT":
6771 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGT"))
6772 data, err := ec.unmarshalOID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, v)
6773 if err != nil {
6774 return it, err
6775 }
6776 it.IDGT = data
6777 case "idGTE":
6778 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGTE"))
6779 data, err := ec.unmarshalOID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, v)
6780 if err != nil {
6781 return it, err
6782 }
6783 it.IDGTE = data
6784 case "idLT":
6785 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLT"))
6786 data, err := ec.unmarshalOID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, v)
6787 if err != nil {
6788 return it, err
6789 }
6790 it.IDLT = data
6791 case "idLTE":
6792 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLTE"))
6793 data, err := ec.unmarshalOID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, v)
6794 if err != nil {
6795 return it, err
6796 }
6797 it.IDLTE = data
6798 case "name":
6799 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name"))
6800 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
6801 if err != nil {
6802 return it, err
6803 }
6804 it.Name = data
6805 case "nameNEQ":
6806 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameNEQ"))
6807 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
6808 if err != nil {
6809 return it, err
6810 }
6811 it.NameNEQ = data
6812 case "nameIn":
6813 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameIn"))
6814 data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v)
6815 if err != nil {
6816 return it, err
6817 }
6818 it.NameIn = data
6819 case "nameNotIn":
6820 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameNotIn"))
6821 data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v)
6822 if err != nil {
6823 return it, err
6824 }
6825 it.NameNotIn = data
6826 case "nameGT":
6827 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameGT"))
6828 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
6829 if err != nil {
6830 return it, err
6831 }
6832 it.NameGT = data
6833 case "nameGTE":
6834 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameGTE"))
6835 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
6836 if err != nil {
6837 return it, err
6838 }
6839 it.NameGTE = data
6840 case "nameLT":
6841 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameLT"))
6842 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
6843 if err != nil {
6844 return it, err
6845 }
6846 it.NameLT = data
6847 case "nameLTE":
6848 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameLTE"))
6849 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
6850 if err != nil {
6851 return it, err
6852 }
6853 it.NameLTE = data
6854 case "nameContains":
6855 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameContains"))
6856 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
6857 if err != nil {
6858 return it, err
6859 }
6860 it.NameContains = data
6861 case "nameHasPrefix":
6862 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameHasPrefix"))
6863 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
6864 if err != nil {
6865 return it, err
6866 }
6867 it.NameHasPrefix = data
6868 case "nameHasSuffix":
6869 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameHasSuffix"))
6870 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
6871 if err != nil {
6872 return it, err
6873 }
6874 it.NameHasSuffix = data
6875 case "nameEqualFold":
6876 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameEqualFold"))
6877 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
6878 if err != nil {
6879 return it, err
6880 }
6881 it.NameEqualFold = data
6882 case "nameContainsFold":
6883 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameContainsFold"))
6884 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
6885 if err != nil {
6886 return it, err
6887 }
6888 it.NameContainsFold = data
6889 case "hasStatement":
6890 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasStatement"))
6891 data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v)
6892 if err != nil {
6893 return it, err
6894 }
6895 it.HasStatement = data
6896 case "hasStatementWith":
6897 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasStatementWith"))
6898 data, err := ec.unmarshalOStatementWhereInput2ᚕᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐStatementWhereInputᚄ(ctx, v)
6899 if err != nil {
6900 return it, err
6901 }
6902 it.HasStatementWith = data
6903 }
6904 }
6905
6906 return it, nil
6907 }
6908
6909 func (ec *executionContext) unmarshalInputAttestationWhereInput(ctx context.Context, obj any) (ent.AttestationWhereInput, error) {
6910 var it ent.AttestationWhereInput
6911 asMap := map[string]any{}
6912 for k, v := range obj.(map[string]any) {
6913 asMap[k] = v
6914 }
6915
6916 fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "type", "typeNEQ", "typeIn", "typeNotIn", "typeGT", "typeGTE", "typeLT", "typeLTE", "typeContains", "typeHasPrefix", "typeHasSuffix", "typeEqualFold", "typeContainsFold", "hasAttestationCollection", "hasAttestationCollectionWith"}
6917 for _, k := range fieldsInOrder {
6918 v, ok := asMap[k]
6919 if !ok {
6920 continue
6921 }
6922 switch k {
6923 case "not":
6924 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("not"))
6925 data, err := ec.unmarshalOAttestationWhereInput2ᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐAttestationWhereInput(ctx, v)
6926 if err != nil {
6927 return it, err
6928 }
6929 it.Not = data
6930 case "and":
6931 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and"))
6932 data, err := ec.unmarshalOAttestationWhereInput2ᚕᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐAttestationWhereInputᚄ(ctx, v)
6933 if err != nil {
6934 return it, err
6935 }
6936 it.And = data
6937 case "or":
6938 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or"))
6939 data, err := ec.unmarshalOAttestationWhereInput2ᚕᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐAttestationWhereInputᚄ(ctx, v)
6940 if err != nil {
6941 return it, err
6942 }
6943 it.Or = data
6944 case "id":
6945 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id"))
6946 data, err := ec.unmarshalOID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, v)
6947 if err != nil {
6948 return it, err
6949 }
6950 it.ID = data
6951 case "idNEQ":
6952 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idNEQ"))
6953 data, err := ec.unmarshalOID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, v)
6954 if err != nil {
6955 return it, err
6956 }
6957 it.IDNEQ = data
6958 case "idIn":
6959 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idIn"))
6960 data, err := ec.unmarshalOID2ᚕgithubᚗcomᚋgoogleᚋuuidᚐUUIDᚄ(ctx, v)
6961 if err != nil {
6962 return it, err
6963 }
6964 it.IDIn = data
6965 case "idNotIn":
6966 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idNotIn"))
6967 data, err := ec.unmarshalOID2ᚕgithubᚗcomᚋgoogleᚋuuidᚐUUIDᚄ(ctx, v)
6968 if err != nil {
6969 return it, err
6970 }
6971 it.IDNotIn = data
6972 case "idGT":
6973 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGT"))
6974 data, err := ec.unmarshalOID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, v)
6975 if err != nil {
6976 return it, err
6977 }
6978 it.IDGT = data
6979 case "idGTE":
6980 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGTE"))
6981 data, err := ec.unmarshalOID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, v)
6982 if err != nil {
6983 return it, err
6984 }
6985 it.IDGTE = data
6986 case "idLT":
6987 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLT"))
6988 data, err := ec.unmarshalOID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, v)
6989 if err != nil {
6990 return it, err
6991 }
6992 it.IDLT = data
6993 case "idLTE":
6994 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLTE"))
6995 data, err := ec.unmarshalOID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, v)
6996 if err != nil {
6997 return it, err
6998 }
6999 it.IDLTE = data
7000 case "type":
7001 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("type"))
7002 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
7003 if err != nil {
7004 return it, err
7005 }
7006 it.Type = data
7007 case "typeNEQ":
7008 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("typeNEQ"))
7009 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
7010 if err != nil {
7011 return it, err
7012 }
7013 it.TypeNEQ = data
7014 case "typeIn":
7015 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("typeIn"))
7016 data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v)
7017 if err != nil {
7018 return it, err
7019 }
7020 it.TypeIn = data
7021 case "typeNotIn":
7022 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("typeNotIn"))
7023 data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v)
7024 if err != nil {
7025 return it, err
7026 }
7027 it.TypeNotIn = data
7028 case "typeGT":
7029 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("typeGT"))
7030 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
7031 if err != nil {
7032 return it, err
7033 }
7034 it.TypeGT = data
7035 case "typeGTE":
7036 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("typeGTE"))
7037 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
7038 if err != nil {
7039 return it, err
7040 }
7041 it.TypeGTE = data
7042 case "typeLT":
7043 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("typeLT"))
7044 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
7045 if err != nil {
7046 return it, err
7047 }
7048 it.TypeLT = data
7049 case "typeLTE":
7050 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("typeLTE"))
7051 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
7052 if err != nil {
7053 return it, err
7054 }
7055 it.TypeLTE = data
7056 case "typeContains":
7057 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("typeContains"))
7058 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
7059 if err != nil {
7060 return it, err
7061 }
7062 it.TypeContains = data
7063 case "typeHasPrefix":
7064 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("typeHasPrefix"))
7065 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
7066 if err != nil {
7067 return it, err
7068 }
7069 it.TypeHasPrefix = data
7070 case "typeHasSuffix":
7071 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("typeHasSuffix"))
7072 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
7073 if err != nil {
7074 return it, err
7075 }
7076 it.TypeHasSuffix = data
7077 case "typeEqualFold":
7078 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("typeEqualFold"))
7079 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
7080 if err != nil {
7081 return it, err
7082 }
7083 it.TypeEqualFold = data
7084 case "typeContainsFold":
7085 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("typeContainsFold"))
7086 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
7087 if err != nil {
7088 return it, err
7089 }
7090 it.TypeContainsFold = data
7091 case "hasAttestationCollection":
7092 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasAttestationCollection"))
7093 data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v)
7094 if err != nil {
7095 return it, err
7096 }
7097 it.HasAttestationCollection = data
7098 case "hasAttestationCollectionWith":
7099 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasAttestationCollectionWith"))
7100 data, err := ec.unmarshalOAttestationCollectionWhereInput2ᚕᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐAttestationCollectionWhereInputᚄ(ctx, v)
7101 if err != nil {
7102 return it, err
7103 }
7104 it.HasAttestationCollectionWith = data
7105 }
7106 }
7107
7108 return it, nil
7109 }
7110
7111 func (ec *executionContext) unmarshalInputDsseOrder(ctx context.Context, obj any) (ent.DsseOrder, error) {
7112 var it ent.DsseOrder
7113 asMap := map[string]any{}
7114 for k, v := range obj.(map[string]any) {
7115 asMap[k] = v
7116 }
7117
7118 if _, present := asMap["direction"]; !present {
7119 asMap["direction"] = "ASC"
7120 }
7121
7122 fieldsInOrder := [...]string{"direction", "field"}
7123 for _, k := range fieldsInOrder {
7124 v, ok := asMap[k]
7125 if !ok {
7126 continue
7127 }
7128 switch k {
7129 case "direction":
7130 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("direction"))
7131 data, err := ec.unmarshalNOrderDirection2entgoᚗioᚋcontribᚋentgqlᚐOrderDirection(ctx, v)
7132 if err != nil {
7133 return it, err
7134 }
7135 it.Direction = data
7136 case "field":
7137 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("field"))
7138 data, err := ec.unmarshalNDsseOrderField2ᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐDsseOrderField(ctx, v)
7139 if err != nil {
7140 return it, err
7141 }
7142 it.Field = data
7143 }
7144 }
7145
7146 return it, nil
7147 }
7148
7149 func (ec *executionContext) unmarshalInputDsseWhereInput(ctx context.Context, obj any) (ent.DsseWhereInput, error) {
7150 var it ent.DsseWhereInput
7151 asMap := map[string]any{}
7152 for k, v := range obj.(map[string]any) {
7153 asMap[k] = v
7154 }
7155
7156 fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "gitoidSha256", "gitoidSha256NEQ", "gitoidSha256In", "gitoidSha256NotIn", "gitoidSha256GT", "gitoidSha256GTE", "gitoidSha256LT", "gitoidSha256LTE", "gitoidSha256Contains", "gitoidSha256HasPrefix", "gitoidSha256HasSuffix", "gitoidSha256EqualFold", "gitoidSha256ContainsFold", "payloadType", "payloadTypeNEQ", "payloadTypeIn", "payloadTypeNotIn", "payloadTypeGT", "payloadTypeGTE", "payloadTypeLT", "payloadTypeLTE", "payloadTypeContains", "payloadTypeHasPrefix", "payloadTypeHasSuffix", "payloadTypeEqualFold", "payloadTypeContainsFold", "hasStatement", "hasStatementWith", "hasSignatures", "hasSignaturesWith", "hasPayloadDigests", "hasPayloadDigestsWith"}
7157 for _, k := range fieldsInOrder {
7158 v, ok := asMap[k]
7159 if !ok {
7160 continue
7161 }
7162 switch k {
7163 case "not":
7164 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("not"))
7165 data, err := ec.unmarshalODsseWhereInput2ᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐDsseWhereInput(ctx, v)
7166 if err != nil {
7167 return it, err
7168 }
7169 it.Not = data
7170 case "and":
7171 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and"))
7172 data, err := ec.unmarshalODsseWhereInput2ᚕᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐDsseWhereInputᚄ(ctx, v)
7173 if err != nil {
7174 return it, err
7175 }
7176 it.And = data
7177 case "or":
7178 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or"))
7179 data, err := ec.unmarshalODsseWhereInput2ᚕᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐDsseWhereInputᚄ(ctx, v)
7180 if err != nil {
7181 return it, err
7182 }
7183 it.Or = data
7184 case "id":
7185 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id"))
7186 data, err := ec.unmarshalOID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, v)
7187 if err != nil {
7188 return it, err
7189 }
7190 it.ID = data
7191 case "idNEQ":
7192 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idNEQ"))
7193 data, err := ec.unmarshalOID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, v)
7194 if err != nil {
7195 return it, err
7196 }
7197 it.IDNEQ = data
7198 case "idIn":
7199 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idIn"))
7200 data, err := ec.unmarshalOID2ᚕgithubᚗcomᚋgoogleᚋuuidᚐUUIDᚄ(ctx, v)
7201 if err != nil {
7202 return it, err
7203 }
7204 it.IDIn = data
7205 case "idNotIn":
7206 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idNotIn"))
7207 data, err := ec.unmarshalOID2ᚕgithubᚗcomᚋgoogleᚋuuidᚐUUIDᚄ(ctx, v)
7208 if err != nil {
7209 return it, err
7210 }
7211 it.IDNotIn = data
7212 case "idGT":
7213 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGT"))
7214 data, err := ec.unmarshalOID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, v)
7215 if err != nil {
7216 return it, err
7217 }
7218 it.IDGT = data
7219 case "idGTE":
7220 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGTE"))
7221 data, err := ec.unmarshalOID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, v)
7222 if err != nil {
7223 return it, err
7224 }
7225 it.IDGTE = data
7226 case "idLT":
7227 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLT"))
7228 data, err := ec.unmarshalOID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, v)
7229 if err != nil {
7230 return it, err
7231 }
7232 it.IDLT = data
7233 case "idLTE":
7234 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLTE"))
7235 data, err := ec.unmarshalOID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, v)
7236 if err != nil {
7237 return it, err
7238 }
7239 it.IDLTE = data
7240 case "createdAt":
7241 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAt"))
7242 data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v)
7243 if err != nil {
7244 return it, err
7245 }
7246 it.CreatedAt = data
7247 case "createdAtNEQ":
7248 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNEQ"))
7249 data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v)
7250 if err != nil {
7251 return it, err
7252 }
7253 it.CreatedAtNEQ = data
7254 case "createdAtIn":
7255 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtIn"))
7256 data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v)
7257 if err != nil {
7258 return it, err
7259 }
7260 it.CreatedAtIn = data
7261 case "createdAtNotIn":
7262 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNotIn"))
7263 data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v)
7264 if err != nil {
7265 return it, err
7266 }
7267 it.CreatedAtNotIn = data
7268 case "createdAtGT":
7269 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtGT"))
7270 data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v)
7271 if err != nil {
7272 return it, err
7273 }
7274 it.CreatedAtGT = data
7275 case "createdAtGTE":
7276 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtGTE"))
7277 data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v)
7278 if err != nil {
7279 return it, err
7280 }
7281 it.CreatedAtGTE = data
7282 case "createdAtLT":
7283 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtLT"))
7284 data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v)
7285 if err != nil {
7286 return it, err
7287 }
7288 it.CreatedAtLT = data
7289 case "createdAtLTE":
7290 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtLTE"))
7291 data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v)
7292 if err != nil {
7293 return it, err
7294 }
7295 it.CreatedAtLTE = data
7296 case "createdAtIsNil":
7297 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtIsNil"))
7298 data, err := ec.unmarshalOBoolean2bool(ctx, v)
7299 if err != nil {
7300 return it, err
7301 }
7302 it.CreatedAtIsNil = data
7303 case "createdAtNotNil":
7304 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNotNil"))
7305 data, err := ec.unmarshalOBoolean2bool(ctx, v)
7306 if err != nil {
7307 return it, err
7308 }
7309 it.CreatedAtNotNil = data
7310 case "gitoidSha256":
7311 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("gitoidSha256"))
7312 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
7313 if err != nil {
7314 return it, err
7315 }
7316 it.GitoidSha256 = data
7317 case "gitoidSha256NEQ":
7318 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("gitoidSha256NEQ"))
7319 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
7320 if err != nil {
7321 return it, err
7322 }
7323 it.GitoidSha256NEQ = data
7324 case "gitoidSha256In":
7325 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("gitoidSha256In"))
7326 data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v)
7327 if err != nil {
7328 return it, err
7329 }
7330 it.GitoidSha256In = data
7331 case "gitoidSha256NotIn":
7332 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("gitoidSha256NotIn"))
7333 data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v)
7334 if err != nil {
7335 return it, err
7336 }
7337 it.GitoidSha256NotIn = data
7338 case "gitoidSha256GT":
7339 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("gitoidSha256GT"))
7340 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
7341 if err != nil {
7342 return it, err
7343 }
7344 it.GitoidSha256GT = data
7345 case "gitoidSha256GTE":
7346 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("gitoidSha256GTE"))
7347 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
7348 if err != nil {
7349 return it, err
7350 }
7351 it.GitoidSha256GTE = data
7352 case "gitoidSha256LT":
7353 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("gitoidSha256LT"))
7354 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
7355 if err != nil {
7356 return it, err
7357 }
7358 it.GitoidSha256LT = data
7359 case "gitoidSha256LTE":
7360 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("gitoidSha256LTE"))
7361 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
7362 if err != nil {
7363 return it, err
7364 }
7365 it.GitoidSha256LTE = data
7366 case "gitoidSha256Contains":
7367 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("gitoidSha256Contains"))
7368 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
7369 if err != nil {
7370 return it, err
7371 }
7372 it.GitoidSha256Contains = data
7373 case "gitoidSha256HasPrefix":
7374 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("gitoidSha256HasPrefix"))
7375 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
7376 if err != nil {
7377 return it, err
7378 }
7379 it.GitoidSha256HasPrefix = data
7380 case "gitoidSha256HasSuffix":
7381 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("gitoidSha256HasSuffix"))
7382 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
7383 if err != nil {
7384 return it, err
7385 }
7386 it.GitoidSha256HasSuffix = data
7387 case "gitoidSha256EqualFold":
7388 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("gitoidSha256EqualFold"))
7389 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
7390 if err != nil {
7391 return it, err
7392 }
7393 it.GitoidSha256EqualFold = data
7394 case "gitoidSha256ContainsFold":
7395 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("gitoidSha256ContainsFold"))
7396 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
7397 if err != nil {
7398 return it, err
7399 }
7400 it.GitoidSha256ContainsFold = data
7401 case "payloadType":
7402 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("payloadType"))
7403 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
7404 if err != nil {
7405 return it, err
7406 }
7407 it.PayloadType = data
7408 case "payloadTypeNEQ":
7409 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("payloadTypeNEQ"))
7410 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
7411 if err != nil {
7412 return it, err
7413 }
7414 it.PayloadTypeNEQ = data
7415 case "payloadTypeIn":
7416 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("payloadTypeIn"))
7417 data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v)
7418 if err != nil {
7419 return it, err
7420 }
7421 it.PayloadTypeIn = data
7422 case "payloadTypeNotIn":
7423 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("payloadTypeNotIn"))
7424 data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v)
7425 if err != nil {
7426 return it, err
7427 }
7428 it.PayloadTypeNotIn = data
7429 case "payloadTypeGT":
7430 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("payloadTypeGT"))
7431 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
7432 if err != nil {
7433 return it, err
7434 }
7435 it.PayloadTypeGT = data
7436 case "payloadTypeGTE":
7437 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("payloadTypeGTE"))
7438 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
7439 if err != nil {
7440 return it, err
7441 }
7442 it.PayloadTypeGTE = data
7443 case "payloadTypeLT":
7444 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("payloadTypeLT"))
7445 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
7446 if err != nil {
7447 return it, err
7448 }
7449 it.PayloadTypeLT = data
7450 case "payloadTypeLTE":
7451 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("payloadTypeLTE"))
7452 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
7453 if err != nil {
7454 return it, err
7455 }
7456 it.PayloadTypeLTE = data
7457 case "payloadTypeContains":
7458 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("payloadTypeContains"))
7459 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
7460 if err != nil {
7461 return it, err
7462 }
7463 it.PayloadTypeContains = data
7464 case "payloadTypeHasPrefix":
7465 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("payloadTypeHasPrefix"))
7466 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
7467 if err != nil {
7468 return it, err
7469 }
7470 it.PayloadTypeHasPrefix = data
7471 case "payloadTypeHasSuffix":
7472 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("payloadTypeHasSuffix"))
7473 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
7474 if err != nil {
7475 return it, err
7476 }
7477 it.PayloadTypeHasSuffix = data
7478 case "payloadTypeEqualFold":
7479 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("payloadTypeEqualFold"))
7480 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
7481 if err != nil {
7482 return it, err
7483 }
7484 it.PayloadTypeEqualFold = data
7485 case "payloadTypeContainsFold":
7486 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("payloadTypeContainsFold"))
7487 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
7488 if err != nil {
7489 return it, err
7490 }
7491 it.PayloadTypeContainsFold = data
7492 case "hasStatement":
7493 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasStatement"))
7494 data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v)
7495 if err != nil {
7496 return it, err
7497 }
7498 it.HasStatement = data
7499 case "hasStatementWith":
7500 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasStatementWith"))
7501 data, err := ec.unmarshalOStatementWhereInput2ᚕᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐStatementWhereInputᚄ(ctx, v)
7502 if err != nil {
7503 return it, err
7504 }
7505 it.HasStatementWith = data
7506 case "hasSignatures":
7507 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasSignatures"))
7508 data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v)
7509 if err != nil {
7510 return it, err
7511 }
7512 it.HasSignatures = data
7513 case "hasSignaturesWith":
7514 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasSignaturesWith"))
7515 data, err := ec.unmarshalOSignatureWhereInput2ᚕᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐSignatureWhereInputᚄ(ctx, v)
7516 if err != nil {
7517 return it, err
7518 }
7519 it.HasSignaturesWith = data
7520 case "hasPayloadDigests":
7521 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasPayloadDigests"))
7522 data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v)
7523 if err != nil {
7524 return it, err
7525 }
7526 it.HasPayloadDigests = data
7527 case "hasPayloadDigestsWith":
7528 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasPayloadDigestsWith"))
7529 data, err := ec.unmarshalOPayloadDigestWhereInput2ᚕᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐPayloadDigestWhereInputᚄ(ctx, v)
7530 if err != nil {
7531 return it, err
7532 }
7533 it.HasPayloadDigestsWith = data
7534 }
7535 }
7536
7537 return it, nil
7538 }
7539
7540 func (ec *executionContext) unmarshalInputPayloadDigestWhereInput(ctx context.Context, obj any) (ent.PayloadDigestWhereInput, error) {
7541 var it ent.PayloadDigestWhereInput
7542 asMap := map[string]any{}
7543 for k, v := range obj.(map[string]any) {
7544 asMap[k] = v
7545 }
7546
7547 fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "algorithm", "algorithmNEQ", "algorithmIn", "algorithmNotIn", "algorithmGT", "algorithmGTE", "algorithmLT", "algorithmLTE", "algorithmContains", "algorithmHasPrefix", "algorithmHasSuffix", "algorithmEqualFold", "algorithmContainsFold", "value", "valueNEQ", "valueIn", "valueNotIn", "valueGT", "valueGTE", "valueLT", "valueLTE", "valueContains", "valueHasPrefix", "valueHasSuffix", "valueEqualFold", "valueContainsFold", "hasDsse", "hasDsseWith"}
7548 for _, k := range fieldsInOrder {
7549 v, ok := asMap[k]
7550 if !ok {
7551 continue
7552 }
7553 switch k {
7554 case "not":
7555 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("not"))
7556 data, err := ec.unmarshalOPayloadDigestWhereInput2ᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐPayloadDigestWhereInput(ctx, v)
7557 if err != nil {
7558 return it, err
7559 }
7560 it.Not = data
7561 case "and":
7562 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and"))
7563 data, err := ec.unmarshalOPayloadDigestWhereInput2ᚕᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐPayloadDigestWhereInputᚄ(ctx, v)
7564 if err != nil {
7565 return it, err
7566 }
7567 it.And = data
7568 case "or":
7569 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or"))
7570 data, err := ec.unmarshalOPayloadDigestWhereInput2ᚕᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐPayloadDigestWhereInputᚄ(ctx, v)
7571 if err != nil {
7572 return it, err
7573 }
7574 it.Or = data
7575 case "id":
7576 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id"))
7577 data, err := ec.unmarshalOID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, v)
7578 if err != nil {
7579 return it, err
7580 }
7581 it.ID = data
7582 case "idNEQ":
7583 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idNEQ"))
7584 data, err := ec.unmarshalOID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, v)
7585 if err != nil {
7586 return it, err
7587 }
7588 it.IDNEQ = data
7589 case "idIn":
7590 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idIn"))
7591 data, err := ec.unmarshalOID2ᚕgithubᚗcomᚋgoogleᚋuuidᚐUUIDᚄ(ctx, v)
7592 if err != nil {
7593 return it, err
7594 }
7595 it.IDIn = data
7596 case "idNotIn":
7597 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idNotIn"))
7598 data, err := ec.unmarshalOID2ᚕgithubᚗcomᚋgoogleᚋuuidᚐUUIDᚄ(ctx, v)
7599 if err != nil {
7600 return it, err
7601 }
7602 it.IDNotIn = data
7603 case "idGT":
7604 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGT"))
7605 data, err := ec.unmarshalOID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, v)
7606 if err != nil {
7607 return it, err
7608 }
7609 it.IDGT = data
7610 case "idGTE":
7611 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGTE"))
7612 data, err := ec.unmarshalOID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, v)
7613 if err != nil {
7614 return it, err
7615 }
7616 it.IDGTE = data
7617 case "idLT":
7618 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLT"))
7619 data, err := ec.unmarshalOID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, v)
7620 if err != nil {
7621 return it, err
7622 }
7623 it.IDLT = data
7624 case "idLTE":
7625 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLTE"))
7626 data, err := ec.unmarshalOID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, v)
7627 if err != nil {
7628 return it, err
7629 }
7630 it.IDLTE = data
7631 case "algorithm":
7632 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("algorithm"))
7633 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
7634 if err != nil {
7635 return it, err
7636 }
7637 it.Algorithm = data
7638 case "algorithmNEQ":
7639 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("algorithmNEQ"))
7640 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
7641 if err != nil {
7642 return it, err
7643 }
7644 it.AlgorithmNEQ = data
7645 case "algorithmIn":
7646 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("algorithmIn"))
7647 data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v)
7648 if err != nil {
7649 return it, err
7650 }
7651 it.AlgorithmIn = data
7652 case "algorithmNotIn":
7653 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("algorithmNotIn"))
7654 data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v)
7655 if err != nil {
7656 return it, err
7657 }
7658 it.AlgorithmNotIn = data
7659 case "algorithmGT":
7660 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("algorithmGT"))
7661 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
7662 if err != nil {
7663 return it, err
7664 }
7665 it.AlgorithmGT = data
7666 case "algorithmGTE":
7667 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("algorithmGTE"))
7668 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
7669 if err != nil {
7670 return it, err
7671 }
7672 it.AlgorithmGTE = data
7673 case "algorithmLT":
7674 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("algorithmLT"))
7675 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
7676 if err != nil {
7677 return it, err
7678 }
7679 it.AlgorithmLT = data
7680 case "algorithmLTE":
7681 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("algorithmLTE"))
7682 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
7683 if err != nil {
7684 return it, err
7685 }
7686 it.AlgorithmLTE = data
7687 case "algorithmContains":
7688 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("algorithmContains"))
7689 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
7690 if err != nil {
7691 return it, err
7692 }
7693 it.AlgorithmContains = data
7694 case "algorithmHasPrefix":
7695 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("algorithmHasPrefix"))
7696 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
7697 if err != nil {
7698 return it, err
7699 }
7700 it.AlgorithmHasPrefix = data
7701 case "algorithmHasSuffix":
7702 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("algorithmHasSuffix"))
7703 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
7704 if err != nil {
7705 return it, err
7706 }
7707 it.AlgorithmHasSuffix = data
7708 case "algorithmEqualFold":
7709 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("algorithmEqualFold"))
7710 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
7711 if err != nil {
7712 return it, err
7713 }
7714 it.AlgorithmEqualFold = data
7715 case "algorithmContainsFold":
7716 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("algorithmContainsFold"))
7717 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
7718 if err != nil {
7719 return it, err
7720 }
7721 it.AlgorithmContainsFold = data
7722 case "value":
7723 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("value"))
7724 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
7725 if err != nil {
7726 return it, err
7727 }
7728 it.Value = data
7729 case "valueNEQ":
7730 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("valueNEQ"))
7731 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
7732 if err != nil {
7733 return it, err
7734 }
7735 it.ValueNEQ = data
7736 case "valueIn":
7737 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("valueIn"))
7738 data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v)
7739 if err != nil {
7740 return it, err
7741 }
7742 it.ValueIn = data
7743 case "valueNotIn":
7744 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("valueNotIn"))
7745 data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v)
7746 if err != nil {
7747 return it, err
7748 }
7749 it.ValueNotIn = data
7750 case "valueGT":
7751 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("valueGT"))
7752 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
7753 if err != nil {
7754 return it, err
7755 }
7756 it.ValueGT = data
7757 case "valueGTE":
7758 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("valueGTE"))
7759 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
7760 if err != nil {
7761 return it, err
7762 }
7763 it.ValueGTE = data
7764 case "valueLT":
7765 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("valueLT"))
7766 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
7767 if err != nil {
7768 return it, err
7769 }
7770 it.ValueLT = data
7771 case "valueLTE":
7772 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("valueLTE"))
7773 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
7774 if err != nil {
7775 return it, err
7776 }
7777 it.ValueLTE = data
7778 case "valueContains":
7779 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("valueContains"))
7780 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
7781 if err != nil {
7782 return it, err
7783 }
7784 it.ValueContains = data
7785 case "valueHasPrefix":
7786 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("valueHasPrefix"))
7787 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
7788 if err != nil {
7789 return it, err
7790 }
7791 it.ValueHasPrefix = data
7792 case "valueHasSuffix":
7793 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("valueHasSuffix"))
7794 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
7795 if err != nil {
7796 return it, err
7797 }
7798 it.ValueHasSuffix = data
7799 case "valueEqualFold":
7800 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("valueEqualFold"))
7801 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
7802 if err != nil {
7803 return it, err
7804 }
7805 it.ValueEqualFold = data
7806 case "valueContainsFold":
7807 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("valueContainsFold"))
7808 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
7809 if err != nil {
7810 return it, err
7811 }
7812 it.ValueContainsFold = data
7813 case "hasDsse":
7814 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasDsse"))
7815 data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v)
7816 if err != nil {
7817 return it, err
7818 }
7819 it.HasDsse = data
7820 case "hasDsseWith":
7821 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasDsseWith"))
7822 data, err := ec.unmarshalODsseWhereInput2ᚕᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐDsseWhereInputᚄ(ctx, v)
7823 if err != nil {
7824 return it, err
7825 }
7826 it.HasDsseWith = data
7827 }
7828 }
7829
7830 return it, nil
7831 }
7832
7833 func (ec *executionContext) unmarshalInputSignatureWhereInput(ctx context.Context, obj any) (ent.SignatureWhereInput, error) {
7834 var it ent.SignatureWhereInput
7835 asMap := map[string]any{}
7836 for k, v := range obj.(map[string]any) {
7837 asMap[k] = v
7838 }
7839
7840 fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "keyID", "keyIDNEQ", "keyIDIn", "keyIDNotIn", "keyIDGT", "keyIDGTE", "keyIDLT", "keyIDLTE", "keyIDContains", "keyIDHasPrefix", "keyIDHasSuffix", "keyIDEqualFold", "keyIDContainsFold", "signature", "signatureNEQ", "signatureIn", "signatureNotIn", "signatureGT", "signatureGTE", "signatureLT", "signatureLTE", "signatureContains", "signatureHasPrefix", "signatureHasSuffix", "signatureEqualFold", "signatureContainsFold", "hasDsse", "hasDsseWith", "hasTimestamps", "hasTimestampsWith"}
7841 for _, k := range fieldsInOrder {
7842 v, ok := asMap[k]
7843 if !ok {
7844 continue
7845 }
7846 switch k {
7847 case "not":
7848 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("not"))
7849 data, err := ec.unmarshalOSignatureWhereInput2ᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐSignatureWhereInput(ctx, v)
7850 if err != nil {
7851 return it, err
7852 }
7853 it.Not = data
7854 case "and":
7855 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and"))
7856 data, err := ec.unmarshalOSignatureWhereInput2ᚕᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐSignatureWhereInputᚄ(ctx, v)
7857 if err != nil {
7858 return it, err
7859 }
7860 it.And = data
7861 case "or":
7862 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or"))
7863 data, err := ec.unmarshalOSignatureWhereInput2ᚕᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐSignatureWhereInputᚄ(ctx, v)
7864 if err != nil {
7865 return it, err
7866 }
7867 it.Or = data
7868 case "id":
7869 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id"))
7870 data, err := ec.unmarshalOID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, v)
7871 if err != nil {
7872 return it, err
7873 }
7874 it.ID = data
7875 case "idNEQ":
7876 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idNEQ"))
7877 data, err := ec.unmarshalOID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, v)
7878 if err != nil {
7879 return it, err
7880 }
7881 it.IDNEQ = data
7882 case "idIn":
7883 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idIn"))
7884 data, err := ec.unmarshalOID2ᚕgithubᚗcomᚋgoogleᚋuuidᚐUUIDᚄ(ctx, v)
7885 if err != nil {
7886 return it, err
7887 }
7888 it.IDIn = data
7889 case "idNotIn":
7890 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idNotIn"))
7891 data, err := ec.unmarshalOID2ᚕgithubᚗcomᚋgoogleᚋuuidᚐUUIDᚄ(ctx, v)
7892 if err != nil {
7893 return it, err
7894 }
7895 it.IDNotIn = data
7896 case "idGT":
7897 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGT"))
7898 data, err := ec.unmarshalOID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, v)
7899 if err != nil {
7900 return it, err
7901 }
7902 it.IDGT = data
7903 case "idGTE":
7904 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGTE"))
7905 data, err := ec.unmarshalOID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, v)
7906 if err != nil {
7907 return it, err
7908 }
7909 it.IDGTE = data
7910 case "idLT":
7911 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLT"))
7912 data, err := ec.unmarshalOID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, v)
7913 if err != nil {
7914 return it, err
7915 }
7916 it.IDLT = data
7917 case "idLTE":
7918 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLTE"))
7919 data, err := ec.unmarshalOID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, v)
7920 if err != nil {
7921 return it, err
7922 }
7923 it.IDLTE = data
7924 case "keyID":
7925 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("keyID"))
7926 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
7927 if err != nil {
7928 return it, err
7929 }
7930 it.KeyID = data
7931 case "keyIDNEQ":
7932 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("keyIDNEQ"))
7933 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
7934 if err != nil {
7935 return it, err
7936 }
7937 it.KeyIDNEQ = data
7938 case "keyIDIn":
7939 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("keyIDIn"))
7940 data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v)
7941 if err != nil {
7942 return it, err
7943 }
7944 it.KeyIDIn = data
7945 case "keyIDNotIn":
7946 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("keyIDNotIn"))
7947 data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v)
7948 if err != nil {
7949 return it, err
7950 }
7951 it.KeyIDNotIn = data
7952 case "keyIDGT":
7953 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("keyIDGT"))
7954 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
7955 if err != nil {
7956 return it, err
7957 }
7958 it.KeyIDGT = data
7959 case "keyIDGTE":
7960 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("keyIDGTE"))
7961 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
7962 if err != nil {
7963 return it, err
7964 }
7965 it.KeyIDGTE = data
7966 case "keyIDLT":
7967 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("keyIDLT"))
7968 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
7969 if err != nil {
7970 return it, err
7971 }
7972 it.KeyIDLT = data
7973 case "keyIDLTE":
7974 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("keyIDLTE"))
7975 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
7976 if err != nil {
7977 return it, err
7978 }
7979 it.KeyIDLTE = data
7980 case "keyIDContains":
7981 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("keyIDContains"))
7982 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
7983 if err != nil {
7984 return it, err
7985 }
7986 it.KeyIDContains = data
7987 case "keyIDHasPrefix":
7988 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("keyIDHasPrefix"))
7989 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
7990 if err != nil {
7991 return it, err
7992 }
7993 it.KeyIDHasPrefix = data
7994 case "keyIDHasSuffix":
7995 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("keyIDHasSuffix"))
7996 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
7997 if err != nil {
7998 return it, err
7999 }
8000 it.KeyIDHasSuffix = data
8001 case "keyIDEqualFold":
8002 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("keyIDEqualFold"))
8003 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
8004 if err != nil {
8005 return it, err
8006 }
8007 it.KeyIDEqualFold = data
8008 case "keyIDContainsFold":
8009 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("keyIDContainsFold"))
8010 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
8011 if err != nil {
8012 return it, err
8013 }
8014 it.KeyIDContainsFold = data
8015 case "signature":
8016 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("signature"))
8017 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
8018 if err != nil {
8019 return it, err
8020 }
8021 it.Signature = data
8022 case "signatureNEQ":
8023 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("signatureNEQ"))
8024 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
8025 if err != nil {
8026 return it, err
8027 }
8028 it.SignatureNEQ = data
8029 case "signatureIn":
8030 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("signatureIn"))
8031 data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v)
8032 if err != nil {
8033 return it, err
8034 }
8035 it.SignatureIn = data
8036 case "signatureNotIn":
8037 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("signatureNotIn"))
8038 data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v)
8039 if err != nil {
8040 return it, err
8041 }
8042 it.SignatureNotIn = data
8043 case "signatureGT":
8044 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("signatureGT"))
8045 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
8046 if err != nil {
8047 return it, err
8048 }
8049 it.SignatureGT = data
8050 case "signatureGTE":
8051 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("signatureGTE"))
8052 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
8053 if err != nil {
8054 return it, err
8055 }
8056 it.SignatureGTE = data
8057 case "signatureLT":
8058 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("signatureLT"))
8059 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
8060 if err != nil {
8061 return it, err
8062 }
8063 it.SignatureLT = data
8064 case "signatureLTE":
8065 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("signatureLTE"))
8066 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
8067 if err != nil {
8068 return it, err
8069 }
8070 it.SignatureLTE = data
8071 case "signatureContains":
8072 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("signatureContains"))
8073 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
8074 if err != nil {
8075 return it, err
8076 }
8077 it.SignatureContains = data
8078 case "signatureHasPrefix":
8079 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("signatureHasPrefix"))
8080 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
8081 if err != nil {
8082 return it, err
8083 }
8084 it.SignatureHasPrefix = data
8085 case "signatureHasSuffix":
8086 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("signatureHasSuffix"))
8087 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
8088 if err != nil {
8089 return it, err
8090 }
8091 it.SignatureHasSuffix = data
8092 case "signatureEqualFold":
8093 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("signatureEqualFold"))
8094 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
8095 if err != nil {
8096 return it, err
8097 }
8098 it.SignatureEqualFold = data
8099 case "signatureContainsFold":
8100 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("signatureContainsFold"))
8101 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
8102 if err != nil {
8103 return it, err
8104 }
8105 it.SignatureContainsFold = data
8106 case "hasDsse":
8107 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasDsse"))
8108 data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v)
8109 if err != nil {
8110 return it, err
8111 }
8112 it.HasDsse = data
8113 case "hasDsseWith":
8114 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasDsseWith"))
8115 data, err := ec.unmarshalODsseWhereInput2ᚕᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐDsseWhereInputᚄ(ctx, v)
8116 if err != nil {
8117 return it, err
8118 }
8119 it.HasDsseWith = data
8120 case "hasTimestamps":
8121 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasTimestamps"))
8122 data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v)
8123 if err != nil {
8124 return it, err
8125 }
8126 it.HasTimestamps = data
8127 case "hasTimestampsWith":
8128 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasTimestampsWith"))
8129 data, err := ec.unmarshalOTimestampWhereInput2ᚕᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐTimestampWhereInputᚄ(ctx, v)
8130 if err != nil {
8131 return it, err
8132 }
8133 it.HasTimestampsWith = data
8134 }
8135 }
8136
8137 return it, nil
8138 }
8139
8140 func (ec *executionContext) unmarshalInputStatementWhereInput(ctx context.Context, obj any) (ent.StatementWhereInput, error) {
8141 var it ent.StatementWhereInput
8142 asMap := map[string]any{}
8143 for k, v := range obj.(map[string]any) {
8144 asMap[k] = v
8145 }
8146
8147 fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "predicate", "predicateNEQ", "predicateIn", "predicateNotIn", "predicateGT", "predicateGTE", "predicateLT", "predicateLTE", "predicateContains", "predicateHasPrefix", "predicateHasSuffix", "predicateEqualFold", "predicateContainsFold", "hasSubjects", "hasSubjectsWith", "hasPolicy", "hasPolicyWith", "hasAttestationCollections", "hasAttestationCollectionsWith", "hasDsse", "hasDsseWith"}
8148 for _, k := range fieldsInOrder {
8149 v, ok := asMap[k]
8150 if !ok {
8151 continue
8152 }
8153 switch k {
8154 case "not":
8155 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("not"))
8156 data, err := ec.unmarshalOStatementWhereInput2ᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐStatementWhereInput(ctx, v)
8157 if err != nil {
8158 return it, err
8159 }
8160 it.Not = data
8161 case "and":
8162 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and"))
8163 data, err := ec.unmarshalOStatementWhereInput2ᚕᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐStatementWhereInputᚄ(ctx, v)
8164 if err != nil {
8165 return it, err
8166 }
8167 it.And = data
8168 case "or":
8169 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or"))
8170 data, err := ec.unmarshalOStatementWhereInput2ᚕᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐStatementWhereInputᚄ(ctx, v)
8171 if err != nil {
8172 return it, err
8173 }
8174 it.Or = data
8175 case "id":
8176 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id"))
8177 data, err := ec.unmarshalOID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, v)
8178 if err != nil {
8179 return it, err
8180 }
8181 it.ID = data
8182 case "idNEQ":
8183 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idNEQ"))
8184 data, err := ec.unmarshalOID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, v)
8185 if err != nil {
8186 return it, err
8187 }
8188 it.IDNEQ = data
8189 case "idIn":
8190 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idIn"))
8191 data, err := ec.unmarshalOID2ᚕgithubᚗcomᚋgoogleᚋuuidᚐUUIDᚄ(ctx, v)
8192 if err != nil {
8193 return it, err
8194 }
8195 it.IDIn = data
8196 case "idNotIn":
8197 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idNotIn"))
8198 data, err := ec.unmarshalOID2ᚕgithubᚗcomᚋgoogleᚋuuidᚐUUIDᚄ(ctx, v)
8199 if err != nil {
8200 return it, err
8201 }
8202 it.IDNotIn = data
8203 case "idGT":
8204 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGT"))
8205 data, err := ec.unmarshalOID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, v)
8206 if err != nil {
8207 return it, err
8208 }
8209 it.IDGT = data
8210 case "idGTE":
8211 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGTE"))
8212 data, err := ec.unmarshalOID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, v)
8213 if err != nil {
8214 return it, err
8215 }
8216 it.IDGTE = data
8217 case "idLT":
8218 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLT"))
8219 data, err := ec.unmarshalOID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, v)
8220 if err != nil {
8221 return it, err
8222 }
8223 it.IDLT = data
8224 case "idLTE":
8225 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLTE"))
8226 data, err := ec.unmarshalOID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, v)
8227 if err != nil {
8228 return it, err
8229 }
8230 it.IDLTE = data
8231 case "predicate":
8232 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("predicate"))
8233 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
8234 if err != nil {
8235 return it, err
8236 }
8237 it.Predicate = data
8238 case "predicateNEQ":
8239 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("predicateNEQ"))
8240 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
8241 if err != nil {
8242 return it, err
8243 }
8244 it.PredicateNEQ = data
8245 case "predicateIn":
8246 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("predicateIn"))
8247 data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v)
8248 if err != nil {
8249 return it, err
8250 }
8251 it.PredicateIn = data
8252 case "predicateNotIn":
8253 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("predicateNotIn"))
8254 data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v)
8255 if err != nil {
8256 return it, err
8257 }
8258 it.PredicateNotIn = data
8259 case "predicateGT":
8260 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("predicateGT"))
8261 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
8262 if err != nil {
8263 return it, err
8264 }
8265 it.PredicateGT = data
8266 case "predicateGTE":
8267 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("predicateGTE"))
8268 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
8269 if err != nil {
8270 return it, err
8271 }
8272 it.PredicateGTE = data
8273 case "predicateLT":
8274 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("predicateLT"))
8275 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
8276 if err != nil {
8277 return it, err
8278 }
8279 it.PredicateLT = data
8280 case "predicateLTE":
8281 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("predicateLTE"))
8282 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
8283 if err != nil {
8284 return it, err
8285 }
8286 it.PredicateLTE = data
8287 case "predicateContains":
8288 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("predicateContains"))
8289 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
8290 if err != nil {
8291 return it, err
8292 }
8293 it.PredicateContains = data
8294 case "predicateHasPrefix":
8295 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("predicateHasPrefix"))
8296 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
8297 if err != nil {
8298 return it, err
8299 }
8300 it.PredicateHasPrefix = data
8301 case "predicateHasSuffix":
8302 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("predicateHasSuffix"))
8303 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
8304 if err != nil {
8305 return it, err
8306 }
8307 it.PredicateHasSuffix = data
8308 case "predicateEqualFold":
8309 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("predicateEqualFold"))
8310 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
8311 if err != nil {
8312 return it, err
8313 }
8314 it.PredicateEqualFold = data
8315 case "predicateContainsFold":
8316 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("predicateContainsFold"))
8317 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
8318 if err != nil {
8319 return it, err
8320 }
8321 it.PredicateContainsFold = data
8322 case "hasSubjects":
8323 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasSubjects"))
8324 data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v)
8325 if err != nil {
8326 return it, err
8327 }
8328 it.HasSubjects = data
8329 case "hasSubjectsWith":
8330 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasSubjectsWith"))
8331 data, err := ec.unmarshalOSubjectWhereInput2ᚕᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐSubjectWhereInputᚄ(ctx, v)
8332 if err != nil {
8333 return it, err
8334 }
8335 it.HasSubjectsWith = data
8336 case "hasPolicy":
8337 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasPolicy"))
8338 data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v)
8339 if err != nil {
8340 return it, err
8341 }
8342 it.HasPolicy = data
8343 case "hasPolicyWith":
8344 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasPolicyWith"))
8345 data, err := ec.unmarshalOAttestationPolicyWhereInput2ᚕᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐAttestationPolicyWhereInputᚄ(ctx, v)
8346 if err != nil {
8347 return it, err
8348 }
8349 it.HasPolicyWith = data
8350 case "hasAttestationCollections":
8351 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasAttestationCollections"))
8352 data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v)
8353 if err != nil {
8354 return it, err
8355 }
8356 it.HasAttestationCollections = data
8357 case "hasAttestationCollectionsWith":
8358 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasAttestationCollectionsWith"))
8359 data, err := ec.unmarshalOAttestationCollectionWhereInput2ᚕᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐAttestationCollectionWhereInputᚄ(ctx, v)
8360 if err != nil {
8361 return it, err
8362 }
8363 it.HasAttestationCollectionsWith = data
8364 case "hasDsse":
8365 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasDsse"))
8366 data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v)
8367 if err != nil {
8368 return it, err
8369 }
8370 it.HasDsse = data
8371 case "hasDsseWith":
8372 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasDsseWith"))
8373 data, err := ec.unmarshalODsseWhereInput2ᚕᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐDsseWhereInputᚄ(ctx, v)
8374 if err != nil {
8375 return it, err
8376 }
8377 it.HasDsseWith = data
8378 }
8379 }
8380
8381 return it, nil
8382 }
8383
8384 func (ec *executionContext) unmarshalInputSubjectDigestWhereInput(ctx context.Context, obj any) (ent.SubjectDigestWhereInput, error) {
8385 var it ent.SubjectDigestWhereInput
8386 asMap := map[string]any{}
8387 for k, v := range obj.(map[string]any) {
8388 asMap[k] = v
8389 }
8390
8391 fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "algorithm", "algorithmNEQ", "algorithmIn", "algorithmNotIn", "algorithmGT", "algorithmGTE", "algorithmLT", "algorithmLTE", "algorithmContains", "algorithmHasPrefix", "algorithmHasSuffix", "algorithmEqualFold", "algorithmContainsFold", "value", "valueNEQ", "valueIn", "valueNotIn", "valueGT", "valueGTE", "valueLT", "valueLTE", "valueContains", "valueHasPrefix", "valueHasSuffix", "valueEqualFold", "valueContainsFold", "hasSubject", "hasSubjectWith"}
8392 for _, k := range fieldsInOrder {
8393 v, ok := asMap[k]
8394 if !ok {
8395 continue
8396 }
8397 switch k {
8398 case "not":
8399 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("not"))
8400 data, err := ec.unmarshalOSubjectDigestWhereInput2ᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐSubjectDigestWhereInput(ctx, v)
8401 if err != nil {
8402 return it, err
8403 }
8404 it.Not = data
8405 case "and":
8406 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and"))
8407 data, err := ec.unmarshalOSubjectDigestWhereInput2ᚕᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐSubjectDigestWhereInputᚄ(ctx, v)
8408 if err != nil {
8409 return it, err
8410 }
8411 it.And = data
8412 case "or":
8413 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or"))
8414 data, err := ec.unmarshalOSubjectDigestWhereInput2ᚕᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐSubjectDigestWhereInputᚄ(ctx, v)
8415 if err != nil {
8416 return it, err
8417 }
8418 it.Or = data
8419 case "id":
8420 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id"))
8421 data, err := ec.unmarshalOID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, v)
8422 if err != nil {
8423 return it, err
8424 }
8425 it.ID = data
8426 case "idNEQ":
8427 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idNEQ"))
8428 data, err := ec.unmarshalOID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, v)
8429 if err != nil {
8430 return it, err
8431 }
8432 it.IDNEQ = data
8433 case "idIn":
8434 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idIn"))
8435 data, err := ec.unmarshalOID2ᚕgithubᚗcomᚋgoogleᚋuuidᚐUUIDᚄ(ctx, v)
8436 if err != nil {
8437 return it, err
8438 }
8439 it.IDIn = data
8440 case "idNotIn":
8441 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idNotIn"))
8442 data, err := ec.unmarshalOID2ᚕgithubᚗcomᚋgoogleᚋuuidᚐUUIDᚄ(ctx, v)
8443 if err != nil {
8444 return it, err
8445 }
8446 it.IDNotIn = data
8447 case "idGT":
8448 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGT"))
8449 data, err := ec.unmarshalOID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, v)
8450 if err != nil {
8451 return it, err
8452 }
8453 it.IDGT = data
8454 case "idGTE":
8455 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGTE"))
8456 data, err := ec.unmarshalOID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, v)
8457 if err != nil {
8458 return it, err
8459 }
8460 it.IDGTE = data
8461 case "idLT":
8462 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLT"))
8463 data, err := ec.unmarshalOID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, v)
8464 if err != nil {
8465 return it, err
8466 }
8467 it.IDLT = data
8468 case "idLTE":
8469 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLTE"))
8470 data, err := ec.unmarshalOID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, v)
8471 if err != nil {
8472 return it, err
8473 }
8474 it.IDLTE = data
8475 case "algorithm":
8476 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("algorithm"))
8477 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
8478 if err != nil {
8479 return it, err
8480 }
8481 it.Algorithm = data
8482 case "algorithmNEQ":
8483 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("algorithmNEQ"))
8484 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
8485 if err != nil {
8486 return it, err
8487 }
8488 it.AlgorithmNEQ = data
8489 case "algorithmIn":
8490 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("algorithmIn"))
8491 data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v)
8492 if err != nil {
8493 return it, err
8494 }
8495 it.AlgorithmIn = data
8496 case "algorithmNotIn":
8497 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("algorithmNotIn"))
8498 data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v)
8499 if err != nil {
8500 return it, err
8501 }
8502 it.AlgorithmNotIn = data
8503 case "algorithmGT":
8504 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("algorithmGT"))
8505 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
8506 if err != nil {
8507 return it, err
8508 }
8509 it.AlgorithmGT = data
8510 case "algorithmGTE":
8511 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("algorithmGTE"))
8512 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
8513 if err != nil {
8514 return it, err
8515 }
8516 it.AlgorithmGTE = data
8517 case "algorithmLT":
8518 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("algorithmLT"))
8519 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
8520 if err != nil {
8521 return it, err
8522 }
8523 it.AlgorithmLT = data
8524 case "algorithmLTE":
8525 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("algorithmLTE"))
8526 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
8527 if err != nil {
8528 return it, err
8529 }
8530 it.AlgorithmLTE = data
8531 case "algorithmContains":
8532 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("algorithmContains"))
8533 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
8534 if err != nil {
8535 return it, err
8536 }
8537 it.AlgorithmContains = data
8538 case "algorithmHasPrefix":
8539 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("algorithmHasPrefix"))
8540 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
8541 if err != nil {
8542 return it, err
8543 }
8544 it.AlgorithmHasPrefix = data
8545 case "algorithmHasSuffix":
8546 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("algorithmHasSuffix"))
8547 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
8548 if err != nil {
8549 return it, err
8550 }
8551 it.AlgorithmHasSuffix = data
8552 case "algorithmEqualFold":
8553 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("algorithmEqualFold"))
8554 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
8555 if err != nil {
8556 return it, err
8557 }
8558 it.AlgorithmEqualFold = data
8559 case "algorithmContainsFold":
8560 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("algorithmContainsFold"))
8561 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
8562 if err != nil {
8563 return it, err
8564 }
8565 it.AlgorithmContainsFold = data
8566 case "value":
8567 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("value"))
8568 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
8569 if err != nil {
8570 return it, err
8571 }
8572 it.Value = data
8573 case "valueNEQ":
8574 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("valueNEQ"))
8575 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
8576 if err != nil {
8577 return it, err
8578 }
8579 it.ValueNEQ = data
8580 case "valueIn":
8581 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("valueIn"))
8582 data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v)
8583 if err != nil {
8584 return it, err
8585 }
8586 it.ValueIn = data
8587 case "valueNotIn":
8588 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("valueNotIn"))
8589 data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v)
8590 if err != nil {
8591 return it, err
8592 }
8593 it.ValueNotIn = data
8594 case "valueGT":
8595 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("valueGT"))
8596 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
8597 if err != nil {
8598 return it, err
8599 }
8600 it.ValueGT = data
8601 case "valueGTE":
8602 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("valueGTE"))
8603 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
8604 if err != nil {
8605 return it, err
8606 }
8607 it.ValueGTE = data
8608 case "valueLT":
8609 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("valueLT"))
8610 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
8611 if err != nil {
8612 return it, err
8613 }
8614 it.ValueLT = data
8615 case "valueLTE":
8616 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("valueLTE"))
8617 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
8618 if err != nil {
8619 return it, err
8620 }
8621 it.ValueLTE = data
8622 case "valueContains":
8623 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("valueContains"))
8624 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
8625 if err != nil {
8626 return it, err
8627 }
8628 it.ValueContains = data
8629 case "valueHasPrefix":
8630 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("valueHasPrefix"))
8631 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
8632 if err != nil {
8633 return it, err
8634 }
8635 it.ValueHasPrefix = data
8636 case "valueHasSuffix":
8637 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("valueHasSuffix"))
8638 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
8639 if err != nil {
8640 return it, err
8641 }
8642 it.ValueHasSuffix = data
8643 case "valueEqualFold":
8644 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("valueEqualFold"))
8645 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
8646 if err != nil {
8647 return it, err
8648 }
8649 it.ValueEqualFold = data
8650 case "valueContainsFold":
8651 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("valueContainsFold"))
8652 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
8653 if err != nil {
8654 return it, err
8655 }
8656 it.ValueContainsFold = data
8657 case "hasSubject":
8658 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasSubject"))
8659 data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v)
8660 if err != nil {
8661 return it, err
8662 }
8663 it.HasSubject = data
8664 case "hasSubjectWith":
8665 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasSubjectWith"))
8666 data, err := ec.unmarshalOSubjectWhereInput2ᚕᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐSubjectWhereInputᚄ(ctx, v)
8667 if err != nil {
8668 return it, err
8669 }
8670 it.HasSubjectWith = data
8671 }
8672 }
8673
8674 return it, nil
8675 }
8676
8677 func (ec *executionContext) unmarshalInputSubjectOrder(ctx context.Context, obj any) (ent.SubjectOrder, error) {
8678 var it ent.SubjectOrder
8679 asMap := map[string]any{}
8680 for k, v := range obj.(map[string]any) {
8681 asMap[k] = v
8682 }
8683
8684 if _, present := asMap["direction"]; !present {
8685 asMap["direction"] = "ASC"
8686 }
8687
8688 fieldsInOrder := [...]string{"direction", "field"}
8689 for _, k := range fieldsInOrder {
8690 v, ok := asMap[k]
8691 if !ok {
8692 continue
8693 }
8694 switch k {
8695 case "direction":
8696 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("direction"))
8697 data, err := ec.unmarshalNOrderDirection2entgoᚗioᚋcontribᚋentgqlᚐOrderDirection(ctx, v)
8698 if err != nil {
8699 return it, err
8700 }
8701 it.Direction = data
8702 case "field":
8703 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("field"))
8704 data, err := ec.unmarshalNSubjectOrderField2ᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐSubjectOrderField(ctx, v)
8705 if err != nil {
8706 return it, err
8707 }
8708 it.Field = data
8709 }
8710 }
8711
8712 return it, nil
8713 }
8714
8715 func (ec *executionContext) unmarshalInputSubjectWhereInput(ctx context.Context, obj any) (ent.SubjectWhereInput, error) {
8716 var it ent.SubjectWhereInput
8717 asMap := map[string]any{}
8718 for k, v := range obj.(map[string]any) {
8719 asMap[k] = v
8720 }
8721
8722 fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "name", "nameNEQ", "nameIn", "nameNotIn", "nameGT", "nameGTE", "nameLT", "nameLTE", "nameContains", "nameHasPrefix", "nameHasSuffix", "nameEqualFold", "nameContainsFold", "hasSubjectDigests", "hasSubjectDigestsWith", "hasStatement", "hasStatementWith"}
8723 for _, k := range fieldsInOrder {
8724 v, ok := asMap[k]
8725 if !ok {
8726 continue
8727 }
8728 switch k {
8729 case "not":
8730 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("not"))
8731 data, err := ec.unmarshalOSubjectWhereInput2ᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐSubjectWhereInput(ctx, v)
8732 if err != nil {
8733 return it, err
8734 }
8735 it.Not = data
8736 case "and":
8737 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and"))
8738 data, err := ec.unmarshalOSubjectWhereInput2ᚕᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐSubjectWhereInputᚄ(ctx, v)
8739 if err != nil {
8740 return it, err
8741 }
8742 it.And = data
8743 case "or":
8744 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or"))
8745 data, err := ec.unmarshalOSubjectWhereInput2ᚕᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐSubjectWhereInputᚄ(ctx, v)
8746 if err != nil {
8747 return it, err
8748 }
8749 it.Or = data
8750 case "id":
8751 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id"))
8752 data, err := ec.unmarshalOID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, v)
8753 if err != nil {
8754 return it, err
8755 }
8756 it.ID = data
8757 case "idNEQ":
8758 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idNEQ"))
8759 data, err := ec.unmarshalOID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, v)
8760 if err != nil {
8761 return it, err
8762 }
8763 it.IDNEQ = data
8764 case "idIn":
8765 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idIn"))
8766 data, err := ec.unmarshalOID2ᚕgithubᚗcomᚋgoogleᚋuuidᚐUUIDᚄ(ctx, v)
8767 if err != nil {
8768 return it, err
8769 }
8770 it.IDIn = data
8771 case "idNotIn":
8772 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idNotIn"))
8773 data, err := ec.unmarshalOID2ᚕgithubᚗcomᚋgoogleᚋuuidᚐUUIDᚄ(ctx, v)
8774 if err != nil {
8775 return it, err
8776 }
8777 it.IDNotIn = data
8778 case "idGT":
8779 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGT"))
8780 data, err := ec.unmarshalOID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, v)
8781 if err != nil {
8782 return it, err
8783 }
8784 it.IDGT = data
8785 case "idGTE":
8786 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGTE"))
8787 data, err := ec.unmarshalOID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, v)
8788 if err != nil {
8789 return it, err
8790 }
8791 it.IDGTE = data
8792 case "idLT":
8793 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLT"))
8794 data, err := ec.unmarshalOID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, v)
8795 if err != nil {
8796 return it, err
8797 }
8798 it.IDLT = data
8799 case "idLTE":
8800 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLTE"))
8801 data, err := ec.unmarshalOID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, v)
8802 if err != nil {
8803 return it, err
8804 }
8805 it.IDLTE = data
8806 case "createdAt":
8807 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAt"))
8808 data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v)
8809 if err != nil {
8810 return it, err
8811 }
8812 it.CreatedAt = data
8813 case "createdAtNEQ":
8814 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNEQ"))
8815 data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v)
8816 if err != nil {
8817 return it, err
8818 }
8819 it.CreatedAtNEQ = data
8820 case "createdAtIn":
8821 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtIn"))
8822 data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v)
8823 if err != nil {
8824 return it, err
8825 }
8826 it.CreatedAtIn = data
8827 case "createdAtNotIn":
8828 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNotIn"))
8829 data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v)
8830 if err != nil {
8831 return it, err
8832 }
8833 it.CreatedAtNotIn = data
8834 case "createdAtGT":
8835 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtGT"))
8836 data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v)
8837 if err != nil {
8838 return it, err
8839 }
8840 it.CreatedAtGT = data
8841 case "createdAtGTE":
8842 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtGTE"))
8843 data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v)
8844 if err != nil {
8845 return it, err
8846 }
8847 it.CreatedAtGTE = data
8848 case "createdAtLT":
8849 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtLT"))
8850 data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v)
8851 if err != nil {
8852 return it, err
8853 }
8854 it.CreatedAtLT = data
8855 case "createdAtLTE":
8856 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtLTE"))
8857 data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v)
8858 if err != nil {
8859 return it, err
8860 }
8861 it.CreatedAtLTE = data
8862 case "createdAtIsNil":
8863 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtIsNil"))
8864 data, err := ec.unmarshalOBoolean2bool(ctx, v)
8865 if err != nil {
8866 return it, err
8867 }
8868 it.CreatedAtIsNil = data
8869 case "createdAtNotNil":
8870 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNotNil"))
8871 data, err := ec.unmarshalOBoolean2bool(ctx, v)
8872 if err != nil {
8873 return it, err
8874 }
8875 it.CreatedAtNotNil = data
8876 case "name":
8877 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name"))
8878 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
8879 if err != nil {
8880 return it, err
8881 }
8882 it.Name = data
8883 case "nameNEQ":
8884 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameNEQ"))
8885 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
8886 if err != nil {
8887 return it, err
8888 }
8889 it.NameNEQ = data
8890 case "nameIn":
8891 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameIn"))
8892 data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v)
8893 if err != nil {
8894 return it, err
8895 }
8896 it.NameIn = data
8897 case "nameNotIn":
8898 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameNotIn"))
8899 data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v)
8900 if err != nil {
8901 return it, err
8902 }
8903 it.NameNotIn = data
8904 case "nameGT":
8905 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameGT"))
8906 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
8907 if err != nil {
8908 return it, err
8909 }
8910 it.NameGT = data
8911 case "nameGTE":
8912 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameGTE"))
8913 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
8914 if err != nil {
8915 return it, err
8916 }
8917 it.NameGTE = data
8918 case "nameLT":
8919 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameLT"))
8920 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
8921 if err != nil {
8922 return it, err
8923 }
8924 it.NameLT = data
8925 case "nameLTE":
8926 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameLTE"))
8927 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
8928 if err != nil {
8929 return it, err
8930 }
8931 it.NameLTE = data
8932 case "nameContains":
8933 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameContains"))
8934 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
8935 if err != nil {
8936 return it, err
8937 }
8938 it.NameContains = data
8939 case "nameHasPrefix":
8940 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameHasPrefix"))
8941 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
8942 if err != nil {
8943 return it, err
8944 }
8945 it.NameHasPrefix = data
8946 case "nameHasSuffix":
8947 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameHasSuffix"))
8948 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
8949 if err != nil {
8950 return it, err
8951 }
8952 it.NameHasSuffix = data
8953 case "nameEqualFold":
8954 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameEqualFold"))
8955 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
8956 if err != nil {
8957 return it, err
8958 }
8959 it.NameEqualFold = data
8960 case "nameContainsFold":
8961 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameContainsFold"))
8962 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
8963 if err != nil {
8964 return it, err
8965 }
8966 it.NameContainsFold = data
8967 case "hasSubjectDigests":
8968 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasSubjectDigests"))
8969 data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v)
8970 if err != nil {
8971 return it, err
8972 }
8973 it.HasSubjectDigests = data
8974 case "hasSubjectDigestsWith":
8975 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasSubjectDigestsWith"))
8976 data, err := ec.unmarshalOSubjectDigestWhereInput2ᚕᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐSubjectDigestWhereInputᚄ(ctx, v)
8977 if err != nil {
8978 return it, err
8979 }
8980 it.HasSubjectDigestsWith = data
8981 case "hasStatement":
8982 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasStatement"))
8983 data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v)
8984 if err != nil {
8985 return it, err
8986 }
8987 it.HasStatement = data
8988 case "hasStatementWith":
8989 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasStatementWith"))
8990 data, err := ec.unmarshalOStatementWhereInput2ᚕᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐStatementWhereInputᚄ(ctx, v)
8991 if err != nil {
8992 return it, err
8993 }
8994 it.HasStatementWith = data
8995 }
8996 }
8997
8998 return it, nil
8999 }
9000
9001 func (ec *executionContext) unmarshalInputTimestampWhereInput(ctx context.Context, obj any) (ent.TimestampWhereInput, error) {
9002 var it ent.TimestampWhereInput
9003 asMap := map[string]any{}
9004 for k, v := range obj.(map[string]any) {
9005 asMap[k] = v
9006 }
9007
9008 fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "type", "typeNEQ", "typeIn", "typeNotIn", "typeGT", "typeGTE", "typeLT", "typeLTE", "typeContains", "typeHasPrefix", "typeHasSuffix", "typeEqualFold", "typeContainsFold", "timestamp", "timestampNEQ", "timestampIn", "timestampNotIn", "timestampGT", "timestampGTE", "timestampLT", "timestampLTE", "hasSignature", "hasSignatureWith"}
9009 for _, k := range fieldsInOrder {
9010 v, ok := asMap[k]
9011 if !ok {
9012 continue
9013 }
9014 switch k {
9015 case "not":
9016 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("not"))
9017 data, err := ec.unmarshalOTimestampWhereInput2ᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐTimestampWhereInput(ctx, v)
9018 if err != nil {
9019 return it, err
9020 }
9021 it.Not = data
9022 case "and":
9023 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and"))
9024 data, err := ec.unmarshalOTimestampWhereInput2ᚕᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐTimestampWhereInputᚄ(ctx, v)
9025 if err != nil {
9026 return it, err
9027 }
9028 it.And = data
9029 case "or":
9030 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or"))
9031 data, err := ec.unmarshalOTimestampWhereInput2ᚕᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐTimestampWhereInputᚄ(ctx, v)
9032 if err != nil {
9033 return it, err
9034 }
9035 it.Or = data
9036 case "id":
9037 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id"))
9038 data, err := ec.unmarshalOID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, v)
9039 if err != nil {
9040 return it, err
9041 }
9042 it.ID = data
9043 case "idNEQ":
9044 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idNEQ"))
9045 data, err := ec.unmarshalOID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, v)
9046 if err != nil {
9047 return it, err
9048 }
9049 it.IDNEQ = data
9050 case "idIn":
9051 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idIn"))
9052 data, err := ec.unmarshalOID2ᚕgithubᚗcomᚋgoogleᚋuuidᚐUUIDᚄ(ctx, v)
9053 if err != nil {
9054 return it, err
9055 }
9056 it.IDIn = data
9057 case "idNotIn":
9058 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idNotIn"))
9059 data, err := ec.unmarshalOID2ᚕgithubᚗcomᚋgoogleᚋuuidᚐUUIDᚄ(ctx, v)
9060 if err != nil {
9061 return it, err
9062 }
9063 it.IDNotIn = data
9064 case "idGT":
9065 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGT"))
9066 data, err := ec.unmarshalOID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, v)
9067 if err != nil {
9068 return it, err
9069 }
9070 it.IDGT = data
9071 case "idGTE":
9072 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGTE"))
9073 data, err := ec.unmarshalOID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, v)
9074 if err != nil {
9075 return it, err
9076 }
9077 it.IDGTE = data
9078 case "idLT":
9079 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLT"))
9080 data, err := ec.unmarshalOID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, v)
9081 if err != nil {
9082 return it, err
9083 }
9084 it.IDLT = data
9085 case "idLTE":
9086 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLTE"))
9087 data, err := ec.unmarshalOID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, v)
9088 if err != nil {
9089 return it, err
9090 }
9091 it.IDLTE = data
9092 case "type":
9093 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("type"))
9094 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
9095 if err != nil {
9096 return it, err
9097 }
9098 it.Type = data
9099 case "typeNEQ":
9100 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("typeNEQ"))
9101 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
9102 if err != nil {
9103 return it, err
9104 }
9105 it.TypeNEQ = data
9106 case "typeIn":
9107 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("typeIn"))
9108 data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v)
9109 if err != nil {
9110 return it, err
9111 }
9112 it.TypeIn = data
9113 case "typeNotIn":
9114 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("typeNotIn"))
9115 data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v)
9116 if err != nil {
9117 return it, err
9118 }
9119 it.TypeNotIn = data
9120 case "typeGT":
9121 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("typeGT"))
9122 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
9123 if err != nil {
9124 return it, err
9125 }
9126 it.TypeGT = data
9127 case "typeGTE":
9128 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("typeGTE"))
9129 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
9130 if err != nil {
9131 return it, err
9132 }
9133 it.TypeGTE = data
9134 case "typeLT":
9135 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("typeLT"))
9136 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
9137 if err != nil {
9138 return it, err
9139 }
9140 it.TypeLT = data
9141 case "typeLTE":
9142 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("typeLTE"))
9143 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
9144 if err != nil {
9145 return it, err
9146 }
9147 it.TypeLTE = data
9148 case "typeContains":
9149 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("typeContains"))
9150 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
9151 if err != nil {
9152 return it, err
9153 }
9154 it.TypeContains = data
9155 case "typeHasPrefix":
9156 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("typeHasPrefix"))
9157 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
9158 if err != nil {
9159 return it, err
9160 }
9161 it.TypeHasPrefix = data
9162 case "typeHasSuffix":
9163 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("typeHasSuffix"))
9164 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
9165 if err != nil {
9166 return it, err
9167 }
9168 it.TypeHasSuffix = data
9169 case "typeEqualFold":
9170 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("typeEqualFold"))
9171 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
9172 if err != nil {
9173 return it, err
9174 }
9175 it.TypeEqualFold = data
9176 case "typeContainsFold":
9177 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("typeContainsFold"))
9178 data, err := ec.unmarshalOString2ᚖstring(ctx, v)
9179 if err != nil {
9180 return it, err
9181 }
9182 it.TypeContainsFold = data
9183 case "timestamp":
9184 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("timestamp"))
9185 data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v)
9186 if err != nil {
9187 return it, err
9188 }
9189 it.Timestamp = data
9190 case "timestampNEQ":
9191 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("timestampNEQ"))
9192 data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v)
9193 if err != nil {
9194 return it, err
9195 }
9196 it.TimestampNEQ = data
9197 case "timestampIn":
9198 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("timestampIn"))
9199 data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v)
9200 if err != nil {
9201 return it, err
9202 }
9203 it.TimestampIn = data
9204 case "timestampNotIn":
9205 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("timestampNotIn"))
9206 data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v)
9207 if err != nil {
9208 return it, err
9209 }
9210 it.TimestampNotIn = data
9211 case "timestampGT":
9212 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("timestampGT"))
9213 data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v)
9214 if err != nil {
9215 return it, err
9216 }
9217 it.TimestampGT = data
9218 case "timestampGTE":
9219 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("timestampGTE"))
9220 data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v)
9221 if err != nil {
9222 return it, err
9223 }
9224 it.TimestampGTE = data
9225 case "timestampLT":
9226 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("timestampLT"))
9227 data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v)
9228 if err != nil {
9229 return it, err
9230 }
9231 it.TimestampLT = data
9232 case "timestampLTE":
9233 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("timestampLTE"))
9234 data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v)
9235 if err != nil {
9236 return it, err
9237 }
9238 it.TimestampLTE = data
9239 case "hasSignature":
9240 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasSignature"))
9241 data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v)
9242 if err != nil {
9243 return it, err
9244 }
9245 it.HasSignature = data
9246 case "hasSignatureWith":
9247 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasSignatureWith"))
9248 data, err := ec.unmarshalOSignatureWhereInput2ᚕᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐSignatureWhereInputᚄ(ctx, v)
9249 if err != nil {
9250 return it, err
9251 }
9252 it.HasSignatureWith = data
9253 }
9254 }
9255
9256 return it, nil
9257 }
9258
9259 // endregion **************************** input.gotpl *****************************
9260
9261 // region ************************** interface.gotpl ***************************
9262
9263 func (ec *executionContext) _Node(ctx context.Context, sel ast.SelectionSet, obj ent.Noder) graphql.Marshaler {
9264 switch obj := (obj).(type) {
9265 case nil:
9266 return graphql.Null
9267 case *ent.Timestamp:
9268 if obj == nil {
9269 return graphql.Null
9270 }
9271 return ec._Timestamp(ctx, sel, obj)
9272 case *ent.SubjectDigest:
9273 if obj == nil {
9274 return graphql.Null
9275 }
9276 return ec._SubjectDigest(ctx, sel, obj)
9277 case *ent.Subject:
9278 if obj == nil {
9279 return graphql.Null
9280 }
9281 return ec._Subject(ctx, sel, obj)
9282 case *ent.Statement:
9283 if obj == nil {
9284 return graphql.Null
9285 }
9286 return ec._Statement(ctx, sel, obj)
9287 case *ent.Signature:
9288 if obj == nil {
9289 return graphql.Null
9290 }
9291 return ec._Signature(ctx, sel, obj)
9292 case *ent.PayloadDigest:
9293 if obj == nil {
9294 return graphql.Null
9295 }
9296 return ec._PayloadDigest(ctx, sel, obj)
9297 case *ent.Dsse:
9298 if obj == nil {
9299 return graphql.Null
9300 }
9301 return ec._Dsse(ctx, sel, obj)
9302 case *ent.AttestationPolicy:
9303 if obj == nil {
9304 return graphql.Null
9305 }
9306 return ec._AttestationPolicy(ctx, sel, obj)
9307 case *ent.AttestationCollection:
9308 if obj == nil {
9309 return graphql.Null
9310 }
9311 return ec._AttestationCollection(ctx, sel, obj)
9312 case *ent.Attestation:
9313 if obj == nil {
9314 return graphql.Null
9315 }
9316 return ec._Attestation(ctx, sel, obj)
9317 default:
9318 panic(fmt.Errorf("unexpected type %T", obj))
9319 }
9320 }
9321
9322 // endregion ************************** interface.gotpl ***************************
9323
9324 // region **************************** object.gotpl ****************************
9325
9326 var attestationImplementors = []string{"Attestation", "Node"}
9327
9328 func (ec *executionContext) _Attestation(ctx context.Context, sel ast.SelectionSet, obj *ent.Attestation) graphql.Marshaler {
9329 fields := graphql.CollectFields(ec.OperationContext, sel, attestationImplementors)
9330
9331 out := graphql.NewFieldSet(fields)
9332 deferred := make(map[string]*graphql.FieldSet)
9333 for i, field := range fields {
9334 switch field.Name {
9335 case "__typename":
9336 out.Values[i] = graphql.MarshalString("Attestation")
9337 case "id":
9338 out.Values[i] = ec._Attestation_id(ctx, field, obj)
9339 if out.Values[i] == graphql.Null {
9340 atomic.AddUint32(&out.Invalids, 1)
9341 }
9342 case "type":
9343 out.Values[i] = ec._Attestation_type(ctx, field, obj)
9344 if out.Values[i] == graphql.Null {
9345 atomic.AddUint32(&out.Invalids, 1)
9346 }
9347 case "attestationCollection":
9348 field := field
9349
9350 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
9351 defer func() {
9352 if r := recover(); r != nil {
9353 ec.Error(ctx, ec.Recover(ctx, r))
9354 }
9355 }()
9356 res = ec._Attestation_attestationCollection(ctx, field, obj)
9357 if res == graphql.Null {
9358 atomic.AddUint32(&fs.Invalids, 1)
9359 }
9360 return res
9361 }
9362
9363 if field.Deferrable != nil {
9364 dfs, ok := deferred[field.Deferrable.Label]
9365 di := 0
9366 if ok {
9367 dfs.AddField(field)
9368 di = len(dfs.Values) - 1
9369 } else {
9370 dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
9371 deferred[field.Deferrable.Label] = dfs
9372 }
9373 dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
9374 return innerFunc(ctx, dfs)
9375 })
9376
9377 // don't run the out.Concurrently() call below
9378 out.Values[i] = graphql.Null
9379 continue
9380 }
9381
9382 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
9383 default:
9384 panic("unknown field " + strconv.Quote(field.Name))
9385 }
9386 }
9387 out.Dispatch(ctx)
9388 if out.Invalids > 0 {
9389 return graphql.Null
9390 }
9391
9392 atomic.AddInt32(&ec.deferred, int32(len(deferred)))
9393
9394 for label, dfs := range deferred {
9395 ec.processDeferredGroup(graphql.DeferredGroup{
9396 Label: label,
9397 Path: graphql.GetPath(ctx),
9398 FieldSet: dfs,
9399 Context: ctx,
9400 })
9401 }
9402
9403 return out
9404 }
9405
9406 var attestationCollectionImplementors = []string{"AttestationCollection", "Node"}
9407
9408 func (ec *executionContext) _AttestationCollection(ctx context.Context, sel ast.SelectionSet, obj *ent.AttestationCollection) graphql.Marshaler {
9409 fields := graphql.CollectFields(ec.OperationContext, sel, attestationCollectionImplementors)
9410
9411 out := graphql.NewFieldSet(fields)
9412 deferred := make(map[string]*graphql.FieldSet)
9413 for i, field := range fields {
9414 switch field.Name {
9415 case "__typename":
9416 out.Values[i] = graphql.MarshalString("AttestationCollection")
9417 case "id":
9418 out.Values[i] = ec._AttestationCollection_id(ctx, field, obj)
9419 if out.Values[i] == graphql.Null {
9420 atomic.AddUint32(&out.Invalids, 1)
9421 }
9422 case "name":
9423 out.Values[i] = ec._AttestationCollection_name(ctx, field, obj)
9424 if out.Values[i] == graphql.Null {
9425 atomic.AddUint32(&out.Invalids, 1)
9426 }
9427 case "attestations":
9428 field := field
9429
9430 innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) {
9431 defer func() {
9432 if r := recover(); r != nil {
9433 ec.Error(ctx, ec.Recover(ctx, r))
9434 }
9435 }()
9436 res = ec._AttestationCollection_attestations(ctx, field, obj)
9437 return res
9438 }
9439
9440 if field.Deferrable != nil {
9441 dfs, ok := deferred[field.Deferrable.Label]
9442 di := 0
9443 if ok {
9444 dfs.AddField(field)
9445 di = len(dfs.Values) - 1
9446 } else {
9447 dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
9448 deferred[field.Deferrable.Label] = dfs
9449 }
9450 dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
9451 return innerFunc(ctx, dfs)
9452 })
9453
9454 // don't run the out.Concurrently() call below
9455 out.Values[i] = graphql.Null
9456 continue
9457 }
9458
9459 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
9460 case "statement":
9461 field := field
9462
9463 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
9464 defer func() {
9465 if r := recover(); r != nil {
9466 ec.Error(ctx, ec.Recover(ctx, r))
9467 }
9468 }()
9469 res = ec._AttestationCollection_statement(ctx, field, obj)
9470 if res == graphql.Null {
9471 atomic.AddUint32(&fs.Invalids, 1)
9472 }
9473 return res
9474 }
9475
9476 if field.Deferrable != nil {
9477 dfs, ok := deferred[field.Deferrable.Label]
9478 di := 0
9479 if ok {
9480 dfs.AddField(field)
9481 di = len(dfs.Values) - 1
9482 } else {
9483 dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
9484 deferred[field.Deferrable.Label] = dfs
9485 }
9486 dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
9487 return innerFunc(ctx, dfs)
9488 })
9489
9490 // don't run the out.Concurrently() call below
9491 out.Values[i] = graphql.Null
9492 continue
9493 }
9494
9495 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
9496 default:
9497 panic("unknown field " + strconv.Quote(field.Name))
9498 }
9499 }
9500 out.Dispatch(ctx)
9501 if out.Invalids > 0 {
9502 return graphql.Null
9503 }
9504
9505 atomic.AddInt32(&ec.deferred, int32(len(deferred)))
9506
9507 for label, dfs := range deferred {
9508 ec.processDeferredGroup(graphql.DeferredGroup{
9509 Label: label,
9510 Path: graphql.GetPath(ctx),
9511 FieldSet: dfs,
9512 Context: ctx,
9513 })
9514 }
9515
9516 return out
9517 }
9518
9519 var attestationPolicyImplementors = []string{"AttestationPolicy", "Node"}
9520
9521 func (ec *executionContext) _AttestationPolicy(ctx context.Context, sel ast.SelectionSet, obj *ent.AttestationPolicy) graphql.Marshaler {
9522 fields := graphql.CollectFields(ec.OperationContext, sel, attestationPolicyImplementors)
9523
9524 out := graphql.NewFieldSet(fields)
9525 deferred := make(map[string]*graphql.FieldSet)
9526 for i, field := range fields {
9527 switch field.Name {
9528 case "__typename":
9529 out.Values[i] = graphql.MarshalString("AttestationPolicy")
9530 case "id":
9531 out.Values[i] = ec._AttestationPolicy_id(ctx, field, obj)
9532 if out.Values[i] == graphql.Null {
9533 atomic.AddUint32(&out.Invalids, 1)
9534 }
9535 case "name":
9536 out.Values[i] = ec._AttestationPolicy_name(ctx, field, obj)
9537 if out.Values[i] == graphql.Null {
9538 atomic.AddUint32(&out.Invalids, 1)
9539 }
9540 case "statement":
9541 field := field
9542
9543 innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) {
9544 defer func() {
9545 if r := recover(); r != nil {
9546 ec.Error(ctx, ec.Recover(ctx, r))
9547 }
9548 }()
9549 res = ec._AttestationPolicy_statement(ctx, field, obj)
9550 return res
9551 }
9552
9553 if field.Deferrable != nil {
9554 dfs, ok := deferred[field.Deferrable.Label]
9555 di := 0
9556 if ok {
9557 dfs.AddField(field)
9558 di = len(dfs.Values) - 1
9559 } else {
9560 dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
9561 deferred[field.Deferrable.Label] = dfs
9562 }
9563 dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
9564 return innerFunc(ctx, dfs)
9565 })
9566
9567 // don't run the out.Concurrently() call below
9568 out.Values[i] = graphql.Null
9569 continue
9570 }
9571
9572 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
9573 default:
9574 panic("unknown field " + strconv.Quote(field.Name))
9575 }
9576 }
9577 out.Dispatch(ctx)
9578 if out.Invalids > 0 {
9579 return graphql.Null
9580 }
9581
9582 atomic.AddInt32(&ec.deferred, int32(len(deferred)))
9583
9584 for label, dfs := range deferred {
9585 ec.processDeferredGroup(graphql.DeferredGroup{
9586 Label: label,
9587 Path: graphql.GetPath(ctx),
9588 FieldSet: dfs,
9589 Context: ctx,
9590 })
9591 }
9592
9593 return out
9594 }
9595
9596 var attestationPolicyConnectionImplementors = []string{"AttestationPolicyConnection"}
9597
9598 func (ec *executionContext) _AttestationPolicyConnection(ctx context.Context, sel ast.SelectionSet, obj *ent.AttestationPolicyConnection) graphql.Marshaler {
9599 fields := graphql.CollectFields(ec.OperationContext, sel, attestationPolicyConnectionImplementors)
9600
9601 out := graphql.NewFieldSet(fields)
9602 deferred := make(map[string]*graphql.FieldSet)
9603 for i, field := range fields {
9604 switch field.Name {
9605 case "__typename":
9606 out.Values[i] = graphql.MarshalString("AttestationPolicyConnection")
9607 case "edges":
9608 out.Values[i] = ec._AttestationPolicyConnection_edges(ctx, field, obj)
9609 case "pageInfo":
9610 out.Values[i] = ec._AttestationPolicyConnection_pageInfo(ctx, field, obj)
9611 if out.Values[i] == graphql.Null {
9612 out.Invalids++
9613 }
9614 case "totalCount":
9615 out.Values[i] = ec._AttestationPolicyConnection_totalCount(ctx, field, obj)
9616 if out.Values[i] == graphql.Null {
9617 out.Invalids++
9618 }
9619 default:
9620 panic("unknown field " + strconv.Quote(field.Name))
9621 }
9622 }
9623 out.Dispatch(ctx)
9624 if out.Invalids > 0 {
9625 return graphql.Null
9626 }
9627
9628 atomic.AddInt32(&ec.deferred, int32(len(deferred)))
9629
9630 for label, dfs := range deferred {
9631 ec.processDeferredGroup(graphql.DeferredGroup{
9632 Label: label,
9633 Path: graphql.GetPath(ctx),
9634 FieldSet: dfs,
9635 Context: ctx,
9636 })
9637 }
9638
9639 return out
9640 }
9641
9642 var attestationPolicyEdgeImplementors = []string{"AttestationPolicyEdge"}
9643
9644 func (ec *executionContext) _AttestationPolicyEdge(ctx context.Context, sel ast.SelectionSet, obj *ent.AttestationPolicyEdge) graphql.Marshaler {
9645 fields := graphql.CollectFields(ec.OperationContext, sel, attestationPolicyEdgeImplementors)
9646
9647 out := graphql.NewFieldSet(fields)
9648 deferred := make(map[string]*graphql.FieldSet)
9649 for i, field := range fields {
9650 switch field.Name {
9651 case "__typename":
9652 out.Values[i] = graphql.MarshalString("AttestationPolicyEdge")
9653 case "node":
9654 out.Values[i] = ec._AttestationPolicyEdge_node(ctx, field, obj)
9655 case "cursor":
9656 out.Values[i] = ec._AttestationPolicyEdge_cursor(ctx, field, obj)
9657 if out.Values[i] == graphql.Null {
9658 out.Invalids++
9659 }
9660 default:
9661 panic("unknown field " + strconv.Quote(field.Name))
9662 }
9663 }
9664 out.Dispatch(ctx)
9665 if out.Invalids > 0 {
9666 return graphql.Null
9667 }
9668
9669 atomic.AddInt32(&ec.deferred, int32(len(deferred)))
9670
9671 for label, dfs := range deferred {
9672 ec.processDeferredGroup(graphql.DeferredGroup{
9673 Label: label,
9674 Path: graphql.GetPath(ctx),
9675 FieldSet: dfs,
9676 Context: ctx,
9677 })
9678 }
9679
9680 return out
9681 }
9682
9683 var dsseImplementors = []string{"Dsse", "Node"}
9684
9685 func (ec *executionContext) _Dsse(ctx context.Context, sel ast.SelectionSet, obj *ent.Dsse) graphql.Marshaler {
9686 fields := graphql.CollectFields(ec.OperationContext, sel, dsseImplementors)
9687
9688 out := graphql.NewFieldSet(fields)
9689 deferred := make(map[string]*graphql.FieldSet)
9690 for i, field := range fields {
9691 switch field.Name {
9692 case "__typename":
9693 out.Values[i] = graphql.MarshalString("Dsse")
9694 case "id":
9695 out.Values[i] = ec._Dsse_id(ctx, field, obj)
9696 if out.Values[i] == graphql.Null {
9697 atomic.AddUint32(&out.Invalids, 1)
9698 }
9699 case "createdAt":
9700 out.Values[i] = ec._Dsse_createdAt(ctx, field, obj)
9701 case "gitoidSha256":
9702 out.Values[i] = ec._Dsse_gitoidSha256(ctx, field, obj)
9703 if out.Values[i] == graphql.Null {
9704 atomic.AddUint32(&out.Invalids, 1)
9705 }
9706 case "payloadType":
9707 out.Values[i] = ec._Dsse_payloadType(ctx, field, obj)
9708 if out.Values[i] == graphql.Null {
9709 atomic.AddUint32(&out.Invalids, 1)
9710 }
9711 case "statement":
9712 field := field
9713
9714 innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) {
9715 defer func() {
9716 if r := recover(); r != nil {
9717 ec.Error(ctx, ec.Recover(ctx, r))
9718 }
9719 }()
9720 res = ec._Dsse_statement(ctx, field, obj)
9721 return res
9722 }
9723
9724 if field.Deferrable != nil {
9725 dfs, ok := deferred[field.Deferrable.Label]
9726 di := 0
9727 if ok {
9728 dfs.AddField(field)
9729 di = len(dfs.Values) - 1
9730 } else {
9731 dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
9732 deferred[field.Deferrable.Label] = dfs
9733 }
9734 dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
9735 return innerFunc(ctx, dfs)
9736 })
9737
9738 // don't run the out.Concurrently() call below
9739 out.Values[i] = graphql.Null
9740 continue
9741 }
9742
9743 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
9744 case "signatures":
9745 field := field
9746
9747 innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) {
9748 defer func() {
9749 if r := recover(); r != nil {
9750 ec.Error(ctx, ec.Recover(ctx, r))
9751 }
9752 }()
9753 res = ec._Dsse_signatures(ctx, field, obj)
9754 return res
9755 }
9756
9757 if field.Deferrable != nil {
9758 dfs, ok := deferred[field.Deferrable.Label]
9759 di := 0
9760 if ok {
9761 dfs.AddField(field)
9762 di = len(dfs.Values) - 1
9763 } else {
9764 dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
9765 deferred[field.Deferrable.Label] = dfs
9766 }
9767 dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
9768 return innerFunc(ctx, dfs)
9769 })
9770
9771 // don't run the out.Concurrently() call below
9772 out.Values[i] = graphql.Null
9773 continue
9774 }
9775
9776 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
9777 case "payloadDigests":
9778 field := field
9779
9780 innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) {
9781 defer func() {
9782 if r := recover(); r != nil {
9783 ec.Error(ctx, ec.Recover(ctx, r))
9784 }
9785 }()
9786 res = ec._Dsse_payloadDigests(ctx, field, obj)
9787 return res
9788 }
9789
9790 if field.Deferrable != nil {
9791 dfs, ok := deferred[field.Deferrable.Label]
9792 di := 0
9793 if ok {
9794 dfs.AddField(field)
9795 di = len(dfs.Values) - 1
9796 } else {
9797 dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
9798 deferred[field.Deferrable.Label] = dfs
9799 }
9800 dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
9801 return innerFunc(ctx, dfs)
9802 })
9803
9804 // don't run the out.Concurrently() call below
9805 out.Values[i] = graphql.Null
9806 continue
9807 }
9808
9809 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
9810 default:
9811 panic("unknown field " + strconv.Quote(field.Name))
9812 }
9813 }
9814 out.Dispatch(ctx)
9815 if out.Invalids > 0 {
9816 return graphql.Null
9817 }
9818
9819 atomic.AddInt32(&ec.deferred, int32(len(deferred)))
9820
9821 for label, dfs := range deferred {
9822 ec.processDeferredGroup(graphql.DeferredGroup{
9823 Label: label,
9824 Path: graphql.GetPath(ctx),
9825 FieldSet: dfs,
9826 Context: ctx,
9827 })
9828 }
9829
9830 return out
9831 }
9832
9833 var dsseConnectionImplementors = []string{"DsseConnection"}
9834
9835 func (ec *executionContext) _DsseConnection(ctx context.Context, sel ast.SelectionSet, obj *ent.DsseConnection) graphql.Marshaler {
9836 fields := graphql.CollectFields(ec.OperationContext, sel, dsseConnectionImplementors)
9837
9838 out := graphql.NewFieldSet(fields)
9839 deferred := make(map[string]*graphql.FieldSet)
9840 for i, field := range fields {
9841 switch field.Name {
9842 case "__typename":
9843 out.Values[i] = graphql.MarshalString("DsseConnection")
9844 case "edges":
9845 out.Values[i] = ec._DsseConnection_edges(ctx, field, obj)
9846 case "pageInfo":
9847 out.Values[i] = ec._DsseConnection_pageInfo(ctx, field, obj)
9848 if out.Values[i] == graphql.Null {
9849 out.Invalids++
9850 }
9851 case "totalCount":
9852 out.Values[i] = ec._DsseConnection_totalCount(ctx, field, obj)
9853 if out.Values[i] == graphql.Null {
9854 out.Invalids++
9855 }
9856 default:
9857 panic("unknown field " + strconv.Quote(field.Name))
9858 }
9859 }
9860 out.Dispatch(ctx)
9861 if out.Invalids > 0 {
9862 return graphql.Null
9863 }
9864
9865 atomic.AddInt32(&ec.deferred, int32(len(deferred)))
9866
9867 for label, dfs := range deferred {
9868 ec.processDeferredGroup(graphql.DeferredGroup{
9869 Label: label,
9870 Path: graphql.GetPath(ctx),
9871 FieldSet: dfs,
9872 Context: ctx,
9873 })
9874 }
9875
9876 return out
9877 }
9878
9879 var dsseEdgeImplementors = []string{"DsseEdge"}
9880
9881 func (ec *executionContext) _DsseEdge(ctx context.Context, sel ast.SelectionSet, obj *ent.DsseEdge) graphql.Marshaler {
9882 fields := graphql.CollectFields(ec.OperationContext, sel, dsseEdgeImplementors)
9883
9884 out := graphql.NewFieldSet(fields)
9885 deferred := make(map[string]*graphql.FieldSet)
9886 for i, field := range fields {
9887 switch field.Name {
9888 case "__typename":
9889 out.Values[i] = graphql.MarshalString("DsseEdge")
9890 case "node":
9891 out.Values[i] = ec._DsseEdge_node(ctx, field, obj)
9892 case "cursor":
9893 out.Values[i] = ec._DsseEdge_cursor(ctx, field, obj)
9894 if out.Values[i] == graphql.Null {
9895 out.Invalids++
9896 }
9897 default:
9898 panic("unknown field " + strconv.Quote(field.Name))
9899 }
9900 }
9901 out.Dispatch(ctx)
9902 if out.Invalids > 0 {
9903 return graphql.Null
9904 }
9905
9906 atomic.AddInt32(&ec.deferred, int32(len(deferred)))
9907
9908 for label, dfs := range deferred {
9909 ec.processDeferredGroup(graphql.DeferredGroup{
9910 Label: label,
9911 Path: graphql.GetPath(ctx),
9912 FieldSet: dfs,
9913 Context: ctx,
9914 })
9915 }
9916
9917 return out
9918 }
9919
9920 var pageInfoImplementors = []string{"PageInfo"}
9921
9922 func (ec *executionContext) _PageInfo(ctx context.Context, sel ast.SelectionSet, obj *entgql.PageInfo[uuid.UUID]) graphql.Marshaler {
9923 fields := graphql.CollectFields(ec.OperationContext, sel, pageInfoImplementors)
9924
9925 out := graphql.NewFieldSet(fields)
9926 deferred := make(map[string]*graphql.FieldSet)
9927 for i, field := range fields {
9928 switch field.Name {
9929 case "__typename":
9930 out.Values[i] = graphql.MarshalString("PageInfo")
9931 case "hasNextPage":
9932 out.Values[i] = ec._PageInfo_hasNextPage(ctx, field, obj)
9933 if out.Values[i] == graphql.Null {
9934 out.Invalids++
9935 }
9936 case "hasPreviousPage":
9937 out.Values[i] = ec._PageInfo_hasPreviousPage(ctx, field, obj)
9938 if out.Values[i] == graphql.Null {
9939 out.Invalids++
9940 }
9941 case "startCursor":
9942 out.Values[i] = ec._PageInfo_startCursor(ctx, field, obj)
9943 case "endCursor":
9944 out.Values[i] = ec._PageInfo_endCursor(ctx, field, obj)
9945 default:
9946 panic("unknown field " + strconv.Quote(field.Name))
9947 }
9948 }
9949 out.Dispatch(ctx)
9950 if out.Invalids > 0 {
9951 return graphql.Null
9952 }
9953
9954 atomic.AddInt32(&ec.deferred, int32(len(deferred)))
9955
9956 for label, dfs := range deferred {
9957 ec.processDeferredGroup(graphql.DeferredGroup{
9958 Label: label,
9959 Path: graphql.GetPath(ctx),
9960 FieldSet: dfs,
9961 Context: ctx,
9962 })
9963 }
9964
9965 return out
9966 }
9967
9968 var payloadDigestImplementors = []string{"PayloadDigest", "Node"}
9969
9970 func (ec *executionContext) _PayloadDigest(ctx context.Context, sel ast.SelectionSet, obj *ent.PayloadDigest) graphql.Marshaler {
9971 fields := graphql.CollectFields(ec.OperationContext, sel, payloadDigestImplementors)
9972
9973 out := graphql.NewFieldSet(fields)
9974 deferred := make(map[string]*graphql.FieldSet)
9975 for i, field := range fields {
9976 switch field.Name {
9977 case "__typename":
9978 out.Values[i] = graphql.MarshalString("PayloadDigest")
9979 case "id":
9980 out.Values[i] = ec._PayloadDigest_id(ctx, field, obj)
9981 if out.Values[i] == graphql.Null {
9982 atomic.AddUint32(&out.Invalids, 1)
9983 }
9984 case "algorithm":
9985 out.Values[i] = ec._PayloadDigest_algorithm(ctx, field, obj)
9986 if out.Values[i] == graphql.Null {
9987 atomic.AddUint32(&out.Invalids, 1)
9988 }
9989 case "value":
9990 out.Values[i] = ec._PayloadDigest_value(ctx, field, obj)
9991 if out.Values[i] == graphql.Null {
9992 atomic.AddUint32(&out.Invalids, 1)
9993 }
9994 case "dsse":
9995 field := field
9996
9997 innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) {
9998 defer func() {
9999 if r := recover(); r != nil {
10000 ec.Error(ctx, ec.Recover(ctx, r))
10001 }
10002 }()
10003 res = ec._PayloadDigest_dsse(ctx, field, obj)
10004 return res
10005 }
10006
10007 if field.Deferrable != nil {
10008 dfs, ok := deferred[field.Deferrable.Label]
10009 di := 0
10010 if ok {
10011 dfs.AddField(field)
10012 di = len(dfs.Values) - 1
10013 } else {
10014 dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
10015 deferred[field.Deferrable.Label] = dfs
10016 }
10017 dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
10018 return innerFunc(ctx, dfs)
10019 })
10020
10021 // don't run the out.Concurrently() call below
10022 out.Values[i] = graphql.Null
10023 continue
10024 }
10025
10026 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
10027 default:
10028 panic("unknown field " + strconv.Quote(field.Name))
10029 }
10030 }
10031 out.Dispatch(ctx)
10032 if out.Invalids > 0 {
10033 return graphql.Null
10034 }
10035
10036 atomic.AddInt32(&ec.deferred, int32(len(deferred)))
10037
10038 for label, dfs := range deferred {
10039 ec.processDeferredGroup(graphql.DeferredGroup{
10040 Label: label,
10041 Path: graphql.GetPath(ctx),
10042 FieldSet: dfs,
10043 Context: ctx,
10044 })
10045 }
10046
10047 return out
10048 }
10049
10050 var queryImplementors = []string{"Query"}
10051
10052 func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) graphql.Marshaler {
10053 fields := graphql.CollectFields(ec.OperationContext, sel, queryImplementors)
10054 ctx = graphql.WithFieldContext(ctx, &graphql.FieldContext{
10055 Object: "Query",
10056 })
10057
10058 out := graphql.NewFieldSet(fields)
10059 deferred := make(map[string]*graphql.FieldSet)
10060 for i, field := range fields {
10061 innerCtx := graphql.WithRootFieldContext(ctx, &graphql.RootFieldContext{
10062 Object: field.Name,
10063 Field: field,
10064 })
10065
10066 switch field.Name {
10067 case "__typename":
10068 out.Values[i] = graphql.MarshalString("Query")
10069 case "node":
10070 field := field
10071
10072 innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) {
10073 defer func() {
10074 if r := recover(); r != nil {
10075 ec.Error(ctx, ec.Recover(ctx, r))
10076 }
10077 }()
10078 res = ec._Query_node(ctx, field)
10079 return res
10080 }
10081
10082 rrm := func(ctx context.Context) graphql.Marshaler {
10083 return ec.OperationContext.RootResolverMiddleware(ctx,
10084 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
10085 }
10086
10087 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) })
10088 case "nodes":
10089 field := field
10090
10091 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
10092 defer func() {
10093 if r := recover(); r != nil {
10094 ec.Error(ctx, ec.Recover(ctx, r))
10095 }
10096 }()
10097 res = ec._Query_nodes(ctx, field)
10098 if res == graphql.Null {
10099 atomic.AddUint32(&fs.Invalids, 1)
10100 }
10101 return res
10102 }
10103
10104 rrm := func(ctx context.Context) graphql.Marshaler {
10105 return ec.OperationContext.RootResolverMiddleware(ctx,
10106 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
10107 }
10108
10109 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) })
10110 case "attestationPolicies":
10111 field := field
10112
10113 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
10114 defer func() {
10115 if r := recover(); r != nil {
10116 ec.Error(ctx, ec.Recover(ctx, r))
10117 }
10118 }()
10119 res = ec._Query_attestationPolicies(ctx, field)
10120 if res == graphql.Null {
10121 atomic.AddUint32(&fs.Invalids, 1)
10122 }
10123 return res
10124 }
10125
10126 rrm := func(ctx context.Context) graphql.Marshaler {
10127 return ec.OperationContext.RootResolverMiddleware(ctx,
10128 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
10129 }
10130
10131 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) })
10132 case "dsses":
10133 field := field
10134
10135 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
10136 defer func() {
10137 if r := recover(); r != nil {
10138 ec.Error(ctx, ec.Recover(ctx, r))
10139 }
10140 }()
10141 res = ec._Query_dsses(ctx, field)
10142 if res == graphql.Null {
10143 atomic.AddUint32(&fs.Invalids, 1)
10144 }
10145 return res
10146 }
10147
10148 rrm := func(ctx context.Context) graphql.Marshaler {
10149 return ec.OperationContext.RootResolverMiddleware(ctx,
10150 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
10151 }
10152
10153 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) })
10154 case "subjects":
10155 field := field
10156
10157 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
10158 defer func() {
10159 if r := recover(); r != nil {
10160 ec.Error(ctx, ec.Recover(ctx, r))
10161 }
10162 }()
10163 res = ec._Query_subjects(ctx, field)
10164 if res == graphql.Null {
10165 atomic.AddUint32(&fs.Invalids, 1)
10166 }
10167 return res
10168 }
10169
10170 rrm := func(ctx context.Context) graphql.Marshaler {
10171 return ec.OperationContext.RootResolverMiddleware(ctx,
10172 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
10173 }
10174
10175 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) })
10176 case "__type":
10177 out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
10178 return ec._Query___type(ctx, field)
10179 })
10180 case "__schema":
10181 out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
10182 return ec._Query___schema(ctx, field)
10183 })
10184 default:
10185 panic("unknown field " + strconv.Quote(field.Name))
10186 }
10187 }
10188 out.Dispatch(ctx)
10189 if out.Invalids > 0 {
10190 return graphql.Null
10191 }
10192
10193 atomic.AddInt32(&ec.deferred, int32(len(deferred)))
10194
10195 for label, dfs := range deferred {
10196 ec.processDeferredGroup(graphql.DeferredGroup{
10197 Label: label,
10198 Path: graphql.GetPath(ctx),
10199 FieldSet: dfs,
10200 Context: ctx,
10201 })
10202 }
10203
10204 return out
10205 }
10206
10207 var signatureImplementors = []string{"Signature", "Node"}
10208
10209 func (ec *executionContext) _Signature(ctx context.Context, sel ast.SelectionSet, obj *ent.Signature) graphql.Marshaler {
10210 fields := graphql.CollectFields(ec.OperationContext, sel, signatureImplementors)
10211
10212 out := graphql.NewFieldSet(fields)
10213 deferred := make(map[string]*graphql.FieldSet)
10214 for i, field := range fields {
10215 switch field.Name {
10216 case "__typename":
10217 out.Values[i] = graphql.MarshalString("Signature")
10218 case "id":
10219 out.Values[i] = ec._Signature_id(ctx, field, obj)
10220 if out.Values[i] == graphql.Null {
10221 atomic.AddUint32(&out.Invalids, 1)
10222 }
10223 case "keyID":
10224 out.Values[i] = ec._Signature_keyID(ctx, field, obj)
10225 if out.Values[i] == graphql.Null {
10226 atomic.AddUint32(&out.Invalids, 1)
10227 }
10228 case "signature":
10229 out.Values[i] = ec._Signature_signature(ctx, field, obj)
10230 if out.Values[i] == graphql.Null {
10231 atomic.AddUint32(&out.Invalids, 1)
10232 }
10233 case "dsse":
10234 field := field
10235
10236 innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) {
10237 defer func() {
10238 if r := recover(); r != nil {
10239 ec.Error(ctx, ec.Recover(ctx, r))
10240 }
10241 }()
10242 res = ec._Signature_dsse(ctx, field, obj)
10243 return res
10244 }
10245
10246 if field.Deferrable != nil {
10247 dfs, ok := deferred[field.Deferrable.Label]
10248 di := 0
10249 if ok {
10250 dfs.AddField(field)
10251 di = len(dfs.Values) - 1
10252 } else {
10253 dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
10254 deferred[field.Deferrable.Label] = dfs
10255 }
10256 dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
10257 return innerFunc(ctx, dfs)
10258 })
10259
10260 // don't run the out.Concurrently() call below
10261 out.Values[i] = graphql.Null
10262 continue
10263 }
10264
10265 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
10266 case "timestamps":
10267 field := field
10268
10269 innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) {
10270 defer func() {
10271 if r := recover(); r != nil {
10272 ec.Error(ctx, ec.Recover(ctx, r))
10273 }
10274 }()
10275 res = ec._Signature_timestamps(ctx, field, obj)
10276 return res
10277 }
10278
10279 if field.Deferrable != nil {
10280 dfs, ok := deferred[field.Deferrable.Label]
10281 di := 0
10282 if ok {
10283 dfs.AddField(field)
10284 di = len(dfs.Values) - 1
10285 } else {
10286 dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
10287 deferred[field.Deferrable.Label] = dfs
10288 }
10289 dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
10290 return innerFunc(ctx, dfs)
10291 })
10292
10293 // don't run the out.Concurrently() call below
10294 out.Values[i] = graphql.Null
10295 continue
10296 }
10297
10298 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
10299 default:
10300 panic("unknown field " + strconv.Quote(field.Name))
10301 }
10302 }
10303 out.Dispatch(ctx)
10304 if out.Invalids > 0 {
10305 return graphql.Null
10306 }
10307
10308 atomic.AddInt32(&ec.deferred, int32(len(deferred)))
10309
10310 for label, dfs := range deferred {
10311 ec.processDeferredGroup(graphql.DeferredGroup{
10312 Label: label,
10313 Path: graphql.GetPath(ctx),
10314 FieldSet: dfs,
10315 Context: ctx,
10316 })
10317 }
10318
10319 return out
10320 }
10321
10322 var statementImplementors = []string{"Statement", "Node"}
10323
10324 func (ec *executionContext) _Statement(ctx context.Context, sel ast.SelectionSet, obj *ent.Statement) graphql.Marshaler {
10325 fields := graphql.CollectFields(ec.OperationContext, sel, statementImplementors)
10326
10327 out := graphql.NewFieldSet(fields)
10328 deferred := make(map[string]*graphql.FieldSet)
10329 for i, field := range fields {
10330 switch field.Name {
10331 case "__typename":
10332 out.Values[i] = graphql.MarshalString("Statement")
10333 case "id":
10334 out.Values[i] = ec._Statement_id(ctx, field, obj)
10335 if out.Values[i] == graphql.Null {
10336 atomic.AddUint32(&out.Invalids, 1)
10337 }
10338 case "predicate":
10339 out.Values[i] = ec._Statement_predicate(ctx, field, obj)
10340 if out.Values[i] == graphql.Null {
10341 atomic.AddUint32(&out.Invalids, 1)
10342 }
10343 case "subjects":
10344 field := field
10345
10346 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
10347 defer func() {
10348 if r := recover(); r != nil {
10349 ec.Error(ctx, ec.Recover(ctx, r))
10350 }
10351 }()
10352 res = ec._Statement_subjects(ctx, field, obj)
10353 if res == graphql.Null {
10354 atomic.AddUint32(&fs.Invalids, 1)
10355 }
10356 return res
10357 }
10358
10359 if field.Deferrable != nil {
10360 dfs, ok := deferred[field.Deferrable.Label]
10361 di := 0
10362 if ok {
10363 dfs.AddField(field)
10364 di = len(dfs.Values) - 1
10365 } else {
10366 dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
10367 deferred[field.Deferrable.Label] = dfs
10368 }
10369 dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
10370 return innerFunc(ctx, dfs)
10371 })
10372
10373 // don't run the out.Concurrently() call below
10374 out.Values[i] = graphql.Null
10375 continue
10376 }
10377
10378 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
10379 case "policy":
10380 field := field
10381
10382 innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) {
10383 defer func() {
10384 if r := recover(); r != nil {
10385 ec.Error(ctx, ec.Recover(ctx, r))
10386 }
10387 }()
10388 res = ec._Statement_policy(ctx, field, obj)
10389 return res
10390 }
10391
10392 if field.Deferrable != nil {
10393 dfs, ok := deferred[field.Deferrable.Label]
10394 di := 0
10395 if ok {
10396 dfs.AddField(field)
10397 di = len(dfs.Values) - 1
10398 } else {
10399 dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
10400 deferred[field.Deferrable.Label] = dfs
10401 }
10402 dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
10403 return innerFunc(ctx, dfs)
10404 })
10405
10406 // don't run the out.Concurrently() call below
10407 out.Values[i] = graphql.Null
10408 continue
10409 }
10410
10411 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
10412 case "attestationCollections":
10413 field := field
10414
10415 innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) {
10416 defer func() {
10417 if r := recover(); r != nil {
10418 ec.Error(ctx, ec.Recover(ctx, r))
10419 }
10420 }()
10421 res = ec._Statement_attestationCollections(ctx, field, obj)
10422 return res
10423 }
10424
10425 if field.Deferrable != nil {
10426 dfs, ok := deferred[field.Deferrable.Label]
10427 di := 0
10428 if ok {
10429 dfs.AddField(field)
10430 di = len(dfs.Values) - 1
10431 } else {
10432 dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
10433 deferred[field.Deferrable.Label] = dfs
10434 }
10435 dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
10436 return innerFunc(ctx, dfs)
10437 })
10438
10439 // don't run the out.Concurrently() call below
10440 out.Values[i] = graphql.Null
10441 continue
10442 }
10443
10444 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
10445 case "dsse":
10446 field := field
10447
10448 innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) {
10449 defer func() {
10450 if r := recover(); r != nil {
10451 ec.Error(ctx, ec.Recover(ctx, r))
10452 }
10453 }()
10454 res = ec._Statement_dsse(ctx, field, obj)
10455 return res
10456 }
10457
10458 if field.Deferrable != nil {
10459 dfs, ok := deferred[field.Deferrable.Label]
10460 di := 0
10461 if ok {
10462 dfs.AddField(field)
10463 di = len(dfs.Values) - 1
10464 } else {
10465 dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
10466 deferred[field.Deferrable.Label] = dfs
10467 }
10468 dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
10469 return innerFunc(ctx, dfs)
10470 })
10471
10472 // don't run the out.Concurrently() call below
10473 out.Values[i] = graphql.Null
10474 continue
10475 }
10476
10477 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
10478 default:
10479 panic("unknown field " + strconv.Quote(field.Name))
10480 }
10481 }
10482 out.Dispatch(ctx)
10483 if out.Invalids > 0 {
10484 return graphql.Null
10485 }
10486
10487 atomic.AddInt32(&ec.deferred, int32(len(deferred)))
10488
10489 for label, dfs := range deferred {
10490 ec.processDeferredGroup(graphql.DeferredGroup{
10491 Label: label,
10492 Path: graphql.GetPath(ctx),
10493 FieldSet: dfs,
10494 Context: ctx,
10495 })
10496 }
10497
10498 return out
10499 }
10500
10501 var subjectImplementors = []string{"Subject", "Node"}
10502
10503 func (ec *executionContext) _Subject(ctx context.Context, sel ast.SelectionSet, obj *ent.Subject) graphql.Marshaler {
10504 fields := graphql.CollectFields(ec.OperationContext, sel, subjectImplementors)
10505
10506 out := graphql.NewFieldSet(fields)
10507 deferred := make(map[string]*graphql.FieldSet)
10508 for i, field := range fields {
10509 switch field.Name {
10510 case "__typename":
10511 out.Values[i] = graphql.MarshalString("Subject")
10512 case "id":
10513 out.Values[i] = ec._Subject_id(ctx, field, obj)
10514 if out.Values[i] == graphql.Null {
10515 atomic.AddUint32(&out.Invalids, 1)
10516 }
10517 case "createdAt":
10518 out.Values[i] = ec._Subject_createdAt(ctx, field, obj)
10519 case "name":
10520 out.Values[i] = ec._Subject_name(ctx, field, obj)
10521 if out.Values[i] == graphql.Null {
10522 atomic.AddUint32(&out.Invalids, 1)
10523 }
10524 case "subjectDigests":
10525 field := field
10526
10527 innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) {
10528 defer func() {
10529 if r := recover(); r != nil {
10530 ec.Error(ctx, ec.Recover(ctx, r))
10531 }
10532 }()
10533 res = ec._Subject_subjectDigests(ctx, field, obj)
10534 return res
10535 }
10536
10537 if field.Deferrable != nil {
10538 dfs, ok := deferred[field.Deferrable.Label]
10539 di := 0
10540 if ok {
10541 dfs.AddField(field)
10542 di = len(dfs.Values) - 1
10543 } else {
10544 dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
10545 deferred[field.Deferrable.Label] = dfs
10546 }
10547 dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
10548 return innerFunc(ctx, dfs)
10549 })
10550
10551 // don't run the out.Concurrently() call below
10552 out.Values[i] = graphql.Null
10553 continue
10554 }
10555
10556 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
10557 case "statement":
10558 field := field
10559
10560 innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) {
10561 defer func() {
10562 if r := recover(); r != nil {
10563 ec.Error(ctx, ec.Recover(ctx, r))
10564 }
10565 }()
10566 res = ec._Subject_statement(ctx, field, obj)
10567 return res
10568 }
10569
10570 if field.Deferrable != nil {
10571 dfs, ok := deferred[field.Deferrable.Label]
10572 di := 0
10573 if ok {
10574 dfs.AddField(field)
10575 di = len(dfs.Values) - 1
10576 } else {
10577 dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
10578 deferred[field.Deferrable.Label] = dfs
10579 }
10580 dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
10581 return innerFunc(ctx, dfs)
10582 })
10583
10584 // don't run the out.Concurrently() call below
10585 out.Values[i] = graphql.Null
10586 continue
10587 }
10588
10589 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
10590 default:
10591 panic("unknown field " + strconv.Quote(field.Name))
10592 }
10593 }
10594 out.Dispatch(ctx)
10595 if out.Invalids > 0 {
10596 return graphql.Null
10597 }
10598
10599 atomic.AddInt32(&ec.deferred, int32(len(deferred)))
10600
10601 for label, dfs := range deferred {
10602 ec.processDeferredGroup(graphql.DeferredGroup{
10603 Label: label,
10604 Path: graphql.GetPath(ctx),
10605 FieldSet: dfs,
10606 Context: ctx,
10607 })
10608 }
10609
10610 return out
10611 }
10612
10613 var subjectConnectionImplementors = []string{"SubjectConnection"}
10614
10615 func (ec *executionContext) _SubjectConnection(ctx context.Context, sel ast.SelectionSet, obj *ent.SubjectConnection) graphql.Marshaler {
10616 fields := graphql.CollectFields(ec.OperationContext, sel, subjectConnectionImplementors)
10617
10618 out := graphql.NewFieldSet(fields)
10619 deferred := make(map[string]*graphql.FieldSet)
10620 for i, field := range fields {
10621 switch field.Name {
10622 case "__typename":
10623 out.Values[i] = graphql.MarshalString("SubjectConnection")
10624 case "edges":
10625 out.Values[i] = ec._SubjectConnection_edges(ctx, field, obj)
10626 case "pageInfo":
10627 out.Values[i] = ec._SubjectConnection_pageInfo(ctx, field, obj)
10628 if out.Values[i] == graphql.Null {
10629 out.Invalids++
10630 }
10631 case "totalCount":
10632 out.Values[i] = ec._SubjectConnection_totalCount(ctx, field, obj)
10633 if out.Values[i] == graphql.Null {
10634 out.Invalids++
10635 }
10636 default:
10637 panic("unknown field " + strconv.Quote(field.Name))
10638 }
10639 }
10640 out.Dispatch(ctx)
10641 if out.Invalids > 0 {
10642 return graphql.Null
10643 }
10644
10645 atomic.AddInt32(&ec.deferred, int32(len(deferred)))
10646
10647 for label, dfs := range deferred {
10648 ec.processDeferredGroup(graphql.DeferredGroup{
10649 Label: label,
10650 Path: graphql.GetPath(ctx),
10651 FieldSet: dfs,
10652 Context: ctx,
10653 })
10654 }
10655
10656 return out
10657 }
10658
10659 var subjectDigestImplementors = []string{"SubjectDigest", "Node"}
10660
10661 func (ec *executionContext) _SubjectDigest(ctx context.Context, sel ast.SelectionSet, obj *ent.SubjectDigest) graphql.Marshaler {
10662 fields := graphql.CollectFields(ec.OperationContext, sel, subjectDigestImplementors)
10663
10664 out := graphql.NewFieldSet(fields)
10665 deferred := make(map[string]*graphql.FieldSet)
10666 for i, field := range fields {
10667 switch field.Name {
10668 case "__typename":
10669 out.Values[i] = graphql.MarshalString("SubjectDigest")
10670 case "id":
10671 out.Values[i] = ec._SubjectDigest_id(ctx, field, obj)
10672 if out.Values[i] == graphql.Null {
10673 atomic.AddUint32(&out.Invalids, 1)
10674 }
10675 case "algorithm":
10676 out.Values[i] = ec._SubjectDigest_algorithm(ctx, field, obj)
10677 if out.Values[i] == graphql.Null {
10678 atomic.AddUint32(&out.Invalids, 1)
10679 }
10680 case "value":
10681 out.Values[i] = ec._SubjectDigest_value(ctx, field, obj)
10682 if out.Values[i] == graphql.Null {
10683 atomic.AddUint32(&out.Invalids, 1)
10684 }
10685 case "subject":
10686 field := field
10687
10688 innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) {
10689 defer func() {
10690 if r := recover(); r != nil {
10691 ec.Error(ctx, ec.Recover(ctx, r))
10692 }
10693 }()
10694 res = ec._SubjectDigest_subject(ctx, field, obj)
10695 return res
10696 }
10697
10698 if field.Deferrable != nil {
10699 dfs, ok := deferred[field.Deferrable.Label]
10700 di := 0
10701 if ok {
10702 dfs.AddField(field)
10703 di = len(dfs.Values) - 1
10704 } else {
10705 dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
10706 deferred[field.Deferrable.Label] = dfs
10707 }
10708 dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
10709 return innerFunc(ctx, dfs)
10710 })
10711
10712 // don't run the out.Concurrently() call below
10713 out.Values[i] = graphql.Null
10714 continue
10715 }
10716
10717 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
10718 default:
10719 panic("unknown field " + strconv.Quote(field.Name))
10720 }
10721 }
10722 out.Dispatch(ctx)
10723 if out.Invalids > 0 {
10724 return graphql.Null
10725 }
10726
10727 atomic.AddInt32(&ec.deferred, int32(len(deferred)))
10728
10729 for label, dfs := range deferred {
10730 ec.processDeferredGroup(graphql.DeferredGroup{
10731 Label: label,
10732 Path: graphql.GetPath(ctx),
10733 FieldSet: dfs,
10734 Context: ctx,
10735 })
10736 }
10737
10738 return out
10739 }
10740
10741 var subjectEdgeImplementors = []string{"SubjectEdge"}
10742
10743 func (ec *executionContext) _SubjectEdge(ctx context.Context, sel ast.SelectionSet, obj *ent.SubjectEdge) graphql.Marshaler {
10744 fields := graphql.CollectFields(ec.OperationContext, sel, subjectEdgeImplementors)
10745
10746 out := graphql.NewFieldSet(fields)
10747 deferred := make(map[string]*graphql.FieldSet)
10748 for i, field := range fields {
10749 switch field.Name {
10750 case "__typename":
10751 out.Values[i] = graphql.MarshalString("SubjectEdge")
10752 case "node":
10753 out.Values[i] = ec._SubjectEdge_node(ctx, field, obj)
10754 case "cursor":
10755 out.Values[i] = ec._SubjectEdge_cursor(ctx, field, obj)
10756 if out.Values[i] == graphql.Null {
10757 out.Invalids++
10758 }
10759 default:
10760 panic("unknown field " + strconv.Quote(field.Name))
10761 }
10762 }
10763 out.Dispatch(ctx)
10764 if out.Invalids > 0 {
10765 return graphql.Null
10766 }
10767
10768 atomic.AddInt32(&ec.deferred, int32(len(deferred)))
10769
10770 for label, dfs := range deferred {
10771 ec.processDeferredGroup(graphql.DeferredGroup{
10772 Label: label,
10773 Path: graphql.GetPath(ctx),
10774 FieldSet: dfs,
10775 Context: ctx,
10776 })
10777 }
10778
10779 return out
10780 }
10781
10782 var timestampImplementors = []string{"Timestamp", "Node"}
10783
10784 func (ec *executionContext) _Timestamp(ctx context.Context, sel ast.SelectionSet, obj *ent.Timestamp) graphql.Marshaler {
10785 fields := graphql.CollectFields(ec.OperationContext, sel, timestampImplementors)
10786
10787 out := graphql.NewFieldSet(fields)
10788 deferred := make(map[string]*graphql.FieldSet)
10789 for i, field := range fields {
10790 switch field.Name {
10791 case "__typename":
10792 out.Values[i] = graphql.MarshalString("Timestamp")
10793 case "id":
10794 out.Values[i] = ec._Timestamp_id(ctx, field, obj)
10795 if out.Values[i] == graphql.Null {
10796 atomic.AddUint32(&out.Invalids, 1)
10797 }
10798 case "type":
10799 out.Values[i] = ec._Timestamp_type(ctx, field, obj)
10800 if out.Values[i] == graphql.Null {
10801 atomic.AddUint32(&out.Invalids, 1)
10802 }
10803 case "timestamp":
10804 out.Values[i] = ec._Timestamp_timestamp(ctx, field, obj)
10805 if out.Values[i] == graphql.Null {
10806 atomic.AddUint32(&out.Invalids, 1)
10807 }
10808 case "signature":
10809 field := field
10810
10811 innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) {
10812 defer func() {
10813 if r := recover(); r != nil {
10814 ec.Error(ctx, ec.Recover(ctx, r))
10815 }
10816 }()
10817 res = ec._Timestamp_signature(ctx, field, obj)
10818 return res
10819 }
10820
10821 if field.Deferrable != nil {
10822 dfs, ok := deferred[field.Deferrable.Label]
10823 di := 0
10824 if ok {
10825 dfs.AddField(field)
10826 di = len(dfs.Values) - 1
10827 } else {
10828 dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
10829 deferred[field.Deferrable.Label] = dfs
10830 }
10831 dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
10832 return innerFunc(ctx, dfs)
10833 })
10834
10835 // don't run the out.Concurrently() call below
10836 out.Values[i] = graphql.Null
10837 continue
10838 }
10839
10840 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
10841 default:
10842 panic("unknown field " + strconv.Quote(field.Name))
10843 }
10844 }
10845 out.Dispatch(ctx)
10846 if out.Invalids > 0 {
10847 return graphql.Null
10848 }
10849
10850 atomic.AddInt32(&ec.deferred, int32(len(deferred)))
10851
10852 for label, dfs := range deferred {
10853 ec.processDeferredGroup(graphql.DeferredGroup{
10854 Label: label,
10855 Path: graphql.GetPath(ctx),
10856 FieldSet: dfs,
10857 Context: ctx,
10858 })
10859 }
10860
10861 return out
10862 }
10863
10864 var __DirectiveImplementors = []string{"__Directive"}
10865
10866 func (ec *executionContext) ___Directive(ctx context.Context, sel ast.SelectionSet, obj *introspection.Directive) graphql.Marshaler {
10867 fields := graphql.CollectFields(ec.OperationContext, sel, __DirectiveImplementors)
10868
10869 out := graphql.NewFieldSet(fields)
10870 deferred := make(map[string]*graphql.FieldSet)
10871 for i, field := range fields {
10872 switch field.Name {
10873 case "__typename":
10874 out.Values[i] = graphql.MarshalString("__Directive")
10875 case "name":
10876 out.Values[i] = ec.___Directive_name(ctx, field, obj)
10877 if out.Values[i] == graphql.Null {
10878 out.Invalids++
10879 }
10880 case "description":
10881 out.Values[i] = ec.___Directive_description(ctx, field, obj)
10882 case "isRepeatable":
10883 out.Values[i] = ec.___Directive_isRepeatable(ctx, field, obj)
10884 if out.Values[i] == graphql.Null {
10885 out.Invalids++
10886 }
10887 case "locations":
10888 out.Values[i] = ec.___Directive_locations(ctx, field, obj)
10889 if out.Values[i] == graphql.Null {
10890 out.Invalids++
10891 }
10892 case "args":
10893 out.Values[i] = ec.___Directive_args(ctx, field, obj)
10894 if out.Values[i] == graphql.Null {
10895 out.Invalids++
10896 }
10897 default:
10898 panic("unknown field " + strconv.Quote(field.Name))
10899 }
10900 }
10901 out.Dispatch(ctx)
10902 if out.Invalids > 0 {
10903 return graphql.Null
10904 }
10905
10906 atomic.AddInt32(&ec.deferred, int32(len(deferred)))
10907
10908 for label, dfs := range deferred {
10909 ec.processDeferredGroup(graphql.DeferredGroup{
10910 Label: label,
10911 Path: graphql.GetPath(ctx),
10912 FieldSet: dfs,
10913 Context: ctx,
10914 })
10915 }
10916
10917 return out
10918 }
10919
10920 var __EnumValueImplementors = []string{"__EnumValue"}
10921
10922 func (ec *executionContext) ___EnumValue(ctx context.Context, sel ast.SelectionSet, obj *introspection.EnumValue) graphql.Marshaler {
10923 fields := graphql.CollectFields(ec.OperationContext, sel, __EnumValueImplementors)
10924
10925 out := graphql.NewFieldSet(fields)
10926 deferred := make(map[string]*graphql.FieldSet)
10927 for i, field := range fields {
10928 switch field.Name {
10929 case "__typename":
10930 out.Values[i] = graphql.MarshalString("__EnumValue")
10931 case "name":
10932 out.Values[i] = ec.___EnumValue_name(ctx, field, obj)
10933 if out.Values[i] == graphql.Null {
10934 out.Invalids++
10935 }
10936 case "description":
10937 out.Values[i] = ec.___EnumValue_description(ctx, field, obj)
10938 case "isDeprecated":
10939 out.Values[i] = ec.___EnumValue_isDeprecated(ctx, field, obj)
10940 if out.Values[i] == graphql.Null {
10941 out.Invalids++
10942 }
10943 case "deprecationReason":
10944 out.Values[i] = ec.___EnumValue_deprecationReason(ctx, field, obj)
10945 default:
10946 panic("unknown field " + strconv.Quote(field.Name))
10947 }
10948 }
10949 out.Dispatch(ctx)
10950 if out.Invalids > 0 {
10951 return graphql.Null
10952 }
10953
10954 atomic.AddInt32(&ec.deferred, int32(len(deferred)))
10955
10956 for label, dfs := range deferred {
10957 ec.processDeferredGroup(graphql.DeferredGroup{
10958 Label: label,
10959 Path: graphql.GetPath(ctx),
10960 FieldSet: dfs,
10961 Context: ctx,
10962 })
10963 }
10964
10965 return out
10966 }
10967
10968 var __FieldImplementors = []string{"__Field"}
10969
10970 func (ec *executionContext) ___Field(ctx context.Context, sel ast.SelectionSet, obj *introspection.Field) graphql.Marshaler {
10971 fields := graphql.CollectFields(ec.OperationContext, sel, __FieldImplementors)
10972
10973 out := graphql.NewFieldSet(fields)
10974 deferred := make(map[string]*graphql.FieldSet)
10975 for i, field := range fields {
10976 switch field.Name {
10977 case "__typename":
10978 out.Values[i] = graphql.MarshalString("__Field")
10979 case "name":
10980 out.Values[i] = ec.___Field_name(ctx, field, obj)
10981 if out.Values[i] == graphql.Null {
10982 out.Invalids++
10983 }
10984 case "description":
10985 out.Values[i] = ec.___Field_description(ctx, field, obj)
10986 case "args":
10987 out.Values[i] = ec.___Field_args(ctx, field, obj)
10988 if out.Values[i] == graphql.Null {
10989 out.Invalids++
10990 }
10991 case "type":
10992 out.Values[i] = ec.___Field_type(ctx, field, obj)
10993 if out.Values[i] == graphql.Null {
10994 out.Invalids++
10995 }
10996 case "isDeprecated":
10997 out.Values[i] = ec.___Field_isDeprecated(ctx, field, obj)
10998 if out.Values[i] == graphql.Null {
10999 out.Invalids++
11000 }
11001 case "deprecationReason":
11002 out.Values[i] = ec.___Field_deprecationReason(ctx, field, obj)
11003 default:
11004 panic("unknown field " + strconv.Quote(field.Name))
11005 }
11006 }
11007 out.Dispatch(ctx)
11008 if out.Invalids > 0 {
11009 return graphql.Null
11010 }
11011
11012 atomic.AddInt32(&ec.deferred, int32(len(deferred)))
11013
11014 for label, dfs := range deferred {
11015 ec.processDeferredGroup(graphql.DeferredGroup{
11016 Label: label,
11017 Path: graphql.GetPath(ctx),
11018 FieldSet: dfs,
11019 Context: ctx,
11020 })
11021 }
11022
11023 return out
11024 }
11025
11026 var __InputValueImplementors = []string{"__InputValue"}
11027
11028 func (ec *executionContext) ___InputValue(ctx context.Context, sel ast.SelectionSet, obj *introspection.InputValue) graphql.Marshaler {
11029 fields := graphql.CollectFields(ec.OperationContext, sel, __InputValueImplementors)
11030
11031 out := graphql.NewFieldSet(fields)
11032 deferred := make(map[string]*graphql.FieldSet)
11033 for i, field := range fields {
11034 switch field.Name {
11035 case "__typename":
11036 out.Values[i] = graphql.MarshalString("__InputValue")
11037 case "name":
11038 out.Values[i] = ec.___InputValue_name(ctx, field, obj)
11039 if out.Values[i] == graphql.Null {
11040 out.Invalids++
11041 }
11042 case "description":
11043 out.Values[i] = ec.___InputValue_description(ctx, field, obj)
11044 case "type":
11045 out.Values[i] = ec.___InputValue_type(ctx, field, obj)
11046 if out.Values[i] == graphql.Null {
11047 out.Invalids++
11048 }
11049 case "defaultValue":
11050 out.Values[i] = ec.___InputValue_defaultValue(ctx, field, obj)
11051 case "isDeprecated":
11052 out.Values[i] = ec.___InputValue_isDeprecated(ctx, field, obj)
11053 if out.Values[i] == graphql.Null {
11054 out.Invalids++
11055 }
11056 case "deprecationReason":
11057 out.Values[i] = ec.___InputValue_deprecationReason(ctx, field, obj)
11058 default:
11059 panic("unknown field " + strconv.Quote(field.Name))
11060 }
11061 }
11062 out.Dispatch(ctx)
11063 if out.Invalids > 0 {
11064 return graphql.Null
11065 }
11066
11067 atomic.AddInt32(&ec.deferred, int32(len(deferred)))
11068
11069 for label, dfs := range deferred {
11070 ec.processDeferredGroup(graphql.DeferredGroup{
11071 Label: label,
11072 Path: graphql.GetPath(ctx),
11073 FieldSet: dfs,
11074 Context: ctx,
11075 })
11076 }
11077
11078 return out
11079 }
11080
11081 var __SchemaImplementors = []string{"__Schema"}
11082
11083 func (ec *executionContext) ___Schema(ctx context.Context, sel ast.SelectionSet, obj *introspection.Schema) graphql.Marshaler {
11084 fields := graphql.CollectFields(ec.OperationContext, sel, __SchemaImplementors)
11085
11086 out := graphql.NewFieldSet(fields)
11087 deferred := make(map[string]*graphql.FieldSet)
11088 for i, field := range fields {
11089 switch field.Name {
11090 case "__typename":
11091 out.Values[i] = graphql.MarshalString("__Schema")
11092 case "description":
11093 out.Values[i] = ec.___Schema_description(ctx, field, obj)
11094 case "types":
11095 out.Values[i] = ec.___Schema_types(ctx, field, obj)
11096 if out.Values[i] == graphql.Null {
11097 out.Invalids++
11098 }
11099 case "queryType":
11100 out.Values[i] = ec.___Schema_queryType(ctx, field, obj)
11101 if out.Values[i] == graphql.Null {
11102 out.Invalids++
11103 }
11104 case "mutationType":
11105 out.Values[i] = ec.___Schema_mutationType(ctx, field, obj)
11106 case "subscriptionType":
11107 out.Values[i] = ec.___Schema_subscriptionType(ctx, field, obj)
11108 case "directives":
11109 out.Values[i] = ec.___Schema_directives(ctx, field, obj)
11110 if out.Values[i] == graphql.Null {
11111 out.Invalids++
11112 }
11113 default:
11114 panic("unknown field " + strconv.Quote(field.Name))
11115 }
11116 }
11117 out.Dispatch(ctx)
11118 if out.Invalids > 0 {
11119 return graphql.Null
11120 }
11121
11122 atomic.AddInt32(&ec.deferred, int32(len(deferred)))
11123
11124 for label, dfs := range deferred {
11125 ec.processDeferredGroup(graphql.DeferredGroup{
11126 Label: label,
11127 Path: graphql.GetPath(ctx),
11128 FieldSet: dfs,
11129 Context: ctx,
11130 })
11131 }
11132
11133 return out
11134 }
11135
11136 var __TypeImplementors = []string{"__Type"}
11137
11138 func (ec *executionContext) ___Type(ctx context.Context, sel ast.SelectionSet, obj *introspection.Type) graphql.Marshaler {
11139 fields := graphql.CollectFields(ec.OperationContext, sel, __TypeImplementors)
11140
11141 out := graphql.NewFieldSet(fields)
11142 deferred := make(map[string]*graphql.FieldSet)
11143 for i, field := range fields {
11144 switch field.Name {
11145 case "__typename":
11146 out.Values[i] = graphql.MarshalString("__Type")
11147 case "kind":
11148 out.Values[i] = ec.___Type_kind(ctx, field, obj)
11149 if out.Values[i] == graphql.Null {
11150 out.Invalids++
11151 }
11152 case "name":
11153 out.Values[i] = ec.___Type_name(ctx, field, obj)
11154 case "description":
11155 out.Values[i] = ec.___Type_description(ctx, field, obj)
11156 case "specifiedByURL":
11157 out.Values[i] = ec.___Type_specifiedByURL(ctx, field, obj)
11158 case "fields":
11159 out.Values[i] = ec.___Type_fields(ctx, field, obj)
11160 case "interfaces":
11161 out.Values[i] = ec.___Type_interfaces(ctx, field, obj)
11162 case "possibleTypes":
11163 out.Values[i] = ec.___Type_possibleTypes(ctx, field, obj)
11164 case "enumValues":
11165 out.Values[i] = ec.___Type_enumValues(ctx, field, obj)
11166 case "inputFields":
11167 out.Values[i] = ec.___Type_inputFields(ctx, field, obj)
11168 case "ofType":
11169 out.Values[i] = ec.___Type_ofType(ctx, field, obj)
11170 case "isOneOf":
11171 out.Values[i] = ec.___Type_isOneOf(ctx, field, obj)
11172 default:
11173 panic("unknown field " + strconv.Quote(field.Name))
11174 }
11175 }
11176 out.Dispatch(ctx)
11177 if out.Invalids > 0 {
11178 return graphql.Null
11179 }
11180
11181 atomic.AddInt32(&ec.deferred, int32(len(deferred)))
11182
11183 for label, dfs := range deferred {
11184 ec.processDeferredGroup(graphql.DeferredGroup{
11185 Label: label,
11186 Path: graphql.GetPath(ctx),
11187 FieldSet: dfs,
11188 Context: ctx,
11189 })
11190 }
11191
11192 return out
11193 }
11194
11195 // endregion **************************** object.gotpl ****************************
11196
11197 // region ***************************** type.gotpl *****************************
11198
11199 func (ec *executionContext) marshalNAttestation2ᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐAttestation(ctx context.Context, sel ast.SelectionSet, v *ent.Attestation) graphql.Marshaler {
11200 if v == nil {
11201 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
11202 ec.Errorf(ctx, "the requested element is null which the schema does not allow")
11203 }
11204 return graphql.Null
11205 }
11206 return ec._Attestation(ctx, sel, v)
11207 }
11208
11209 func (ec *executionContext) marshalNAttestationCollection2ᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐAttestationCollection(ctx context.Context, sel ast.SelectionSet, v *ent.AttestationCollection) graphql.Marshaler {
11210 if v == nil {
11211 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
11212 ec.Errorf(ctx, "the requested element is null which the schema does not allow")
11213 }
11214 return graphql.Null
11215 }
11216 return ec._AttestationCollection(ctx, sel, v)
11217 }
11218
11219 func (ec *executionContext) unmarshalNAttestationCollectionWhereInput2ᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐAttestationCollectionWhereInput(ctx context.Context, v any) (*ent.AttestationCollectionWhereInput, error) {
11220 res, err := ec.unmarshalInputAttestationCollectionWhereInput(ctx, v)
11221 return &res, graphql.ErrorOnPath(ctx, err)
11222 }
11223
11224 func (ec *executionContext) marshalNAttestationPolicyConnection2githubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐAttestationPolicyConnection(ctx context.Context, sel ast.SelectionSet, v ent.AttestationPolicyConnection) graphql.Marshaler {
11225 return ec._AttestationPolicyConnection(ctx, sel, &v)
11226 }
11227
11228 func (ec *executionContext) marshalNAttestationPolicyConnection2ᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐAttestationPolicyConnection(ctx context.Context, sel ast.SelectionSet, v *ent.AttestationPolicyConnection) graphql.Marshaler {
11229 if v == nil {
11230 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
11231 ec.Errorf(ctx, "the requested element is null which the schema does not allow")
11232 }
11233 return graphql.Null
11234 }
11235 return ec._AttestationPolicyConnection(ctx, sel, v)
11236 }
11237
11238 func (ec *executionContext) unmarshalNAttestationPolicyWhereInput2ᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐAttestationPolicyWhereInput(ctx context.Context, v any) (*ent.AttestationPolicyWhereInput, error) {
11239 res, err := ec.unmarshalInputAttestationPolicyWhereInput(ctx, v)
11240 return &res, graphql.ErrorOnPath(ctx, err)
11241 }
11242
11243 func (ec *executionContext) unmarshalNAttestationWhereInput2ᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐAttestationWhereInput(ctx context.Context, v any) (*ent.AttestationWhereInput, error) {
11244 res, err := ec.unmarshalInputAttestationWhereInput(ctx, v)
11245 return &res, graphql.ErrorOnPath(ctx, err)
11246 }
11247
11248 func (ec *executionContext) unmarshalNBoolean2bool(ctx context.Context, v any) (bool, error) {
11249 res, err := graphql.UnmarshalBoolean(v)
11250 return res, graphql.ErrorOnPath(ctx, err)
11251 }
11252
11253 func (ec *executionContext) marshalNBoolean2bool(ctx context.Context, sel ast.SelectionSet, v bool) graphql.Marshaler {
11254 _ = sel
11255 res := graphql.MarshalBoolean(v)
11256 if res == graphql.Null {
11257 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
11258 ec.Errorf(ctx, "the requested element is null which the schema does not allow")
11259 }
11260 }
11261 return res
11262 }
11263
11264 func (ec *executionContext) unmarshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx context.Context, v any) (entgql.Cursor[uuid.UUID], error) {
11265 var res entgql.Cursor[uuid.UUID]
11266 err := res.UnmarshalGQL(v)
11267 return res, graphql.ErrorOnPath(ctx, err)
11268 }
11269
11270 func (ec *executionContext) marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx context.Context, sel ast.SelectionSet, v entgql.Cursor[uuid.UUID]) graphql.Marshaler {
11271 return v
11272 }
11273
11274 func (ec *executionContext) marshalNDsse2ᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐDsse(ctx context.Context, sel ast.SelectionSet, v *ent.Dsse) graphql.Marshaler {
11275 if v == nil {
11276 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
11277 ec.Errorf(ctx, "the requested element is null which the schema does not allow")
11278 }
11279 return graphql.Null
11280 }
11281 return ec._Dsse(ctx, sel, v)
11282 }
11283
11284 func (ec *executionContext) marshalNDsseConnection2githubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐDsseConnection(ctx context.Context, sel ast.SelectionSet, v ent.DsseConnection) graphql.Marshaler {
11285 return ec._DsseConnection(ctx, sel, &v)
11286 }
11287
11288 func (ec *executionContext) marshalNDsseConnection2ᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐDsseConnection(ctx context.Context, sel ast.SelectionSet, v *ent.DsseConnection) graphql.Marshaler {
11289 if v == nil {
11290 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
11291 ec.Errorf(ctx, "the requested element is null which the schema does not allow")
11292 }
11293 return graphql.Null
11294 }
11295 return ec._DsseConnection(ctx, sel, v)
11296 }
11297
11298 func (ec *executionContext) unmarshalNDsseOrderField2ᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐDsseOrderField(ctx context.Context, v any) (*ent.DsseOrderField, error) {
11299 var res = new(ent.DsseOrderField)
11300 err := res.UnmarshalGQL(v)
11301 return res, graphql.ErrorOnPath(ctx, err)
11302 }
11303
11304 func (ec *executionContext) marshalNDsseOrderField2ᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐDsseOrderField(ctx context.Context, sel ast.SelectionSet, v *ent.DsseOrderField) graphql.Marshaler {
11305 if v == nil {
11306 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
11307 ec.Errorf(ctx, "the requested element is null which the schema does not allow")
11308 }
11309 return graphql.Null
11310 }
11311 return v
11312 }
11313
11314 func (ec *executionContext) unmarshalNDsseWhereInput2ᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐDsseWhereInput(ctx context.Context, v any) (*ent.DsseWhereInput, error) {
11315 res, err := ec.unmarshalInputDsseWhereInput(ctx, v)
11316 return &res, graphql.ErrorOnPath(ctx, err)
11317 }
11318
11319 func (ec *executionContext) unmarshalNID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx context.Context, v any) (uuid.UUID, error) {
11320 res, err := uuidgql.UnmarshalUUID(v)
11321 return res, graphql.ErrorOnPath(ctx, err)
11322 }
11323
11324 func (ec *executionContext) marshalNID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx context.Context, sel ast.SelectionSet, v uuid.UUID) graphql.Marshaler {
11325 _ = sel
11326 res := uuidgql.MarshalUUID(v)
11327 if res == graphql.Null {
11328 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
11329 ec.Errorf(ctx, "the requested element is null which the schema does not allow")
11330 }
11331 }
11332 return res
11333 }
11334
11335 func (ec *executionContext) unmarshalNID2ᚕgithubᚗcomᚋgoogleᚋuuidᚐUUIDᚄ(ctx context.Context, v any) ([]uuid.UUID, error) {
11336 var vSlice []any
11337 vSlice = graphql.CoerceList(v)
11338 var err error
11339 res := make([]uuid.UUID, len(vSlice))
11340 for i := range vSlice {
11341 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i))
11342 res[i], err = ec.unmarshalNID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, vSlice[i])
11343 if err != nil {
11344 return nil, err
11345 }
11346 }
11347 return res, nil
11348 }
11349
11350 func (ec *executionContext) marshalNID2ᚕgithubᚗcomᚋgoogleᚋuuidᚐUUIDᚄ(ctx context.Context, sel ast.SelectionSet, v []uuid.UUID) graphql.Marshaler {
11351 ret := make(graphql.Array, len(v))
11352 for i := range v {
11353 ret[i] = ec.marshalNID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, sel, v[i])
11354 }
11355
11356 for _, e := range ret {
11357 if e == graphql.Null {
11358 return graphql.Null
11359 }
11360 }
11361
11362 return ret
11363 }
11364
11365 func (ec *executionContext) unmarshalNInt2int(ctx context.Context, v any) (int, error) {
11366 res, err := graphql.UnmarshalInt(v)
11367 return res, graphql.ErrorOnPath(ctx, err)
11368 }
11369
11370 func (ec *executionContext) marshalNInt2int(ctx context.Context, sel ast.SelectionSet, v int) graphql.Marshaler {
11371 _ = sel
11372 res := graphql.MarshalInt(v)
11373 if res == graphql.Null {
11374 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
11375 ec.Errorf(ctx, "the requested element is null which the schema does not allow")
11376 }
11377 }
11378 return res
11379 }
11380
11381 func (ec *executionContext) marshalNNode2ᚕgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐNoder(ctx context.Context, sel ast.SelectionSet, v []ent.Noder) graphql.Marshaler {
11382 ret := make(graphql.Array, len(v))
11383 var wg sync.WaitGroup
11384 isLen1 := len(v) == 1
11385 if !isLen1 {
11386 wg.Add(len(v))
11387 }
11388 for i := range v {
11389 i := i
11390 fc := &graphql.FieldContext{
11391 Index: &i,
11392 Result: &v[i],
11393 }
11394 ctx := graphql.WithFieldContext(ctx, fc)
11395 f := func(i int) {
11396 defer func() {
11397 if r := recover(); r != nil {
11398 ec.Error(ctx, ec.Recover(ctx, r))
11399 ret = nil
11400 }
11401 }()
11402 if !isLen1 {
11403 defer wg.Done()
11404 }
11405 ret[i] = ec.marshalONode2githubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐNoder(ctx, sel, v[i])
11406 }
11407 if isLen1 {
11408 f(i)
11409 } else {
11410 go f(i)
11411 }
11412
11413 }
11414 wg.Wait()
11415
11416 return ret
11417 }
11418
11419 func (ec *executionContext) unmarshalNOrderDirection2entgoᚗioᚋcontribᚋentgqlᚐOrderDirection(ctx context.Context, v any) (entgql.OrderDirection, error) {
11420 var res entgql.OrderDirection
11421 err := res.UnmarshalGQL(v)
11422 return res, graphql.ErrorOnPath(ctx, err)
11423 }
11424
11425 func (ec *executionContext) marshalNOrderDirection2entgoᚗioᚋcontribᚋentgqlᚐOrderDirection(ctx context.Context, sel ast.SelectionSet, v entgql.OrderDirection) graphql.Marshaler {
11426 return v
11427 }
11428
11429 func (ec *executionContext) marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx context.Context, sel ast.SelectionSet, v entgql.PageInfo[uuid.UUID]) graphql.Marshaler {
11430 return ec._PageInfo(ctx, sel, &v)
11431 }
11432
11433 func (ec *executionContext) marshalNPayloadDigest2ᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐPayloadDigest(ctx context.Context, sel ast.SelectionSet, v *ent.PayloadDigest) graphql.Marshaler {
11434 if v == nil {
11435 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
11436 ec.Errorf(ctx, "the requested element is null which the schema does not allow")
11437 }
11438 return graphql.Null
11439 }
11440 return ec._PayloadDigest(ctx, sel, v)
11441 }
11442
11443 func (ec *executionContext) unmarshalNPayloadDigestWhereInput2ᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐPayloadDigestWhereInput(ctx context.Context, v any) (*ent.PayloadDigestWhereInput, error) {
11444 res, err := ec.unmarshalInputPayloadDigestWhereInput(ctx, v)
11445 return &res, graphql.ErrorOnPath(ctx, err)
11446 }
11447
11448 func (ec *executionContext) marshalNSignature2ᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐSignature(ctx context.Context, sel ast.SelectionSet, v *ent.Signature) graphql.Marshaler {
11449 if v == nil {
11450 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
11451 ec.Errorf(ctx, "the requested element is null which the schema does not allow")
11452 }
11453 return graphql.Null
11454 }
11455 return ec._Signature(ctx, sel, v)
11456 }
11457
11458 func (ec *executionContext) unmarshalNSignatureWhereInput2ᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐSignatureWhereInput(ctx context.Context, v any) (*ent.SignatureWhereInput, error) {
11459 res, err := ec.unmarshalInputSignatureWhereInput(ctx, v)
11460 return &res, graphql.ErrorOnPath(ctx, err)
11461 }
11462
11463 func (ec *executionContext) marshalNStatement2ᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐStatement(ctx context.Context, sel ast.SelectionSet, v *ent.Statement) graphql.Marshaler {
11464 if v == nil {
11465 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
11466 ec.Errorf(ctx, "the requested element is null which the schema does not allow")
11467 }
11468 return graphql.Null
11469 }
11470 return ec._Statement(ctx, sel, v)
11471 }
11472
11473 func (ec *executionContext) unmarshalNStatementWhereInput2ᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐStatementWhereInput(ctx context.Context, v any) (*ent.StatementWhereInput, error) {
11474 res, err := ec.unmarshalInputStatementWhereInput(ctx, v)
11475 return &res, graphql.ErrorOnPath(ctx, err)
11476 }
11477
11478 func (ec *executionContext) unmarshalNString2string(ctx context.Context, v any) (string, error) {
11479 res, err := graphql.UnmarshalString(v)
11480 return res, graphql.ErrorOnPath(ctx, err)
11481 }
11482
11483 func (ec *executionContext) marshalNString2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler {
11484 _ = sel
11485 res := graphql.MarshalString(v)
11486 if res == graphql.Null {
11487 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
11488 ec.Errorf(ctx, "the requested element is null which the schema does not allow")
11489 }
11490 }
11491 return res
11492 }
11493
11494 func (ec *executionContext) marshalNSubjectConnection2githubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐSubjectConnection(ctx context.Context, sel ast.SelectionSet, v ent.SubjectConnection) graphql.Marshaler {
11495 return ec._SubjectConnection(ctx, sel, &v)
11496 }
11497
11498 func (ec *executionContext) marshalNSubjectConnection2ᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐSubjectConnection(ctx context.Context, sel ast.SelectionSet, v *ent.SubjectConnection) graphql.Marshaler {
11499 if v == nil {
11500 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
11501 ec.Errorf(ctx, "the requested element is null which the schema does not allow")
11502 }
11503 return graphql.Null
11504 }
11505 return ec._SubjectConnection(ctx, sel, v)
11506 }
11507
11508 func (ec *executionContext) marshalNSubjectDigest2ᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐSubjectDigest(ctx context.Context, sel ast.SelectionSet, v *ent.SubjectDigest) graphql.Marshaler {
11509 if v == nil {
11510 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
11511 ec.Errorf(ctx, "the requested element is null which the schema does not allow")
11512 }
11513 return graphql.Null
11514 }
11515 return ec._SubjectDigest(ctx, sel, v)
11516 }
11517
11518 func (ec *executionContext) unmarshalNSubjectDigestWhereInput2ᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐSubjectDigestWhereInput(ctx context.Context, v any) (*ent.SubjectDigestWhereInput, error) {
11519 res, err := ec.unmarshalInputSubjectDigestWhereInput(ctx, v)
11520 return &res, graphql.ErrorOnPath(ctx, err)
11521 }
11522
11523 func (ec *executionContext) unmarshalNSubjectOrderField2ᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐSubjectOrderField(ctx context.Context, v any) (*ent.SubjectOrderField, error) {
11524 var res = new(ent.SubjectOrderField)
11525 err := res.UnmarshalGQL(v)
11526 return res, graphql.ErrorOnPath(ctx, err)
11527 }
11528
11529 func (ec *executionContext) marshalNSubjectOrderField2ᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐSubjectOrderField(ctx context.Context, sel ast.SelectionSet, v *ent.SubjectOrderField) graphql.Marshaler {
11530 if v == nil {
11531 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
11532 ec.Errorf(ctx, "the requested element is null which the schema does not allow")
11533 }
11534 return graphql.Null
11535 }
11536 return v
11537 }
11538
11539 func (ec *executionContext) unmarshalNSubjectWhereInput2ᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐSubjectWhereInput(ctx context.Context, v any) (*ent.SubjectWhereInput, error) {
11540 res, err := ec.unmarshalInputSubjectWhereInput(ctx, v)
11541 return &res, graphql.ErrorOnPath(ctx, err)
11542 }
11543
11544 func (ec *executionContext) unmarshalNTime2timeᚐTime(ctx context.Context, v any) (time.Time, error) {
11545 res, err := graphql.UnmarshalTime(v)
11546 return res, graphql.ErrorOnPath(ctx, err)
11547 }
11548
11549 func (ec *executionContext) marshalNTime2timeᚐTime(ctx context.Context, sel ast.SelectionSet, v time.Time) graphql.Marshaler {
11550 _ = sel
11551 res := graphql.MarshalTime(v)
11552 if res == graphql.Null {
11553 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
11554 ec.Errorf(ctx, "the requested element is null which the schema does not allow")
11555 }
11556 }
11557 return res
11558 }
11559
11560 func (ec *executionContext) marshalNTimestamp2ᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐTimestamp(ctx context.Context, sel ast.SelectionSet, v *ent.Timestamp) graphql.Marshaler {
11561 if v == nil {
11562 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
11563 ec.Errorf(ctx, "the requested element is null which the schema does not allow")
11564 }
11565 return graphql.Null
11566 }
11567 return ec._Timestamp(ctx, sel, v)
11568 }
11569
11570 func (ec *executionContext) unmarshalNTimestampWhereInput2ᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐTimestampWhereInput(ctx context.Context, v any) (*ent.TimestampWhereInput, error) {
11571 res, err := ec.unmarshalInputTimestampWhereInput(ctx, v)
11572 return &res, graphql.ErrorOnPath(ctx, err)
11573 }
11574
11575 func (ec *executionContext) marshalN__Directive2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirective(ctx context.Context, sel ast.SelectionSet, v introspection.Directive) graphql.Marshaler {
11576 return ec.___Directive(ctx, sel, &v)
11577 }
11578
11579 func (ec *executionContext) marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirectiveᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Directive) graphql.Marshaler {
11580 ret := make(graphql.Array, len(v))
11581 var wg sync.WaitGroup
11582 isLen1 := len(v) == 1
11583 if !isLen1 {
11584 wg.Add(len(v))
11585 }
11586 for i := range v {
11587 i := i
11588 fc := &graphql.FieldContext{
11589 Index: &i,
11590 Result: &v[i],
11591 }
11592 ctx := graphql.WithFieldContext(ctx, fc)
11593 f := func(i int) {
11594 defer func() {
11595 if r := recover(); r != nil {
11596 ec.Error(ctx, ec.Recover(ctx, r))
11597 ret = nil
11598 }
11599 }()
11600 if !isLen1 {
11601 defer wg.Done()
11602 }
11603 ret[i] = ec.marshalN__Directive2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirective(ctx, sel, v[i])
11604 }
11605 if isLen1 {
11606 f(i)
11607 } else {
11608 go f(i)
11609 }
11610
11611 }
11612 wg.Wait()
11613
11614 for _, e := range ret {
11615 if e == graphql.Null {
11616 return graphql.Null
11617 }
11618 }
11619
11620 return ret
11621 }
11622
11623 func (ec *executionContext) unmarshalN__DirectiveLocation2string(ctx context.Context, v any) (string, error) {
11624 res, err := graphql.UnmarshalString(v)
11625 return res, graphql.ErrorOnPath(ctx, err)
11626 }
11627
11628 func (ec *executionContext) marshalN__DirectiveLocation2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler {
11629 _ = sel
11630 res := graphql.MarshalString(v)
11631 if res == graphql.Null {
11632 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
11633 ec.Errorf(ctx, "the requested element is null which the schema does not allow")
11634 }
11635 }
11636 return res
11637 }
11638
11639 func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, v any) ([]string, error) {
11640 var vSlice []any
11641 vSlice = graphql.CoerceList(v)
11642 var err error
11643 res := make([]string, len(vSlice))
11644 for i := range vSlice {
11645 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i))
11646 res[i], err = ec.unmarshalN__DirectiveLocation2string(ctx, vSlice[i])
11647 if err != nil {
11648 return nil, err
11649 }
11650 }
11651 return res, nil
11652 }
11653
11654 func (ec *executionContext) marshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, sel ast.SelectionSet, v []string) graphql.Marshaler {
11655 ret := make(graphql.Array, len(v))
11656 var wg sync.WaitGroup
11657 isLen1 := len(v) == 1
11658 if !isLen1 {
11659 wg.Add(len(v))
11660 }
11661 for i := range v {
11662 i := i
11663 fc := &graphql.FieldContext{
11664 Index: &i,
11665 Result: &v[i],
11666 }
11667 ctx := graphql.WithFieldContext(ctx, fc)
11668 f := func(i int) {
11669 defer func() {
11670 if r := recover(); r != nil {
11671 ec.Error(ctx, ec.Recover(ctx, r))
11672 ret = nil
11673 }
11674 }()
11675 if !isLen1 {
11676 defer wg.Done()
11677 }
11678 ret[i] = ec.marshalN__DirectiveLocation2string(ctx, sel, v[i])
11679 }
11680 if isLen1 {
11681 f(i)
11682 } else {
11683 go f(i)
11684 }
11685
11686 }
11687 wg.Wait()
11688
11689 for _, e := range ret {
11690 if e == graphql.Null {
11691 return graphql.Null
11692 }
11693 }
11694
11695 return ret
11696 }
11697
11698 func (ec *executionContext) marshalN__EnumValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValue(ctx context.Context, sel ast.SelectionSet, v introspection.EnumValue) graphql.Marshaler {
11699 return ec.___EnumValue(ctx, sel, &v)
11700 }
11701
11702 func (ec *executionContext) marshalN__Field2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐField(ctx context.Context, sel ast.SelectionSet, v introspection.Field) graphql.Marshaler {
11703 return ec.___Field(ctx, sel, &v)
11704 }
11705
11706 func (ec *executionContext) marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx context.Context, sel ast.SelectionSet, v introspection.InputValue) graphql.Marshaler {
11707 return ec.___InputValue(ctx, sel, &v)
11708 }
11709
11710 func (ec *executionContext) marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.InputValue) graphql.Marshaler {
11711 ret := make(graphql.Array, len(v))
11712 var wg sync.WaitGroup
11713 isLen1 := len(v) == 1
11714 if !isLen1 {
11715 wg.Add(len(v))
11716 }
11717 for i := range v {
11718 i := i
11719 fc := &graphql.FieldContext{
11720 Index: &i,
11721 Result: &v[i],
11722 }
11723 ctx := graphql.WithFieldContext(ctx, fc)
11724 f := func(i int) {
11725 defer func() {
11726 if r := recover(); r != nil {
11727 ec.Error(ctx, ec.Recover(ctx, r))
11728 ret = nil
11729 }
11730 }()
11731 if !isLen1 {
11732 defer wg.Done()
11733 }
11734 ret[i] = ec.marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx, sel, v[i])
11735 }
11736 if isLen1 {
11737 f(i)
11738 } else {
11739 go f(i)
11740 }
11741
11742 }
11743 wg.Wait()
11744
11745 for _, e := range ret {
11746 if e == graphql.Null {
11747 return graphql.Null
11748 }
11749 }
11750
11751 return ret
11752 }
11753
11754 func (ec *executionContext) marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx context.Context, sel ast.SelectionSet, v introspection.Type) graphql.Marshaler {
11755 return ec.___Type(ctx, sel, &v)
11756 }
11757
11758 func (ec *executionContext) marshalN__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Type) graphql.Marshaler {
11759 ret := make(graphql.Array, len(v))
11760 var wg sync.WaitGroup
11761 isLen1 := len(v) == 1
11762 if !isLen1 {
11763 wg.Add(len(v))
11764 }
11765 for i := range v {
11766 i := i
11767 fc := &graphql.FieldContext{
11768 Index: &i,
11769 Result: &v[i],
11770 }
11771 ctx := graphql.WithFieldContext(ctx, fc)
11772 f := func(i int) {
11773 defer func() {
11774 if r := recover(); r != nil {
11775 ec.Error(ctx, ec.Recover(ctx, r))
11776 ret = nil
11777 }
11778 }()
11779 if !isLen1 {
11780 defer wg.Done()
11781 }
11782 ret[i] = ec.marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, sel, v[i])
11783 }
11784 if isLen1 {
11785 f(i)
11786 } else {
11787 go f(i)
11788 }
11789
11790 }
11791 wg.Wait()
11792
11793 for _, e := range ret {
11794 if e == graphql.Null {
11795 return graphql.Null
11796 }
11797 }
11798
11799 return ret
11800 }
11801
11802 func (ec *executionContext) marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx context.Context, sel ast.SelectionSet, v *introspection.Type) graphql.Marshaler {
11803 if v == nil {
11804 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
11805 ec.Errorf(ctx, "the requested element is null which the schema does not allow")
11806 }
11807 return graphql.Null
11808 }
11809 return ec.___Type(ctx, sel, v)
11810 }
11811
11812 func (ec *executionContext) unmarshalN__TypeKind2string(ctx context.Context, v any) (string, error) {
11813 res, err := graphql.UnmarshalString(v)
11814 return res, graphql.ErrorOnPath(ctx, err)
11815 }
11816
11817 func (ec *executionContext) marshalN__TypeKind2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler {
11818 _ = sel
11819 res := graphql.MarshalString(v)
11820 if res == graphql.Null {
11821 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
11822 ec.Errorf(ctx, "the requested element is null which the schema does not allow")
11823 }
11824 }
11825 return res
11826 }
11827
11828 func (ec *executionContext) marshalOAttestation2ᚕᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐAttestationᚄ(ctx context.Context, sel ast.SelectionSet, v []*ent.Attestation) graphql.Marshaler {
11829 if v == nil {
11830 return graphql.Null
11831 }
11832 ret := make(graphql.Array, len(v))
11833 var wg sync.WaitGroup
11834 isLen1 := len(v) == 1
11835 if !isLen1 {
11836 wg.Add(len(v))
11837 }
11838 for i := range v {
11839 i := i
11840 fc := &graphql.FieldContext{
11841 Index: &i,
11842 Result: &v[i],
11843 }
11844 ctx := graphql.WithFieldContext(ctx, fc)
11845 f := func(i int) {
11846 defer func() {
11847 if r := recover(); r != nil {
11848 ec.Error(ctx, ec.Recover(ctx, r))
11849 ret = nil
11850 }
11851 }()
11852 if !isLen1 {
11853 defer wg.Done()
11854 }
11855 ret[i] = ec.marshalNAttestation2ᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐAttestation(ctx, sel, v[i])
11856 }
11857 if isLen1 {
11858 f(i)
11859 } else {
11860 go f(i)
11861 }
11862
11863 }
11864 wg.Wait()
11865
11866 for _, e := range ret {
11867 if e == graphql.Null {
11868 return graphql.Null
11869 }
11870 }
11871
11872 return ret
11873 }
11874
11875 func (ec *executionContext) marshalOAttestationCollection2ᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐAttestationCollection(ctx context.Context, sel ast.SelectionSet, v *ent.AttestationCollection) graphql.Marshaler {
11876 if v == nil {
11877 return graphql.Null
11878 }
11879 return ec._AttestationCollection(ctx, sel, v)
11880 }
11881
11882 func (ec *executionContext) unmarshalOAttestationCollectionWhereInput2ᚕᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐAttestationCollectionWhereInputᚄ(ctx context.Context, v any) ([]*ent.AttestationCollectionWhereInput, error) {
11883 if v == nil {
11884 return nil, nil
11885 }
11886 var vSlice []any
11887 vSlice = graphql.CoerceList(v)
11888 var err error
11889 res := make([]*ent.AttestationCollectionWhereInput, len(vSlice))
11890 for i := range vSlice {
11891 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i))
11892 res[i], err = ec.unmarshalNAttestationCollectionWhereInput2ᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐAttestationCollectionWhereInput(ctx, vSlice[i])
11893 if err != nil {
11894 return nil, err
11895 }
11896 }
11897 return res, nil
11898 }
11899
11900 func (ec *executionContext) unmarshalOAttestationCollectionWhereInput2ᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐAttestationCollectionWhereInput(ctx context.Context, v any) (*ent.AttestationCollectionWhereInput, error) {
11901 if v == nil {
11902 return nil, nil
11903 }
11904 res, err := ec.unmarshalInputAttestationCollectionWhereInput(ctx, v)
11905 return &res, graphql.ErrorOnPath(ctx, err)
11906 }
11907
11908 func (ec *executionContext) marshalOAttestationPolicy2ᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐAttestationPolicy(ctx context.Context, sel ast.SelectionSet, v *ent.AttestationPolicy) graphql.Marshaler {
11909 if v == nil {
11910 return graphql.Null
11911 }
11912 return ec._AttestationPolicy(ctx, sel, v)
11913 }
11914
11915 func (ec *executionContext) marshalOAttestationPolicyEdge2ᚕᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐAttestationPolicyEdge(ctx context.Context, sel ast.SelectionSet, v []*ent.AttestationPolicyEdge) graphql.Marshaler {
11916 if v == nil {
11917 return graphql.Null
11918 }
11919 ret := make(graphql.Array, len(v))
11920 var wg sync.WaitGroup
11921 isLen1 := len(v) == 1
11922 if !isLen1 {
11923 wg.Add(len(v))
11924 }
11925 for i := range v {
11926 i := i
11927 fc := &graphql.FieldContext{
11928 Index: &i,
11929 Result: &v[i],
11930 }
11931 ctx := graphql.WithFieldContext(ctx, fc)
11932 f := func(i int) {
11933 defer func() {
11934 if r := recover(); r != nil {
11935 ec.Error(ctx, ec.Recover(ctx, r))
11936 ret = nil
11937 }
11938 }()
11939 if !isLen1 {
11940 defer wg.Done()
11941 }
11942 ret[i] = ec.marshalOAttestationPolicyEdge2ᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐAttestationPolicyEdge(ctx, sel, v[i])
11943 }
11944 if isLen1 {
11945 f(i)
11946 } else {
11947 go f(i)
11948 }
11949
11950 }
11951 wg.Wait()
11952
11953 return ret
11954 }
11955
11956 func (ec *executionContext) marshalOAttestationPolicyEdge2ᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐAttestationPolicyEdge(ctx context.Context, sel ast.SelectionSet, v *ent.AttestationPolicyEdge) graphql.Marshaler {
11957 if v == nil {
11958 return graphql.Null
11959 }
11960 return ec._AttestationPolicyEdge(ctx, sel, v)
11961 }
11962
11963 func (ec *executionContext) unmarshalOAttestationPolicyWhereInput2ᚕᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐAttestationPolicyWhereInputᚄ(ctx context.Context, v any) ([]*ent.AttestationPolicyWhereInput, error) {
11964 if v == nil {
11965 return nil, nil
11966 }
11967 var vSlice []any
11968 vSlice = graphql.CoerceList(v)
11969 var err error
11970 res := make([]*ent.AttestationPolicyWhereInput, len(vSlice))
11971 for i := range vSlice {
11972 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i))
11973 res[i], err = ec.unmarshalNAttestationPolicyWhereInput2ᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐAttestationPolicyWhereInput(ctx, vSlice[i])
11974 if err != nil {
11975 return nil, err
11976 }
11977 }
11978 return res, nil
11979 }
11980
11981 func (ec *executionContext) unmarshalOAttestationPolicyWhereInput2ᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐAttestationPolicyWhereInput(ctx context.Context, v any) (*ent.AttestationPolicyWhereInput, error) {
11982 if v == nil {
11983 return nil, nil
11984 }
11985 res, err := ec.unmarshalInputAttestationPolicyWhereInput(ctx, v)
11986 return &res, graphql.ErrorOnPath(ctx, err)
11987 }
11988
11989 func (ec *executionContext) unmarshalOAttestationWhereInput2ᚕᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐAttestationWhereInputᚄ(ctx context.Context, v any) ([]*ent.AttestationWhereInput, error) {
11990 if v == nil {
11991 return nil, nil
11992 }
11993 var vSlice []any
11994 vSlice = graphql.CoerceList(v)
11995 var err error
11996 res := make([]*ent.AttestationWhereInput, len(vSlice))
11997 for i := range vSlice {
11998 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i))
11999 res[i], err = ec.unmarshalNAttestationWhereInput2ᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐAttestationWhereInput(ctx, vSlice[i])
12000 if err != nil {
12001 return nil, err
12002 }
12003 }
12004 return res, nil
12005 }
12006
12007 func (ec *executionContext) unmarshalOAttestationWhereInput2ᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐAttestationWhereInput(ctx context.Context, v any) (*ent.AttestationWhereInput, error) {
12008 if v == nil {
12009 return nil, nil
12010 }
12011 res, err := ec.unmarshalInputAttestationWhereInput(ctx, v)
12012 return &res, graphql.ErrorOnPath(ctx, err)
12013 }
12014
12015 func (ec *executionContext) unmarshalOBoolean2bool(ctx context.Context, v any) (bool, error) {
12016 res, err := graphql.UnmarshalBoolean(v)
12017 return res, graphql.ErrorOnPath(ctx, err)
12018 }
12019
12020 func (ec *executionContext) marshalOBoolean2bool(ctx context.Context, sel ast.SelectionSet, v bool) graphql.Marshaler {
12021 _ = sel
12022 _ = ctx
12023 res := graphql.MarshalBoolean(v)
12024 return res
12025 }
12026
12027 func (ec *executionContext) unmarshalOBoolean2ᚖbool(ctx context.Context, v any) (*bool, error) {
12028 if v == nil {
12029 return nil, nil
12030 }
12031 res, err := graphql.UnmarshalBoolean(v)
12032 return &res, graphql.ErrorOnPath(ctx, err)
12033 }
12034
12035 func (ec *executionContext) marshalOBoolean2ᚖbool(ctx context.Context, sel ast.SelectionSet, v *bool) graphql.Marshaler {
12036 if v == nil {
12037 return graphql.Null
12038 }
12039 _ = sel
12040 _ = ctx
12041 res := graphql.MarshalBoolean(*v)
12042 return res
12043 }
12044
12045 func (ec *executionContext) unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx context.Context, v any) (*entgql.Cursor[uuid.UUID], error) {
12046 if v == nil {
12047 return nil, nil
12048 }
12049 var res = new(entgql.Cursor[uuid.UUID])
12050 err := res.UnmarshalGQL(v)
12051 return res, graphql.ErrorOnPath(ctx, err)
12052 }
12053
12054 func (ec *executionContext) marshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx context.Context, sel ast.SelectionSet, v *entgql.Cursor[uuid.UUID]) graphql.Marshaler {
12055 if v == nil {
12056 return graphql.Null
12057 }
12058 return v
12059 }
12060
12061 func (ec *executionContext) marshalODsse2ᚕᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐDsseᚄ(ctx context.Context, sel ast.SelectionSet, v []*ent.Dsse) graphql.Marshaler {
12062 if v == nil {
12063 return graphql.Null
12064 }
12065 ret := make(graphql.Array, len(v))
12066 var wg sync.WaitGroup
12067 isLen1 := len(v) == 1
12068 if !isLen1 {
12069 wg.Add(len(v))
12070 }
12071 for i := range v {
12072 i := i
12073 fc := &graphql.FieldContext{
12074 Index: &i,
12075 Result: &v[i],
12076 }
12077 ctx := graphql.WithFieldContext(ctx, fc)
12078 f := func(i int) {
12079 defer func() {
12080 if r := recover(); r != nil {
12081 ec.Error(ctx, ec.Recover(ctx, r))
12082 ret = nil
12083 }
12084 }()
12085 if !isLen1 {
12086 defer wg.Done()
12087 }
12088 ret[i] = ec.marshalNDsse2ᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐDsse(ctx, sel, v[i])
12089 }
12090 if isLen1 {
12091 f(i)
12092 } else {
12093 go f(i)
12094 }
12095
12096 }
12097 wg.Wait()
12098
12099 for _, e := range ret {
12100 if e == graphql.Null {
12101 return graphql.Null
12102 }
12103 }
12104
12105 return ret
12106 }
12107
12108 func (ec *executionContext) marshalODsse2ᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐDsse(ctx context.Context, sel ast.SelectionSet, v *ent.Dsse) graphql.Marshaler {
12109 if v == nil {
12110 return graphql.Null
12111 }
12112 return ec._Dsse(ctx, sel, v)
12113 }
12114
12115 func (ec *executionContext) marshalODsseEdge2ᚕᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐDsseEdge(ctx context.Context, sel ast.SelectionSet, v []*ent.DsseEdge) graphql.Marshaler {
12116 if v == nil {
12117 return graphql.Null
12118 }
12119 ret := make(graphql.Array, len(v))
12120 var wg sync.WaitGroup
12121 isLen1 := len(v) == 1
12122 if !isLen1 {
12123 wg.Add(len(v))
12124 }
12125 for i := range v {
12126 i := i
12127 fc := &graphql.FieldContext{
12128 Index: &i,
12129 Result: &v[i],
12130 }
12131 ctx := graphql.WithFieldContext(ctx, fc)
12132 f := func(i int) {
12133 defer func() {
12134 if r := recover(); r != nil {
12135 ec.Error(ctx, ec.Recover(ctx, r))
12136 ret = nil
12137 }
12138 }()
12139 if !isLen1 {
12140 defer wg.Done()
12141 }
12142 ret[i] = ec.marshalODsseEdge2ᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐDsseEdge(ctx, sel, v[i])
12143 }
12144 if isLen1 {
12145 f(i)
12146 } else {
12147 go f(i)
12148 }
12149
12150 }
12151 wg.Wait()
12152
12153 return ret
12154 }
12155
12156 func (ec *executionContext) marshalODsseEdge2ᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐDsseEdge(ctx context.Context, sel ast.SelectionSet, v *ent.DsseEdge) graphql.Marshaler {
12157 if v == nil {
12158 return graphql.Null
12159 }
12160 return ec._DsseEdge(ctx, sel, v)
12161 }
12162
12163 func (ec *executionContext) unmarshalODsseOrder2ᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐDsseOrder(ctx context.Context, v any) (*ent.DsseOrder, error) {
12164 if v == nil {
12165 return nil, nil
12166 }
12167 res, err := ec.unmarshalInputDsseOrder(ctx, v)
12168 return &res, graphql.ErrorOnPath(ctx, err)
12169 }
12170
12171 func (ec *executionContext) unmarshalODsseWhereInput2ᚕᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐDsseWhereInputᚄ(ctx context.Context, v any) ([]*ent.DsseWhereInput, error) {
12172 if v == nil {
12173 return nil, nil
12174 }
12175 var vSlice []any
12176 vSlice = graphql.CoerceList(v)
12177 var err error
12178 res := make([]*ent.DsseWhereInput, len(vSlice))
12179 for i := range vSlice {
12180 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i))
12181 res[i], err = ec.unmarshalNDsseWhereInput2ᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐDsseWhereInput(ctx, vSlice[i])
12182 if err != nil {
12183 return nil, err
12184 }
12185 }
12186 return res, nil
12187 }
12188
12189 func (ec *executionContext) unmarshalODsseWhereInput2ᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐDsseWhereInput(ctx context.Context, v any) (*ent.DsseWhereInput, error) {
12190 if v == nil {
12191 return nil, nil
12192 }
12193 res, err := ec.unmarshalInputDsseWhereInput(ctx, v)
12194 return &res, graphql.ErrorOnPath(ctx, err)
12195 }
12196
12197 func (ec *executionContext) unmarshalOID2ᚕgithubᚗcomᚋgoogleᚋuuidᚐUUIDᚄ(ctx context.Context, v any) ([]uuid.UUID, error) {
12198 if v == nil {
12199 return nil, nil
12200 }
12201 var vSlice []any
12202 vSlice = graphql.CoerceList(v)
12203 var err error
12204 res := make([]uuid.UUID, len(vSlice))
12205 for i := range vSlice {
12206 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i))
12207 res[i], err = ec.unmarshalNID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, vSlice[i])
12208 if err != nil {
12209 return nil, err
12210 }
12211 }
12212 return res, nil
12213 }
12214
12215 func (ec *executionContext) marshalOID2ᚕgithubᚗcomᚋgoogleᚋuuidᚐUUIDᚄ(ctx context.Context, sel ast.SelectionSet, v []uuid.UUID) graphql.Marshaler {
12216 if v == nil {
12217 return graphql.Null
12218 }
12219 ret := make(graphql.Array, len(v))
12220 for i := range v {
12221 ret[i] = ec.marshalNID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, sel, v[i])
12222 }
12223
12224 for _, e := range ret {
12225 if e == graphql.Null {
12226 return graphql.Null
12227 }
12228 }
12229
12230 return ret
12231 }
12232
12233 func (ec *executionContext) unmarshalOID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx context.Context, v any) (*uuid.UUID, error) {
12234 if v == nil {
12235 return nil, nil
12236 }
12237 res, err := uuidgql.UnmarshalUUID(v)
12238 return &res, graphql.ErrorOnPath(ctx, err)
12239 }
12240
12241 func (ec *executionContext) marshalOID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx context.Context, sel ast.SelectionSet, v *uuid.UUID) graphql.Marshaler {
12242 if v == nil {
12243 return graphql.Null
12244 }
12245 _ = sel
12246 _ = ctx
12247 res := uuidgql.MarshalUUID(*v)
12248 return res
12249 }
12250
12251 func (ec *executionContext) unmarshalOInt2ᚖint(ctx context.Context, v any) (*int, error) {
12252 if v == nil {
12253 return nil, nil
12254 }
12255 res, err := graphql.UnmarshalInt(v)
12256 return &res, graphql.ErrorOnPath(ctx, err)
12257 }
12258
12259 func (ec *executionContext) marshalOInt2ᚖint(ctx context.Context, sel ast.SelectionSet, v *int) graphql.Marshaler {
12260 if v == nil {
12261 return graphql.Null
12262 }
12263 _ = sel
12264 _ = ctx
12265 res := graphql.MarshalInt(*v)
12266 return res
12267 }
12268
12269 func (ec *executionContext) marshalONode2githubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐNoder(ctx context.Context, sel ast.SelectionSet, v ent.Noder) graphql.Marshaler {
12270 if v == nil {
12271 return graphql.Null
12272 }
12273 return ec._Node(ctx, sel, v)
12274 }
12275
12276 func (ec *executionContext) marshalOPayloadDigest2ᚕᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐPayloadDigestᚄ(ctx context.Context, sel ast.SelectionSet, v []*ent.PayloadDigest) graphql.Marshaler {
12277 if v == nil {
12278 return graphql.Null
12279 }
12280 ret := make(graphql.Array, len(v))
12281 var wg sync.WaitGroup
12282 isLen1 := len(v) == 1
12283 if !isLen1 {
12284 wg.Add(len(v))
12285 }
12286 for i := range v {
12287 i := i
12288 fc := &graphql.FieldContext{
12289 Index: &i,
12290 Result: &v[i],
12291 }
12292 ctx := graphql.WithFieldContext(ctx, fc)
12293 f := func(i int) {
12294 defer func() {
12295 if r := recover(); r != nil {
12296 ec.Error(ctx, ec.Recover(ctx, r))
12297 ret = nil
12298 }
12299 }()
12300 if !isLen1 {
12301 defer wg.Done()
12302 }
12303 ret[i] = ec.marshalNPayloadDigest2ᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐPayloadDigest(ctx, sel, v[i])
12304 }
12305 if isLen1 {
12306 f(i)
12307 } else {
12308 go f(i)
12309 }
12310
12311 }
12312 wg.Wait()
12313
12314 for _, e := range ret {
12315 if e == graphql.Null {
12316 return graphql.Null
12317 }
12318 }
12319
12320 return ret
12321 }
12322
12323 func (ec *executionContext) unmarshalOPayloadDigestWhereInput2ᚕᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐPayloadDigestWhereInputᚄ(ctx context.Context, v any) ([]*ent.PayloadDigestWhereInput, error) {
12324 if v == nil {
12325 return nil, nil
12326 }
12327 var vSlice []any
12328 vSlice = graphql.CoerceList(v)
12329 var err error
12330 res := make([]*ent.PayloadDigestWhereInput, len(vSlice))
12331 for i := range vSlice {
12332 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i))
12333 res[i], err = ec.unmarshalNPayloadDigestWhereInput2ᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐPayloadDigestWhereInput(ctx, vSlice[i])
12334 if err != nil {
12335 return nil, err
12336 }
12337 }
12338 return res, nil
12339 }
12340
12341 func (ec *executionContext) unmarshalOPayloadDigestWhereInput2ᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐPayloadDigestWhereInput(ctx context.Context, v any) (*ent.PayloadDigestWhereInput, error) {
12342 if v == nil {
12343 return nil, nil
12344 }
12345 res, err := ec.unmarshalInputPayloadDigestWhereInput(ctx, v)
12346 return &res, graphql.ErrorOnPath(ctx, err)
12347 }
12348
12349 func (ec *executionContext) marshalOSignature2ᚕᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐSignatureᚄ(ctx context.Context, sel ast.SelectionSet, v []*ent.Signature) graphql.Marshaler {
12350 if v == nil {
12351 return graphql.Null
12352 }
12353 ret := make(graphql.Array, len(v))
12354 var wg sync.WaitGroup
12355 isLen1 := len(v) == 1
12356 if !isLen1 {
12357 wg.Add(len(v))
12358 }
12359 for i := range v {
12360 i := i
12361 fc := &graphql.FieldContext{
12362 Index: &i,
12363 Result: &v[i],
12364 }
12365 ctx := graphql.WithFieldContext(ctx, fc)
12366 f := func(i int) {
12367 defer func() {
12368 if r := recover(); r != nil {
12369 ec.Error(ctx, ec.Recover(ctx, r))
12370 ret = nil
12371 }
12372 }()
12373 if !isLen1 {
12374 defer wg.Done()
12375 }
12376 ret[i] = ec.marshalNSignature2ᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐSignature(ctx, sel, v[i])
12377 }
12378 if isLen1 {
12379 f(i)
12380 } else {
12381 go f(i)
12382 }
12383
12384 }
12385 wg.Wait()
12386
12387 for _, e := range ret {
12388 if e == graphql.Null {
12389 return graphql.Null
12390 }
12391 }
12392
12393 return ret
12394 }
12395
12396 func (ec *executionContext) marshalOSignature2ᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐSignature(ctx context.Context, sel ast.SelectionSet, v *ent.Signature) graphql.Marshaler {
12397 if v == nil {
12398 return graphql.Null
12399 }
12400 return ec._Signature(ctx, sel, v)
12401 }
12402
12403 func (ec *executionContext) unmarshalOSignatureWhereInput2ᚕᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐSignatureWhereInputᚄ(ctx context.Context, v any) ([]*ent.SignatureWhereInput, error) {
12404 if v == nil {
12405 return nil, nil
12406 }
12407 var vSlice []any
12408 vSlice = graphql.CoerceList(v)
12409 var err error
12410 res := make([]*ent.SignatureWhereInput, len(vSlice))
12411 for i := range vSlice {
12412 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i))
12413 res[i], err = ec.unmarshalNSignatureWhereInput2ᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐSignatureWhereInput(ctx, vSlice[i])
12414 if err != nil {
12415 return nil, err
12416 }
12417 }
12418 return res, nil
12419 }
12420
12421 func (ec *executionContext) unmarshalOSignatureWhereInput2ᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐSignatureWhereInput(ctx context.Context, v any) (*ent.SignatureWhereInput, error) {
12422 if v == nil {
12423 return nil, nil
12424 }
12425 res, err := ec.unmarshalInputSignatureWhereInput(ctx, v)
12426 return &res, graphql.ErrorOnPath(ctx, err)
12427 }
12428
12429 func (ec *executionContext) marshalOStatement2ᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐStatement(ctx context.Context, sel ast.SelectionSet, v *ent.Statement) graphql.Marshaler {
12430 if v == nil {
12431 return graphql.Null
12432 }
12433 return ec._Statement(ctx, sel, v)
12434 }
12435
12436 func (ec *executionContext) unmarshalOStatementWhereInput2ᚕᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐStatementWhereInputᚄ(ctx context.Context, v any) ([]*ent.StatementWhereInput, error) {
12437 if v == nil {
12438 return nil, nil
12439 }
12440 var vSlice []any
12441 vSlice = graphql.CoerceList(v)
12442 var err error
12443 res := make([]*ent.StatementWhereInput, len(vSlice))
12444 for i := range vSlice {
12445 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i))
12446 res[i], err = ec.unmarshalNStatementWhereInput2ᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐStatementWhereInput(ctx, vSlice[i])
12447 if err != nil {
12448 return nil, err
12449 }
12450 }
12451 return res, nil
12452 }
12453
12454 func (ec *executionContext) unmarshalOStatementWhereInput2ᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐStatementWhereInput(ctx context.Context, v any) (*ent.StatementWhereInput, error) {
12455 if v == nil {
12456 return nil, nil
12457 }
12458 res, err := ec.unmarshalInputStatementWhereInput(ctx, v)
12459 return &res, graphql.ErrorOnPath(ctx, err)
12460 }
12461
12462 func (ec *executionContext) unmarshalOString2ᚕstringᚄ(ctx context.Context, v any) ([]string, error) {
12463 if v == nil {
12464 return nil, nil
12465 }
12466 var vSlice []any
12467 vSlice = graphql.CoerceList(v)
12468 var err error
12469 res := make([]string, len(vSlice))
12470 for i := range vSlice {
12471 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i))
12472 res[i], err = ec.unmarshalNString2string(ctx, vSlice[i])
12473 if err != nil {
12474 return nil, err
12475 }
12476 }
12477 return res, nil
12478 }
12479
12480 func (ec *executionContext) marshalOString2ᚕstringᚄ(ctx context.Context, sel ast.SelectionSet, v []string) graphql.Marshaler {
12481 if v == nil {
12482 return graphql.Null
12483 }
12484 ret := make(graphql.Array, len(v))
12485 for i := range v {
12486 ret[i] = ec.marshalNString2string(ctx, sel, v[i])
12487 }
12488
12489 for _, e := range ret {
12490 if e == graphql.Null {
12491 return graphql.Null
12492 }
12493 }
12494
12495 return ret
12496 }
12497
12498 func (ec *executionContext) unmarshalOString2ᚖstring(ctx context.Context, v any) (*string, error) {
12499 if v == nil {
12500 return nil, nil
12501 }
12502 res, err := graphql.UnmarshalString(v)
12503 return &res, graphql.ErrorOnPath(ctx, err)
12504 }
12505
12506 func (ec *executionContext) marshalOString2ᚖstring(ctx context.Context, sel ast.SelectionSet, v *string) graphql.Marshaler {
12507 if v == nil {
12508 return graphql.Null
12509 }
12510 _ = sel
12511 _ = ctx
12512 res := graphql.MarshalString(*v)
12513 return res
12514 }
12515
12516 func (ec *executionContext) marshalOSubject2ᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐSubject(ctx context.Context, sel ast.SelectionSet, v *ent.Subject) graphql.Marshaler {
12517 if v == nil {
12518 return graphql.Null
12519 }
12520 return ec._Subject(ctx, sel, v)
12521 }
12522
12523 func (ec *executionContext) marshalOSubjectDigest2ᚕᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐSubjectDigestᚄ(ctx context.Context, sel ast.SelectionSet, v []*ent.SubjectDigest) graphql.Marshaler {
12524 if v == nil {
12525 return graphql.Null
12526 }
12527 ret := make(graphql.Array, len(v))
12528 var wg sync.WaitGroup
12529 isLen1 := len(v) == 1
12530 if !isLen1 {
12531 wg.Add(len(v))
12532 }
12533 for i := range v {
12534 i := i
12535 fc := &graphql.FieldContext{
12536 Index: &i,
12537 Result: &v[i],
12538 }
12539 ctx := graphql.WithFieldContext(ctx, fc)
12540 f := func(i int) {
12541 defer func() {
12542 if r := recover(); r != nil {
12543 ec.Error(ctx, ec.Recover(ctx, r))
12544 ret = nil
12545 }
12546 }()
12547 if !isLen1 {
12548 defer wg.Done()
12549 }
12550 ret[i] = ec.marshalNSubjectDigest2ᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐSubjectDigest(ctx, sel, v[i])
12551 }
12552 if isLen1 {
12553 f(i)
12554 } else {
12555 go f(i)
12556 }
12557
12558 }
12559 wg.Wait()
12560
12561 for _, e := range ret {
12562 if e == graphql.Null {
12563 return graphql.Null
12564 }
12565 }
12566
12567 return ret
12568 }
12569
12570 func (ec *executionContext) unmarshalOSubjectDigestWhereInput2ᚕᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐSubjectDigestWhereInputᚄ(ctx context.Context, v any) ([]*ent.SubjectDigestWhereInput, error) {
12571 if v == nil {
12572 return nil, nil
12573 }
12574 var vSlice []any
12575 vSlice = graphql.CoerceList(v)
12576 var err error
12577 res := make([]*ent.SubjectDigestWhereInput, len(vSlice))
12578 for i := range vSlice {
12579 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i))
12580 res[i], err = ec.unmarshalNSubjectDigestWhereInput2ᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐSubjectDigestWhereInput(ctx, vSlice[i])
12581 if err != nil {
12582 return nil, err
12583 }
12584 }
12585 return res, nil
12586 }
12587
12588 func (ec *executionContext) unmarshalOSubjectDigestWhereInput2ᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐSubjectDigestWhereInput(ctx context.Context, v any) (*ent.SubjectDigestWhereInput, error) {
12589 if v == nil {
12590 return nil, nil
12591 }
12592 res, err := ec.unmarshalInputSubjectDigestWhereInput(ctx, v)
12593 return &res, graphql.ErrorOnPath(ctx, err)
12594 }
12595
12596 func (ec *executionContext) marshalOSubjectEdge2ᚕᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐSubjectEdge(ctx context.Context, sel ast.SelectionSet, v []*ent.SubjectEdge) graphql.Marshaler {
12597 if v == nil {
12598 return graphql.Null
12599 }
12600 ret := make(graphql.Array, len(v))
12601 var wg sync.WaitGroup
12602 isLen1 := len(v) == 1
12603 if !isLen1 {
12604 wg.Add(len(v))
12605 }
12606 for i := range v {
12607 i := i
12608 fc := &graphql.FieldContext{
12609 Index: &i,
12610 Result: &v[i],
12611 }
12612 ctx := graphql.WithFieldContext(ctx, fc)
12613 f := func(i int) {
12614 defer func() {
12615 if r := recover(); r != nil {
12616 ec.Error(ctx, ec.Recover(ctx, r))
12617 ret = nil
12618 }
12619 }()
12620 if !isLen1 {
12621 defer wg.Done()
12622 }
12623 ret[i] = ec.marshalOSubjectEdge2ᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐSubjectEdge(ctx, sel, v[i])
12624 }
12625 if isLen1 {
12626 f(i)
12627 } else {
12628 go f(i)
12629 }
12630
12631 }
12632 wg.Wait()
12633
12634 return ret
12635 }
12636
12637 func (ec *executionContext) marshalOSubjectEdge2ᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐSubjectEdge(ctx context.Context, sel ast.SelectionSet, v *ent.SubjectEdge) graphql.Marshaler {
12638 if v == nil {
12639 return graphql.Null
12640 }
12641 return ec._SubjectEdge(ctx, sel, v)
12642 }
12643
12644 func (ec *executionContext) unmarshalOSubjectOrder2ᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐSubjectOrder(ctx context.Context, v any) (*ent.SubjectOrder, error) {
12645 if v == nil {
12646 return nil, nil
12647 }
12648 res, err := ec.unmarshalInputSubjectOrder(ctx, v)
12649 return &res, graphql.ErrorOnPath(ctx, err)
12650 }
12651
12652 func (ec *executionContext) unmarshalOSubjectWhereInput2ᚕᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐSubjectWhereInputᚄ(ctx context.Context, v any) ([]*ent.SubjectWhereInput, error) {
12653 if v == nil {
12654 return nil, nil
12655 }
12656 var vSlice []any
12657 vSlice = graphql.CoerceList(v)
12658 var err error
12659 res := make([]*ent.SubjectWhereInput, len(vSlice))
12660 for i := range vSlice {
12661 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i))
12662 res[i], err = ec.unmarshalNSubjectWhereInput2ᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐSubjectWhereInput(ctx, vSlice[i])
12663 if err != nil {
12664 return nil, err
12665 }
12666 }
12667 return res, nil
12668 }
12669
12670 func (ec *executionContext) unmarshalOSubjectWhereInput2ᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐSubjectWhereInput(ctx context.Context, v any) (*ent.SubjectWhereInput, error) {
12671 if v == nil {
12672 return nil, nil
12673 }
12674 res, err := ec.unmarshalInputSubjectWhereInput(ctx, v)
12675 return &res, graphql.ErrorOnPath(ctx, err)
12676 }
12677
12678 func (ec *executionContext) unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx context.Context, v any) ([]time.Time, error) {
12679 if v == nil {
12680 return nil, nil
12681 }
12682 var vSlice []any
12683 vSlice = graphql.CoerceList(v)
12684 var err error
12685 res := make([]time.Time, len(vSlice))
12686 for i := range vSlice {
12687 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i))
12688 res[i], err = ec.unmarshalNTime2timeᚐTime(ctx, vSlice[i])
12689 if err != nil {
12690 return nil, err
12691 }
12692 }
12693 return res, nil
12694 }
12695
12696 func (ec *executionContext) marshalOTime2ᚕtimeᚐTimeᚄ(ctx context.Context, sel ast.SelectionSet, v []time.Time) graphql.Marshaler {
12697 if v == nil {
12698 return graphql.Null
12699 }
12700 ret := make(graphql.Array, len(v))
12701 for i := range v {
12702 ret[i] = ec.marshalNTime2timeᚐTime(ctx, sel, v[i])
12703 }
12704
12705 for _, e := range ret {
12706 if e == graphql.Null {
12707 return graphql.Null
12708 }
12709 }
12710
12711 return ret
12712 }
12713
12714 func (ec *executionContext) unmarshalOTime2ᚖtimeᚐTime(ctx context.Context, v any) (*time.Time, error) {
12715 if v == nil {
12716 return nil, nil
12717 }
12718 res, err := graphql.UnmarshalTime(v)
12719 return &res, graphql.ErrorOnPath(ctx, err)
12720 }
12721
12722 func (ec *executionContext) marshalOTime2ᚖtimeᚐTime(ctx context.Context, sel ast.SelectionSet, v *time.Time) graphql.Marshaler {
12723 if v == nil {
12724 return graphql.Null
12725 }
12726 _ = sel
12727 _ = ctx
12728 res := graphql.MarshalTime(*v)
12729 return res
12730 }
12731
12732 func (ec *executionContext) marshalOTimestamp2ᚕᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐTimestampᚄ(ctx context.Context, sel ast.SelectionSet, v []*ent.Timestamp) graphql.Marshaler {
12733 if v == nil {
12734 return graphql.Null
12735 }
12736 ret := make(graphql.Array, len(v))
12737 var wg sync.WaitGroup
12738 isLen1 := len(v) == 1
12739 if !isLen1 {
12740 wg.Add(len(v))
12741 }
12742 for i := range v {
12743 i := i
12744 fc := &graphql.FieldContext{
12745 Index: &i,
12746 Result: &v[i],
12747 }
12748 ctx := graphql.WithFieldContext(ctx, fc)
12749 f := func(i int) {
12750 defer func() {
12751 if r := recover(); r != nil {
12752 ec.Error(ctx, ec.Recover(ctx, r))
12753 ret = nil
12754 }
12755 }()
12756 if !isLen1 {
12757 defer wg.Done()
12758 }
12759 ret[i] = ec.marshalNTimestamp2ᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐTimestamp(ctx, sel, v[i])
12760 }
12761 if isLen1 {
12762 f(i)
12763 } else {
12764 go f(i)
12765 }
12766
12767 }
12768 wg.Wait()
12769
12770 for _, e := range ret {
12771 if e == graphql.Null {
12772 return graphql.Null
12773 }
12774 }
12775
12776 return ret
12777 }
12778
12779 func (ec *executionContext) unmarshalOTimestampWhereInput2ᚕᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐTimestampWhereInputᚄ(ctx context.Context, v any) ([]*ent.TimestampWhereInput, error) {
12780 if v == nil {
12781 return nil, nil
12782 }
12783 var vSlice []any
12784 vSlice = graphql.CoerceList(v)
12785 var err error
12786 res := make([]*ent.TimestampWhereInput, len(vSlice))
12787 for i := range vSlice {
12788 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i))
12789 res[i], err = ec.unmarshalNTimestampWhereInput2ᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐTimestampWhereInput(ctx, vSlice[i])
12790 if err != nil {
12791 return nil, err
12792 }
12793 }
12794 return res, nil
12795 }
12796
12797 func (ec *executionContext) unmarshalOTimestampWhereInput2ᚖgithubᚗcomᚋinᚑtotoᚋarchivistaᚋentᚐTimestampWhereInput(ctx context.Context, v any) (*ent.TimestampWhereInput, error) {
12798 if v == nil {
12799 return nil, nil
12800 }
12801 res, err := ec.unmarshalInputTimestampWhereInput(ctx, v)
12802 return &res, graphql.ErrorOnPath(ctx, err)
12803 }
12804
12805 func (ec *executionContext) marshalO__EnumValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValueᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.EnumValue) graphql.Marshaler {
12806 if v == nil {
12807 return graphql.Null
12808 }
12809 ret := make(graphql.Array, len(v))
12810 var wg sync.WaitGroup
12811 isLen1 := len(v) == 1
12812 if !isLen1 {
12813 wg.Add(len(v))
12814 }
12815 for i := range v {
12816 i := i
12817 fc := &graphql.FieldContext{
12818 Index: &i,
12819 Result: &v[i],
12820 }
12821 ctx := graphql.WithFieldContext(ctx, fc)
12822 f := func(i int) {
12823 defer func() {
12824 if r := recover(); r != nil {
12825 ec.Error(ctx, ec.Recover(ctx, r))
12826 ret = nil
12827 }
12828 }()
12829 if !isLen1 {
12830 defer wg.Done()
12831 }
12832 ret[i] = ec.marshalN__EnumValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValue(ctx, sel, v[i])
12833 }
12834 if isLen1 {
12835 f(i)
12836 } else {
12837 go f(i)
12838 }
12839
12840 }
12841 wg.Wait()
12842
12843 for _, e := range ret {
12844 if e == graphql.Null {
12845 return graphql.Null
12846 }
12847 }
12848
12849 return ret
12850 }
12851
12852 func (ec *executionContext) marshalO__Field2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐFieldᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Field) graphql.Marshaler {
12853 if v == nil {
12854 return graphql.Null
12855 }
12856 ret := make(graphql.Array, len(v))
12857 var wg sync.WaitGroup
12858 isLen1 := len(v) == 1
12859 if !isLen1 {
12860 wg.Add(len(v))
12861 }
12862 for i := range v {
12863 i := i
12864 fc := &graphql.FieldContext{
12865 Index: &i,
12866 Result: &v[i],
12867 }
12868 ctx := graphql.WithFieldContext(ctx, fc)
12869 f := func(i int) {
12870 defer func() {
12871 if r := recover(); r != nil {
12872 ec.Error(ctx, ec.Recover(ctx, r))
12873 ret = nil
12874 }
12875 }()
12876 if !isLen1 {
12877 defer wg.Done()
12878 }
12879 ret[i] = ec.marshalN__Field2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐField(ctx, sel, v[i])
12880 }
12881 if isLen1 {
12882 f(i)
12883 } else {
12884 go f(i)
12885 }
12886
12887 }
12888 wg.Wait()
12889
12890 for _, e := range ret {
12891 if e == graphql.Null {
12892 return graphql.Null
12893 }
12894 }
12895
12896 return ret
12897 }
12898
12899 func (ec *executionContext) marshalO__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.InputValue) graphql.Marshaler {
12900 if v == nil {
12901 return graphql.Null
12902 }
12903 ret := make(graphql.Array, len(v))
12904 var wg sync.WaitGroup
12905 isLen1 := len(v) == 1
12906 if !isLen1 {
12907 wg.Add(len(v))
12908 }
12909 for i := range v {
12910 i := i
12911 fc := &graphql.FieldContext{
12912 Index: &i,
12913 Result: &v[i],
12914 }
12915 ctx := graphql.WithFieldContext(ctx, fc)
12916 f := func(i int) {
12917 defer func() {
12918 if r := recover(); r != nil {
12919 ec.Error(ctx, ec.Recover(ctx, r))
12920 ret = nil
12921 }
12922 }()
12923 if !isLen1 {
12924 defer wg.Done()
12925 }
12926 ret[i] = ec.marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx, sel, v[i])
12927 }
12928 if isLen1 {
12929 f(i)
12930 } else {
12931 go f(i)
12932 }
12933
12934 }
12935 wg.Wait()
12936
12937 for _, e := range ret {
12938 if e == graphql.Null {
12939 return graphql.Null
12940 }
12941 }
12942
12943 return ret
12944 }
12945
12946 func (ec *executionContext) marshalO__Schema2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐSchema(ctx context.Context, sel ast.SelectionSet, v *introspection.Schema) graphql.Marshaler {
12947 if v == nil {
12948 return graphql.Null
12949 }
12950 return ec.___Schema(ctx, sel, v)
12951 }
12952
12953 func (ec *executionContext) marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Type) graphql.Marshaler {
12954 if v == nil {
12955 return graphql.Null
12956 }
12957 ret := make(graphql.Array, len(v))
12958 var wg sync.WaitGroup
12959 isLen1 := len(v) == 1
12960 if !isLen1 {
12961 wg.Add(len(v))
12962 }
12963 for i := range v {
12964 i := i
12965 fc := &graphql.FieldContext{
12966 Index: &i,
12967 Result: &v[i],
12968 }
12969 ctx := graphql.WithFieldContext(ctx, fc)
12970 f := func(i int) {
12971 defer func() {
12972 if r := recover(); r != nil {
12973 ec.Error(ctx, ec.Recover(ctx, r))
12974 ret = nil
12975 }
12976 }()
12977 if !isLen1 {
12978 defer wg.Done()
12979 }
12980 ret[i] = ec.marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, sel, v[i])
12981 }
12982 if isLen1 {
12983 f(i)
12984 } else {
12985 go f(i)
12986 }
12987
12988 }
12989 wg.Wait()
12990
12991 for _, e := range ret {
12992 if e == graphql.Null {
12993 return graphql.Null
12994 }
12995 }
12996
12997 return ret
12998 }
12999
13000 func (ec *executionContext) marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx context.Context, sel ast.SelectionSet, v *introspection.Type) graphql.Marshaler {
13001 if v == nil {
13002 return graphql.Null
13003 }
13004 return ec.___Type(ctx, sel, v)
13005 }
13006
13007 // endregion ***************************** type.gotpl *****************************