github.com/99designs/gqlgen@v0.17.45/plugin/federation/requires.gotpl (about)

     1  {{ range .ExistingImports }}
     2  {{ if ne .Alias "" }}
     3  {{ reserveImport .ImportPath .Alias }}
     4  {{ else }}
     5  {{ reserveImport .ImportPath }}
     6  {{ end }}
     7  {{ end }}
     8  
     9  {{ range .Populators -}}
    10  {{ if .Comment -}}
    11  // {{.Comment}}
    12  {{- else -}}
    13  // {{.FuncName}} is the requires populator for the {{.Entity.Def.Name}} entity.
    14  {{- end }}
    15  func (ec *executionContext) {{.FuncName}}(ctx context.Context, entity *{{.Entity.GetTypeInfo}}, reps map[string]interface{}) error {
    16  	{{.Implementation}}
    17  }
    18  {{ end }}
    19  
    20  {{ .OriginalSource }}