board_columns.generated.go

  1// Code generated by github.com/99designs/gqlgen, DO NOT EDIT.
  2
  3package graph
  4
  5import (
  6	"context"
  7	"errors"
  8	"fmt"
  9	"strconv"
 10	"sync"
 11	"sync/atomic"
 12
 13	"github.com/99designs/gqlgen/graphql"
 14	"github.com/git-bug/git-bug/api/graphql/models"
 15	"github.com/git-bug/git-bug/entities/board"
 16	"github.com/git-bug/git-bug/entity"
 17	"github.com/vektah/gqlparser/v2/ast"
 18)
 19
 20// region    ************************** generated!.gotpl **************************
 21
 22type BoardColumnResolver interface {
 23	Items(ctx context.Context, obj *board.Column, after *string, before *string, first *int, last *int) (*models.BoardItemConnection, error)
 24}
 25
 26// endregion ************************** generated!.gotpl **************************
 27
 28// region    ***************************** args.gotpl *****************************
 29
 30func (ec *executionContext) field_BoardColumn_items_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
 31	var err error
 32	args := map[string]any{}
 33	arg0, err := ec.field_BoardColumn_items_argsAfter(ctx, rawArgs)
 34	if err != nil {
 35		return nil, err
 36	}
 37	args["after"] = arg0
 38	arg1, err := ec.field_BoardColumn_items_argsBefore(ctx, rawArgs)
 39	if err != nil {
 40		return nil, err
 41	}
 42	args["before"] = arg1
 43	arg2, err := ec.field_BoardColumn_items_argsFirst(ctx, rawArgs)
 44	if err != nil {
 45		return nil, err
 46	}
 47	args["first"] = arg2
 48	arg3, err := ec.field_BoardColumn_items_argsLast(ctx, rawArgs)
 49	if err != nil {
 50		return nil, err
 51	}
 52	args["last"] = arg3
 53	return args, nil
 54}
 55func (ec *executionContext) field_BoardColumn_items_argsAfter(
 56	ctx context.Context,
 57	rawArgs map[string]any,
 58) (*string, error) {
 59	if _, ok := rawArgs["after"]; !ok {
 60		var zeroVal *string
 61		return zeroVal, nil
 62	}
 63
 64	ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
 65	if tmp, ok := rawArgs["after"]; ok {
 66		return ec.unmarshalOString2ᚖstring(ctx, tmp)
 67	}
 68
 69	var zeroVal *string
 70	return zeroVal, nil
 71}
 72
 73func (ec *executionContext) field_BoardColumn_items_argsBefore(
 74	ctx context.Context,
 75	rawArgs map[string]any,
 76) (*string, error) {
 77	if _, ok := rawArgs["before"]; !ok {
 78		var zeroVal *string
 79		return zeroVal, nil
 80	}
 81
 82	ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
 83	if tmp, ok := rawArgs["before"]; ok {
 84		return ec.unmarshalOString2ᚖstring(ctx, tmp)
 85	}
 86
 87	var zeroVal *string
 88	return zeroVal, nil
 89}
 90
 91func (ec *executionContext) field_BoardColumn_items_argsFirst(
 92	ctx context.Context,
 93	rawArgs map[string]any,
 94) (*int, error) {
 95	if _, ok := rawArgs["first"]; !ok {
 96		var zeroVal *int
 97		return zeroVal, nil
 98	}
 99
100	ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
101	if tmp, ok := rawArgs["first"]; ok {
102		return ec.unmarshalOInt2ᚖint(ctx, tmp)
103	}
104
105	var zeroVal *int
106	return zeroVal, nil
107}
108
109func (ec *executionContext) field_BoardColumn_items_argsLast(
110	ctx context.Context,
111	rawArgs map[string]any,
112) (*int, error) {
113	if _, ok := rawArgs["last"]; !ok {
114		var zeroVal *int
115		return zeroVal, nil
116	}
117
118	ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
119	if tmp, ok := rawArgs["last"]; ok {
120		return ec.unmarshalOInt2ᚖint(ctx, tmp)
121	}
122
123	var zeroVal *int
124	return zeroVal, nil
125}
126
127// endregion ***************************** args.gotpl *****************************
128
129// region    ************************** directives.gotpl **************************
130
131// endregion ************************** directives.gotpl **************************
132
133// region    **************************** field.gotpl *****************************
134
135func (ec *executionContext) _BoardColumn_id(ctx context.Context, field graphql.CollectedField, obj *board.Column) (ret graphql.Marshaler) {
136	fc, err := ec.fieldContext_BoardColumn_id(ctx, field)
137	if err != nil {
138		return graphql.Null
139	}
140	ctx = graphql.WithFieldContext(ctx, fc)
141	defer func() {
142		if r := recover(); r != nil {
143			ec.Error(ctx, ec.Recover(ctx, r))
144			ret = graphql.Null
145		}
146	}()
147	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
148		ctx = rctx // use context from middleware stack in children
149		return obj.CombinedId, nil
150	})
151	if err != nil {
152		ec.Error(ctx, err)
153		return graphql.Null
154	}
155	if resTmp == nil {
156		if !graphql.HasFieldError(ctx, fc) {
157			ec.Errorf(ctx, "must not be null")
158		}
159		return graphql.Null
160	}
161	res := resTmp.(entity.CombinedId)
162	fc.Result = res
163	return ec.marshalNCombinedId2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentityᚐCombinedId(ctx, field.Selections, res)
164}
165
166func (ec *executionContext) fieldContext_BoardColumn_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
167	fc = &graphql.FieldContext{
168		Object:     "BoardColumn",
169		Field:      field,
170		IsMethod:   false,
171		IsResolver: false,
172		Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
173			return nil, errors.New("field of type CombinedId does not have child fields")
174		},
175	}
176	return fc, nil
177}
178
179func (ec *executionContext) _BoardColumn_name(ctx context.Context, field graphql.CollectedField, obj *board.Column) (ret graphql.Marshaler) {
180	fc, err := ec.fieldContext_BoardColumn_name(ctx, field)
181	if err != nil {
182		return graphql.Null
183	}
184	ctx = graphql.WithFieldContext(ctx, fc)
185	defer func() {
186		if r := recover(); r != nil {
187			ec.Error(ctx, ec.Recover(ctx, r))
188			ret = graphql.Null
189		}
190	}()
191	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
192		ctx = rctx // use context from middleware stack in children
193		return obj.Name, nil
194	})
195	if err != nil {
196		ec.Error(ctx, err)
197		return graphql.Null
198	}
199	if resTmp == nil {
200		if !graphql.HasFieldError(ctx, fc) {
201			ec.Errorf(ctx, "must not be null")
202		}
203		return graphql.Null
204	}
205	res := resTmp.(string)
206	fc.Result = res
207	return ec.marshalNString2string(ctx, field.Selections, res)
208}
209
210func (ec *executionContext) fieldContext_BoardColumn_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
211	fc = &graphql.FieldContext{
212		Object:     "BoardColumn",
213		Field:      field,
214		IsMethod:   false,
215		IsResolver: false,
216		Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
217			return nil, errors.New("field of type String does not have child fields")
218		},
219	}
220	return fc, nil
221}
222
223func (ec *executionContext) _BoardColumn_items(ctx context.Context, field graphql.CollectedField, obj *board.Column) (ret graphql.Marshaler) {
224	fc, err := ec.fieldContext_BoardColumn_items(ctx, field)
225	if err != nil {
226		return graphql.Null
227	}
228	ctx = graphql.WithFieldContext(ctx, fc)
229	defer func() {
230		if r := recover(); r != nil {
231			ec.Error(ctx, ec.Recover(ctx, r))
232			ret = graphql.Null
233		}
234	}()
235	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
236		ctx = rctx // use context from middleware stack in children
237		return ec.resolvers.BoardColumn().Items(rctx, obj, fc.Args["after"].(*string), fc.Args["before"].(*string), fc.Args["first"].(*int), fc.Args["last"].(*int))
238	})
239	if err != nil {
240		ec.Error(ctx, err)
241		return graphql.Null
242	}
243	if resTmp == nil {
244		if !graphql.HasFieldError(ctx, fc) {
245			ec.Errorf(ctx, "must not be null")
246		}
247		return graphql.Null
248	}
249	res := resTmp.(*models.BoardItemConnection)
250	fc.Result = res
251	return ec.marshalNBoardItemConnection2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐBoardItemConnection(ctx, field.Selections, res)
252}
253
254func (ec *executionContext) fieldContext_BoardColumn_items(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
255	fc = &graphql.FieldContext{
256		Object:     "BoardColumn",
257		Field:      field,
258		IsMethod:   true,
259		IsResolver: true,
260		Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
261			switch field.Name {
262			case "edges":
263				return ec.fieldContext_BoardItemConnection_edges(ctx, field)
264			case "nodes":
265				return ec.fieldContext_BoardItemConnection_nodes(ctx, field)
266			case "pageInfo":
267				return ec.fieldContext_BoardItemConnection_pageInfo(ctx, field)
268			case "totalCount":
269				return ec.fieldContext_BoardItemConnection_totalCount(ctx, field)
270			}
271			return nil, fmt.Errorf("no field named %q was found under type BoardItemConnection", field.Name)
272		},
273	}
274	defer func() {
275		if r := recover(); r != nil {
276			err = ec.Recover(ctx, r)
277			ec.Error(ctx, err)
278		}
279	}()
280	ctx = graphql.WithFieldContext(ctx, fc)
281	if fc.Args, err = ec.field_BoardColumn_items_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
282		ec.Error(ctx, err)
283		return fc, err
284	}
285	return fc, nil
286}
287
288func (ec *executionContext) _BoardColumnConnection_edges(ctx context.Context, field graphql.CollectedField, obj *models.BoardColumnConnection) (ret graphql.Marshaler) {
289	fc, err := ec.fieldContext_BoardColumnConnection_edges(ctx, field)
290	if err != nil {
291		return graphql.Null
292	}
293	ctx = graphql.WithFieldContext(ctx, fc)
294	defer func() {
295		if r := recover(); r != nil {
296			ec.Error(ctx, ec.Recover(ctx, r))
297			ret = graphql.Null
298		}
299	}()
300	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
301		ctx = rctx // use context from middleware stack in children
302		return obj.Edges, nil
303	})
304	if err != nil {
305		ec.Error(ctx, err)
306		return graphql.Null
307	}
308	if resTmp == nil {
309		if !graphql.HasFieldError(ctx, fc) {
310			ec.Errorf(ctx, "must not be null")
311		}
312		return graphql.Null
313	}
314	res := resTmp.([]*models.BoardColumnEdge)
315	fc.Result = res
316	return ec.marshalNBoardColumnEdge2ᚕᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐBoardColumnEdgeᚄ(ctx, field.Selections, res)
317}
318
319func (ec *executionContext) fieldContext_BoardColumnConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
320	fc = &graphql.FieldContext{
321		Object:     "BoardColumnConnection",
322		Field:      field,
323		IsMethod:   false,
324		IsResolver: false,
325		Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
326			switch field.Name {
327			case "cursor":
328				return ec.fieldContext_BoardColumnEdge_cursor(ctx, field)
329			case "node":
330				return ec.fieldContext_BoardColumnEdge_node(ctx, field)
331			}
332			return nil, fmt.Errorf("no field named %q was found under type BoardColumnEdge", field.Name)
333		},
334	}
335	return fc, nil
336}
337
338func (ec *executionContext) _BoardColumnConnection_nodes(ctx context.Context, field graphql.CollectedField, obj *models.BoardColumnConnection) (ret graphql.Marshaler) {
339	fc, err := ec.fieldContext_BoardColumnConnection_nodes(ctx, field)
340	if err != nil {
341		return graphql.Null
342	}
343	ctx = graphql.WithFieldContext(ctx, fc)
344	defer func() {
345		if r := recover(); r != nil {
346			ec.Error(ctx, ec.Recover(ctx, r))
347			ret = graphql.Null
348		}
349	}()
350	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
351		ctx = rctx // use context from middleware stack in children
352		return obj.Nodes, nil
353	})
354	if err != nil {
355		ec.Error(ctx, err)
356		return graphql.Null
357	}
358	if resTmp == nil {
359		if !graphql.HasFieldError(ctx, fc) {
360			ec.Errorf(ctx, "must not be null")
361		}
362		return graphql.Null
363	}
364	res := resTmp.([]*board.Column)
365	fc.Result = res
366	return ec.marshalNBoardColumn2ᚕᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentitiesᚋboardᚐColumnᚄ(ctx, field.Selections, res)
367}
368
369func (ec *executionContext) fieldContext_BoardColumnConnection_nodes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
370	fc = &graphql.FieldContext{
371		Object:     "BoardColumnConnection",
372		Field:      field,
373		IsMethod:   false,
374		IsResolver: false,
375		Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
376			switch field.Name {
377			case "id":
378				return ec.fieldContext_BoardColumn_id(ctx, field)
379			case "name":
380				return ec.fieldContext_BoardColumn_name(ctx, field)
381			case "items":
382				return ec.fieldContext_BoardColumn_items(ctx, field)
383			}
384			return nil, fmt.Errorf("no field named %q was found under type BoardColumn", field.Name)
385		},
386	}
387	return fc, nil
388}
389
390func (ec *executionContext) _BoardColumnConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *models.BoardColumnConnection) (ret graphql.Marshaler) {
391	fc, err := ec.fieldContext_BoardColumnConnection_pageInfo(ctx, field)
392	if err != nil {
393		return graphql.Null
394	}
395	ctx = graphql.WithFieldContext(ctx, fc)
396	defer func() {
397		if r := recover(); r != nil {
398			ec.Error(ctx, ec.Recover(ctx, r))
399			ret = graphql.Null
400		}
401	}()
402	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
403		ctx = rctx // use context from middleware stack in children
404		return obj.PageInfo, nil
405	})
406	if err != nil {
407		ec.Error(ctx, err)
408		return graphql.Null
409	}
410	if resTmp == nil {
411		if !graphql.HasFieldError(ctx, fc) {
412			ec.Errorf(ctx, "must not be null")
413		}
414		return graphql.Null
415	}
416	res := resTmp.(*models.PageInfo)
417	fc.Result = res
418	return ec.marshalNPageInfo2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐPageInfo(ctx, field.Selections, res)
419}
420
421func (ec *executionContext) fieldContext_BoardColumnConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
422	fc = &graphql.FieldContext{
423		Object:     "BoardColumnConnection",
424		Field:      field,
425		IsMethod:   false,
426		IsResolver: false,
427		Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
428			switch field.Name {
429			case "hasNextPage":
430				return ec.fieldContext_PageInfo_hasNextPage(ctx, field)
431			case "hasPreviousPage":
432				return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field)
433			case "startCursor":
434				return ec.fieldContext_PageInfo_startCursor(ctx, field)
435			case "endCursor":
436				return ec.fieldContext_PageInfo_endCursor(ctx, field)
437			}
438			return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name)
439		},
440	}
441	return fc, nil
442}
443
444func (ec *executionContext) _BoardColumnConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *models.BoardColumnConnection) (ret graphql.Marshaler) {
445	fc, err := ec.fieldContext_BoardColumnConnection_totalCount(ctx, field)
446	if err != nil {
447		return graphql.Null
448	}
449	ctx = graphql.WithFieldContext(ctx, fc)
450	defer func() {
451		if r := recover(); r != nil {
452			ec.Error(ctx, ec.Recover(ctx, r))
453			ret = graphql.Null
454		}
455	}()
456	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
457		ctx = rctx // use context from middleware stack in children
458		return obj.TotalCount, nil
459	})
460	if err != nil {
461		ec.Error(ctx, err)
462		return graphql.Null
463	}
464	if resTmp == nil {
465		if !graphql.HasFieldError(ctx, fc) {
466			ec.Errorf(ctx, "must not be null")
467		}
468		return graphql.Null
469	}
470	res := resTmp.(int)
471	fc.Result = res
472	return ec.marshalNInt2int(ctx, field.Selections, res)
473}
474
475func (ec *executionContext) fieldContext_BoardColumnConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
476	fc = &graphql.FieldContext{
477		Object:     "BoardColumnConnection",
478		Field:      field,
479		IsMethod:   false,
480		IsResolver: false,
481		Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
482			return nil, errors.New("field of type Int does not have child fields")
483		},
484	}
485	return fc, nil
486}
487
488func (ec *executionContext) _BoardColumnEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *models.BoardColumnEdge) (ret graphql.Marshaler) {
489	fc, err := ec.fieldContext_BoardColumnEdge_cursor(ctx, field)
490	if err != nil {
491		return graphql.Null
492	}
493	ctx = graphql.WithFieldContext(ctx, fc)
494	defer func() {
495		if r := recover(); r != nil {
496			ec.Error(ctx, ec.Recover(ctx, r))
497			ret = graphql.Null
498		}
499	}()
500	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
501		ctx = rctx // use context from middleware stack in children
502		return obj.Cursor, nil
503	})
504	if err != nil {
505		ec.Error(ctx, err)
506		return graphql.Null
507	}
508	if resTmp == nil {
509		if !graphql.HasFieldError(ctx, fc) {
510			ec.Errorf(ctx, "must not be null")
511		}
512		return graphql.Null
513	}
514	res := resTmp.(string)
515	fc.Result = res
516	return ec.marshalNString2string(ctx, field.Selections, res)
517}
518
519func (ec *executionContext) fieldContext_BoardColumnEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
520	fc = &graphql.FieldContext{
521		Object:     "BoardColumnEdge",
522		Field:      field,
523		IsMethod:   false,
524		IsResolver: false,
525		Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
526			return nil, errors.New("field of type String does not have child fields")
527		},
528	}
529	return fc, nil
530}
531
532func (ec *executionContext) _BoardColumnEdge_node(ctx context.Context, field graphql.CollectedField, obj *models.BoardColumnEdge) (ret graphql.Marshaler) {
533	fc, err := ec.fieldContext_BoardColumnEdge_node(ctx, field)
534	if err != nil {
535		return graphql.Null
536	}
537	ctx = graphql.WithFieldContext(ctx, fc)
538	defer func() {
539		if r := recover(); r != nil {
540			ec.Error(ctx, ec.Recover(ctx, r))
541			ret = graphql.Null
542		}
543	}()
544	resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
545		ctx = rctx // use context from middleware stack in children
546		return obj.Node, nil
547	})
548	if err != nil {
549		ec.Error(ctx, err)
550		return graphql.Null
551	}
552	if resTmp == nil {
553		if !graphql.HasFieldError(ctx, fc) {
554			ec.Errorf(ctx, "must not be null")
555		}
556		return graphql.Null
557	}
558	res := resTmp.(*board.Column)
559	fc.Result = res
560	return ec.marshalNBoardColumn2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentitiesᚋboardᚐColumn(ctx, field.Selections, res)
561}
562
563func (ec *executionContext) fieldContext_BoardColumnEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
564	fc = &graphql.FieldContext{
565		Object:     "BoardColumnEdge",
566		Field:      field,
567		IsMethod:   false,
568		IsResolver: false,
569		Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
570			switch field.Name {
571			case "id":
572				return ec.fieldContext_BoardColumn_id(ctx, field)
573			case "name":
574				return ec.fieldContext_BoardColumn_name(ctx, field)
575			case "items":
576				return ec.fieldContext_BoardColumn_items(ctx, field)
577			}
578			return nil, fmt.Errorf("no field named %q was found under type BoardColumn", field.Name)
579		},
580	}
581	return fc, nil
582}
583
584// endregion **************************** field.gotpl *****************************
585
586// region    **************************** input.gotpl *****************************
587
588// endregion **************************** input.gotpl *****************************
589
590// region    ************************** interface.gotpl ***************************
591
592// endregion ************************** interface.gotpl ***************************
593
594// region    **************************** object.gotpl ****************************
595
596var boardColumnImplementors = []string{"BoardColumn"}
597
598func (ec *executionContext) _BoardColumn(ctx context.Context, sel ast.SelectionSet, obj *board.Column) graphql.Marshaler {
599	fields := graphql.CollectFields(ec.OperationContext, sel, boardColumnImplementors)
600
601	out := graphql.NewFieldSet(fields)
602	deferred := make(map[string]*graphql.FieldSet)
603	for i, field := range fields {
604		switch field.Name {
605		case "__typename":
606			out.Values[i] = graphql.MarshalString("BoardColumn")
607		case "id":
608			out.Values[i] = ec._BoardColumn_id(ctx, field, obj)
609			if out.Values[i] == graphql.Null {
610				atomic.AddUint32(&out.Invalids, 1)
611			}
612		case "name":
613			out.Values[i] = ec._BoardColumn_name(ctx, field, obj)
614			if out.Values[i] == graphql.Null {
615				atomic.AddUint32(&out.Invalids, 1)
616			}
617		case "items":
618			field := field
619
620			innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
621				defer func() {
622					if r := recover(); r != nil {
623						ec.Error(ctx, ec.Recover(ctx, r))
624					}
625				}()
626				res = ec._BoardColumn_items(ctx, field, obj)
627				if res == graphql.Null {
628					atomic.AddUint32(&fs.Invalids, 1)
629				}
630				return res
631			}
632
633			if field.Deferrable != nil {
634				dfs, ok := deferred[field.Deferrable.Label]
635				di := 0
636				if ok {
637					dfs.AddField(field)
638					di = len(dfs.Values) - 1
639				} else {
640					dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
641					deferred[field.Deferrable.Label] = dfs
642				}
643				dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
644					return innerFunc(ctx, dfs)
645				})
646
647				// don't run the out.Concurrently() call below
648				out.Values[i] = graphql.Null
649				continue
650			}
651
652			out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
653		default:
654			panic("unknown field " + strconv.Quote(field.Name))
655		}
656	}
657	out.Dispatch(ctx)
658	if out.Invalids > 0 {
659		return graphql.Null
660	}
661
662	atomic.AddInt32(&ec.deferred, int32(len(deferred)))
663
664	for label, dfs := range deferred {
665		ec.processDeferredGroup(graphql.DeferredGroup{
666			Label:    label,
667			Path:     graphql.GetPath(ctx),
668			FieldSet: dfs,
669			Context:  ctx,
670		})
671	}
672
673	return out
674}
675
676var boardColumnConnectionImplementors = []string{"BoardColumnConnection"}
677
678func (ec *executionContext) _BoardColumnConnection(ctx context.Context, sel ast.SelectionSet, obj *models.BoardColumnConnection) graphql.Marshaler {
679	fields := graphql.CollectFields(ec.OperationContext, sel, boardColumnConnectionImplementors)
680
681	out := graphql.NewFieldSet(fields)
682	deferred := make(map[string]*graphql.FieldSet)
683	for i, field := range fields {
684		switch field.Name {
685		case "__typename":
686			out.Values[i] = graphql.MarshalString("BoardColumnConnection")
687		case "edges":
688			out.Values[i] = ec._BoardColumnConnection_edges(ctx, field, obj)
689			if out.Values[i] == graphql.Null {
690				out.Invalids++
691			}
692		case "nodes":
693			out.Values[i] = ec._BoardColumnConnection_nodes(ctx, field, obj)
694			if out.Values[i] == graphql.Null {
695				out.Invalids++
696			}
697		case "pageInfo":
698			out.Values[i] = ec._BoardColumnConnection_pageInfo(ctx, field, obj)
699			if out.Values[i] == graphql.Null {
700				out.Invalids++
701			}
702		case "totalCount":
703			out.Values[i] = ec._BoardColumnConnection_totalCount(ctx, field, obj)
704			if out.Values[i] == graphql.Null {
705				out.Invalids++
706			}
707		default:
708			panic("unknown field " + strconv.Quote(field.Name))
709		}
710	}
711	out.Dispatch(ctx)
712	if out.Invalids > 0 {
713		return graphql.Null
714	}
715
716	atomic.AddInt32(&ec.deferred, int32(len(deferred)))
717
718	for label, dfs := range deferred {
719		ec.processDeferredGroup(graphql.DeferredGroup{
720			Label:    label,
721			Path:     graphql.GetPath(ctx),
722			FieldSet: dfs,
723			Context:  ctx,
724		})
725	}
726
727	return out
728}
729
730var boardColumnEdgeImplementors = []string{"BoardColumnEdge"}
731
732func (ec *executionContext) _BoardColumnEdge(ctx context.Context, sel ast.SelectionSet, obj *models.BoardColumnEdge) graphql.Marshaler {
733	fields := graphql.CollectFields(ec.OperationContext, sel, boardColumnEdgeImplementors)
734
735	out := graphql.NewFieldSet(fields)
736	deferred := make(map[string]*graphql.FieldSet)
737	for i, field := range fields {
738		switch field.Name {
739		case "__typename":
740			out.Values[i] = graphql.MarshalString("BoardColumnEdge")
741		case "cursor":
742			out.Values[i] = ec._BoardColumnEdge_cursor(ctx, field, obj)
743			if out.Values[i] == graphql.Null {
744				out.Invalids++
745			}
746		case "node":
747			out.Values[i] = ec._BoardColumnEdge_node(ctx, field, obj)
748			if out.Values[i] == graphql.Null {
749				out.Invalids++
750			}
751		default:
752			panic("unknown field " + strconv.Quote(field.Name))
753		}
754	}
755	out.Dispatch(ctx)
756	if out.Invalids > 0 {
757		return graphql.Null
758	}
759
760	atomic.AddInt32(&ec.deferred, int32(len(deferred)))
761
762	for label, dfs := range deferred {
763		ec.processDeferredGroup(graphql.DeferredGroup{
764			Label:    label,
765			Path:     graphql.GetPath(ctx),
766			FieldSet: dfs,
767			Context:  ctx,
768		})
769	}
770
771	return out
772}
773
774// endregion **************************** object.gotpl ****************************
775
776// region    ***************************** type.gotpl *****************************
777
778func (ec *executionContext) marshalNBoardColumn2ᚕᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentitiesᚋboardᚐColumnᚄ(ctx context.Context, sel ast.SelectionSet, v []*board.Column) graphql.Marshaler {
779	ret := make(graphql.Array, len(v))
780	var wg sync.WaitGroup
781	isLen1 := len(v) == 1
782	if !isLen1 {
783		wg.Add(len(v))
784	}
785	for i := range v {
786		i := i
787		fc := &graphql.FieldContext{
788			Index:  &i,
789			Result: &v[i],
790		}
791		ctx := graphql.WithFieldContext(ctx, fc)
792		f := func(i int) {
793			defer func() {
794				if r := recover(); r != nil {
795					ec.Error(ctx, ec.Recover(ctx, r))
796					ret = nil
797				}
798			}()
799			if !isLen1 {
800				defer wg.Done()
801			}
802			ret[i] = ec.marshalNBoardColumn2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentitiesᚋboardᚐColumn(ctx, sel, v[i])
803		}
804		if isLen1 {
805			f(i)
806		} else {
807			go f(i)
808		}
809
810	}
811	wg.Wait()
812
813	for _, e := range ret {
814		if e == graphql.Null {
815			return graphql.Null
816		}
817	}
818
819	return ret
820}
821
822func (ec *executionContext) marshalNBoardColumn2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentitiesᚋboardᚐColumn(ctx context.Context, sel ast.SelectionSet, v *board.Column) graphql.Marshaler {
823	if v == nil {
824		if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
825			ec.Errorf(ctx, "the requested element is null which the schema does not allow")
826		}
827		return graphql.Null
828	}
829	return ec._BoardColumn(ctx, sel, v)
830}
831
832func (ec *executionContext) marshalNBoardColumnConnection2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐBoardColumnConnection(ctx context.Context, sel ast.SelectionSet, v models.BoardColumnConnection) graphql.Marshaler {
833	return ec._BoardColumnConnection(ctx, sel, &v)
834}
835
836func (ec *executionContext) marshalNBoardColumnConnection2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐBoardColumnConnection(ctx context.Context, sel ast.SelectionSet, v *models.BoardColumnConnection) graphql.Marshaler {
837	if v == nil {
838		if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
839			ec.Errorf(ctx, "the requested element is null which the schema does not allow")
840		}
841		return graphql.Null
842	}
843	return ec._BoardColumnConnection(ctx, sel, v)
844}
845
846func (ec *executionContext) marshalNBoardColumnEdge2ᚕᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐBoardColumnEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*models.BoardColumnEdge) graphql.Marshaler {
847	ret := make(graphql.Array, len(v))
848	var wg sync.WaitGroup
849	isLen1 := len(v) == 1
850	if !isLen1 {
851		wg.Add(len(v))
852	}
853	for i := range v {
854		i := i
855		fc := &graphql.FieldContext{
856			Index:  &i,
857			Result: &v[i],
858		}
859		ctx := graphql.WithFieldContext(ctx, fc)
860		f := func(i int) {
861			defer func() {
862				if r := recover(); r != nil {
863					ec.Error(ctx, ec.Recover(ctx, r))
864					ret = nil
865				}
866			}()
867			if !isLen1 {
868				defer wg.Done()
869			}
870			ret[i] = ec.marshalNBoardColumnEdge2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐBoardColumnEdge(ctx, sel, v[i])
871		}
872		if isLen1 {
873			f(i)
874		} else {
875			go f(i)
876		}
877
878	}
879	wg.Wait()
880
881	for _, e := range ret {
882		if e == graphql.Null {
883			return graphql.Null
884		}
885	}
886
887	return ret
888}
889
890func (ec *executionContext) marshalNBoardColumnEdge2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐBoardColumnEdge(ctx context.Context, sel ast.SelectionSet, v *models.BoardColumnEdge) graphql.Marshaler {
891	if v == nil {
892		if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
893			ec.Errorf(ctx, "the requested element is null which the schema does not allow")
894		}
895		return graphql.Null
896	}
897	return ec._BoardColumnEdge(ctx, sel, v)
898}
899
900// endregion ***************************** type.gotpl *****************************